11 Responses to “How To Add Site Speed For Google Analytics In WordPress”

This page contains comments from the How To Add Site Speed For Google Analytics In WordPress article.

  1. bauhaus says:

    I added the code as described for the Google Analytics for WordPress method. Now I can’t find the script in the source code anymore… Take a look!

    • bauhaus says:

      My bad…! I didn’t realize that the code is hidden when I m logged in. Having said that, I can confirm now that I works. Great job!

  2. Florian Muff says:

    Hey Stephen
    You made my day. Changing some code into your stripslashes solution was great. Thanks a lot to write a post about your solution.
    Regards
    Florian

  3. Marios Alexandrou says:

    I’m trying this solution instead… I’ve added this line to the plugin right after line 944

    $push[] = “‘_trackPageLoadTime’”;

    I figure this way my changes will be overwritten by the official plugin update and I won’t have to remember I made the changes. Not to mention that I don’t need to worry about removing custom code in the plugin settings down the road.

    Of course, I don’t actually know the above will work :-)

    Marios

  4. Milan says:

    I just added this on some of my sites and so far so good, the data is coming in, although now I even more concerned that my sites are too slow. I suspect that in the future Google is going to put more emphasis on site performance because it has such an impact on user experience.

  5. Ronald Heft says:

    Latest version of Google Analyticator has Site Speed enabled by default.

  6. Roy says:

    I used your code successfully in the past but note that 2 weeks ago Google made the Site Speed feature available to ALL Google Analytics users by default i.e. you no longer have to modify your code.

    As all Google Analytics accounts now automatically get Site Speed reports, if you had previously added the tracking code script to your site, Google will just ignore it in future and you will continue to get Site Speed reports by default.

    If you haven’t seen these reports before, log into your Analytics account, go to the Content section and click the ‘Site Speed’ report.

  7. I added the code as described for the Google Analytics for WordPress method. Now I can’t find the script in the source code anymore… Take a look!

    I was having the same problems as Bauhaus about the code for the Google analytics for wordpress, it was really stressing me out so thank you, i just noticed the code is hidden when you log in … Thanks

Leave a Reply

Anti-Spam Quiz:


Stephen Cronin

is Manager of Online Service Delivery at a Queensland Government department & has been a freelance WordPress developer/consultant since 2007
*Content on this site is my own and is not related to my employer

Hire me - I'm expensive, but I'm very good!

WordPress Plugins

Want a Custom WordPress plugin? See my Services page.

Greasemonkey Scripts

Visit my home page at Userscripts.org.