Support » Fixing WordPress » Google Analytics code randomly showing on homepage?

  • Resolved foxesblog

    (@foxesblog)


    Heading to the forums as a last resort!

    I recently created a website for my partner, and for some reason, there is a GA code in the header above the website content. I have obviously put it there but I don’t know how… There is a space in the theme settings that let’s you add the code, but I’ve removed it from there.

    I’m using a plug-in called Google Analytics Dashboard for WP which connects in a different way and was added months after this code appeared.

    I checked my upload files in my FTP manager to check I didn’t upload an HTML file trying to do something (I first started building this in May between actual client work so the memory isn’t so good!). I’m a graphic designer so this isn’t exactly my forte!

    If anyone has any ideas or suggestions, it would be greatly appreciated!

    Website in question: http://misterg.co.nz/

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • abdorefky

    (@abdorefky)

    the code is written on the white bar.
    https://drive.google.com/open?id=0B_En0WCYnzMsYTJZa1JwY1pTUG8

    if you pressed F12 for the console the white bar will disappear so press F11 to get the full screen. and the bar will appear again.

    i will try to find how to remove the code.

    foxesblog

    (@foxesblog)

    Thank you, I’m on a mac so those shortcuts don’t actually work, you can see the code whether you are logged in or not. Any help would be welcome!

    abdorefky

    (@abdorefky)

    this called inspect element

    on mac i think it will be :⌘ + Shift + C .
    ther is also this way i think on safari . https://www.youtube.com/watch?v=fypIKOyDiCo

    but those are used to identify the problem place.

    i hope some one pro give you answer, while in the main while i will do my best

    abdorefky

    (@abdorefky)

    have to tried to search inside your style.css for the code ?
    but don’t remove anything unless you clear with some one that it’s safe to remove

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    It looks like the code was added via a theme file. It’ll take time but try manually going through the files to look for “UA-77158566-1”.
    Start with header.php if that exists.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google Analytics code randomly showing on homepage?’ is closed to new replies.