• This is slightly embarrassing. My site is configured to present Google Analytics tracking code snippet but I can’t establish what’s doing it.

    It’s using correct Tracking ID so clearly I’ve set it up, but I’ve searched methodically through each plugin and my theme and no joy.

    Do you have any advice on best means of finding the (useful) culprit? I’d like to amend the GA code. Don’t think there are clues in the code itself which seems pretty vanilla to my layman’s eyes:

    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-######"></script>
        <script>
          window.dataLayer = window.dataLayer || [];
          function gtag(){dataLayer.push(arguments);}
          gtag('js', new Date());
          gtag('config', 'UA-######');
        </script>

    Haven’t linked to site in question, but happy to do so if it helps.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Heya! It’s possible that the code is being called in by one of the theme files. To for this, go to your WP Dashoard, navigate under Appearance < Editor.

    From there look for your header.php file and your functions.php file. After locating those files, check both for the analytics code.

    Thread Starter iainjc

    (@iainjc)

    Found it, thank you for pointing me in direction of theme – it was part of it’s options after all. As opposed to part of the customise area.

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What’s inserting Google Analytics Tracking Snippet’ is closed to new replies.