Support » Fixing WordPress » Google Analytics problem

  • I have been trying to get google analytics code to work on our website but I seem to have it running twice. I am using the All In One SEO Pack plugin and that seems to be running ok but then near the bottom of my page there is another script that runs but I am not sure where that is coming from.

    My website is ultimatebeautylaserspa.com

    If I look in the header.php the footer.php and the functions.php and it does not appear so I am lost as where else to look

    Any help would be great.

    Rich

Viewing 5 replies - 1 through 5 (of 5 total)
  • Does your theme also have a place to embed the Google Analytics code? Or is there another plugin like Google Analyticator that is implementing the code?

    It’s a bit of a debate if you should put the code into a dedicated plugin or a theme. Ultimately, it doesn’t matter. Just know where you put it so if you change plugins or themes, that you aren’t stuck without tracking.

    Thread Starter rtkohl

    (@rtkohl)

    Thx Courtney, I checked the spot where you can put it in the theme and it is blank, the only place I know of that I have it currently is in the All In One SEO Pack plugin.

    I have tried deactivating the plug in and that takes out the one instance I added but the other one remains. I really need to remove the one that remains. I reactivated the plug and then I am back to two entries. I even added some code in the spot on the theme to see if that at least changed what I was seeing but it had no effect on the line I want to remove.

    Do you know if there is a plugin that will allow me to search all the file of my website for a string of code?

    I looked at your source code (In Chrome, View, Developer, View Source), and see it twice as well. I copied the UA-XXXXXXX-X and CTRL + F to find the 2nd instance.

    I wonder if AddThis Smart Layers is the 2nd instance?

    Thread Starter rtkohl

    (@rtkohl)

    I checked AddThis Smart Layers but could not find anything. I even went as far as deactivating that plug-in but it had no effect on the second instance of the analytics.

    I have tried looking in all the files but can not find it, which is why I would like a utility that would allow me to search all the files on my wordpress site for a specific string so I could find where that information is being brought in from.

    Thread Starter rtkohl

    (@rtkohl)

    Update, I deactivated all plug-ins and that script still exists! UGH

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google Analytics problem’ is closed to new replies.