1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress does not support installation Google analytics any longer ?

Discussion in 'Blogging' started by JoeHitech, Mar 2, 2014.

  1. JoeHitech

    JoeHitech Newbie

    Joined:
    Sep 26, 2013
    Messages:
    22
    Likes Received:
    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 :)
     
  2. BackY

    BackY Senior Member

    Joined:
    Dec 28, 2012
    Messages:
    853
    Likes Received:
    204
    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.
     
  3. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    127
    Likes Received:
    62
    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.
     
  4. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Premium Member

    Joined:
    Nov 10, 2012
    Messages:
    10,112
    Likes Received:
    28,526
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
  5. dipy15

    dipy15 Regular Member

    Joined:
    Jul 31, 2009
    Messages:
    210
    Likes Received:
    35
    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]
     
  6. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    127
    Likes Received:
    62
    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.