Support » Plugin: Google Tag Manager for WordPress » google analytics

  • Resolved Seb

    (@sebdinatale)


    I get google analytics tracked twice on my website I have removed the tracking code from my header.php file but i still have the google analytics tracking code installed on my website how can i remove this?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    You still have a hard coded GA tracking code in your site. When you open the source code of the homepage in your browser and search for

    ga('create', 'UA-111914019-1', 'auto');

    … you will find in at the bottom of the page.

    Seb

    (@sebdinatale)

    yes but how can I remove the code from my website the code is not in my header.php file

    Plugin Author Thomas Geiger

    (@duracelltomi)

    It is hard to tell you where this can be but here are some places you can check:
    – perhaps another plugin that aims to put codes into your site?
    – an option in Theme settings? maybe your theme has a feature to add tracking codes?
    – maybe it is in your footer.php in your theme?

    Seb

    (@sebdinatale)

    I checked in the header and footer .php files nothing found I dont have theme options its strange because when I deactivate the google tag manager plugin everything works just fine maybe its the all in one seo pack plugin that created the tracking code I don’t know

    Plugin Author Thomas Geiger

    (@duracelltomi)

    When you deactivate this plugin, only the hard coded GA tracking code is left thus you will not see any error message in Google Tag Assistant.

    From what I can see, it is very hard to tell you where to look at this code, since you are using a cache plugin, all HTML comments are removed which could give us a hint where to look at a solution. Can you maybe disable your cache plugin for a short period of time to see how the source code looks like without it?

    Seb

    (@sebdinatale)

    I need to reach out to my friends at codeable to have the code removed thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘google analytics’ is closed to new replies.