Wordpress does not support installation Google analytics any longer ?

JoeHitech

Newbie
Joined
Sep 26, 2013
Messages
22
Reaction score
0
I had some trouble with google analytics installation in wordpress theme. I tried put the script right above on </head> in header.php as well as I tried also put google script in footer.php right above on </body>. So, I checked some forums and I found information that's not possible any longer to install google anaylitcs in wordpress, is it true ? I also found Wordpress Statistic plug in what's their own diagnostic tool :)
 
Absolutely not. Try using a Wordpress plugin which will make it easier to integrate the Analytics code. Please keep in mind that you have to wait a day or so, before a new analytics account takes action and show you insights.
 
I can't see that being the case where Wordpress no longer works with Google Analytics or anything like that. I haven't installed any recently, but I've got plenty of Wordpress websites that use it and have no issues.

Maybe after uploading the header.php, try accessing your website and viewing the source code to see if you can find the code provided and make sure it is not altered in any way.

Scenario one: If you see the code does not exist at all, maybe check to make sure you are editing the correct file. It may be possible that you are editing the wrong themes header.php, or there are also templates where the header.php is not even used.

Scenario two: If you see the code and it is altered in some way, then maybe try putting the code into it's own file, and then including it into your PHP.
 
Best way to integrate the Google analytics with your wordpress is by using google analytics plugin. Its available on wordpress plugin site
[h=2][/h]
 
One other thing I forgot to mention is that maybe there could be an issue with caching. You could try disabling caching plugins to make sure this is not an issue.

However, all the other suggestions on here are great too about using plugins designed for implementing Google Analytics. I personally just don't like to using them and having a bunch of third party plugins to deal with, so I do everything manually.
 
Back
Top