Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nick

    (@nickcysupport)

    Hi @itbookham,

    If you previously added a hard-coded Google Analytics gtag to your WordPress site and also have a Google Analytics tag set up in Google Tag Manager (GTM), it is important to ensure that only one of these implementations is active. Running both will result in duplicate pageviews and inflated Analytics data.

    If you prefer to manage Google Analytics through GTM, especially when using a consent management tool, you should remove or disable the hard-coded gtag. GTM and consent tools can only control tags that run through GTM, so a hard-coded script will continue to fire until it is removed from your site’s source code.

    Once the hard-coded snippet is removed, the GTM version will operate on its own, and consent management will trigger it only after the user gives consent.

    Plugin Support Nick

    (@nickcysupport)

    Hi @itbookham,

    As we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Thread Starter itbookham

    (@itbookham)

    Hello Nick,

    Thank you for reminding me. I did manage to track down and disable the code. It was a Google Analytics module in Rank Math that generated the code. Disabling the module removed it. Many thanks again. Mark

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.