• Hi,

    I’ve been trying to install Google Analytics onto my website for about 3 days now. I know it should be as obvious as it gets, but it doesn’t seem to be working. I’ve installed a WordPress plugin for it and put my unique code in ect, but it still says on my account that it isn’t tracking.

    Can anyone suggest a reason why? The site is https://www.betting-cashback.com/

    Thanks,
    Pete

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looking at your HTML source code I can’t see the GA code anywhere. I do see a script for GA though, but it looks like it’s for multisite.

    Personally, if you’re running a single site, I would just hard code the GA code in the header.php above the </head> tag.

    Or if you’d rather use a plugin, then perhaps try another.

    Regardless of which you decide, look at the HTML source code to make sure that you see it. Once you do, then you’ll know that you’ve got it right.

    Thread Starter pete9071

    (@pete9071)

    Hi,

    Thanks for the reply, just a few questions; what is multisite? Has it got something to do with more than one domain running on the same WordPress or something? Like I think I might not have changed one of my sites from pointing to the WordPress file aswell. The site is https://making-money-online.org/ if that helps. Or is that more to do with my GA account having more than one domain? Sorry I’m abit of a newbie.

    By hard coding the GA code, do you mean simply pasting it at the bottom of a page? Because I did do that before with no luck. Would it help if I put the <html> and <head> and <body> at the top of the pages sources, then put the GA code just before the </head> at the bottom? Or would that ruin things if some of the page uses javascript?

    Thanks for your help,
    Pete

    Multisite is when you want to run a network on sites – https://codex.www.ads-software.com/Create_A_Network

    I saw some comments in your source code so thoughts that perhaps the plugin you are using is not the right one.

    The GA analytics should be hard coded in your header.php in your theme. It doesn’t go in with your content. . I don’t insert <html><body> or any other tags, those are already in there.

    Best to stick with a plugin, but just try another.

    Thread Starter pete9071

    (@pete9071)

    Okay thanks,

    I had a few domains on my WordPress directory, so I’ve tried just redirecting them to another URL. I’m having a wild stab in the dark to see if that has affected things in some way.

    I’ve also deleted my old GA profile because that was pointing to the same web directory as this and again, I’m not sure if it was effecting things a little.

    Anyway, I’ve also tried installing a different plugin with minimal success. How do you edit a header.php and footer.php in wordpress?

    Thanks,
    Pete

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trouble With Google Analytics Plugin’ is closed to new replies.