As you know that the website speed is one of Google search ranking algorithms at this time, therefor, I’ve already had a tutorial that helps you optimize your WordPress blog for a better performance. But unfortunately, the only place that you can know how well your website speed is in Google Webmaster area, by default, this feature is not included in your Gogole Analytics data. This tutorial will show you how to enable this!

Introduce Google Site Speed Tracking

The Site Speed report measures the page load time (latency) for a sample of pageviews on your website pages. It appears in the Content section of the Analytics reports. With this report, you can see which pages load the fastest and which ones are slower. You can also analyze your overall site speed along other important dimensions in order to learn how your site speed relates to a variety of factors.
Google Analytics Help

How to add Google Site Speed Tracking to your website?

In order for the Site Speed reports feature to work with your Google Analytics account, you must make a simple change by adding the following code to your tracking code:

_gaq.push(['_trackPageLoadTime']);

For example, the original tracking code from your Google Analytics account may looks like this:

<script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-XXXXX-X']);
 _gaq.push(['_trackPageview']);

 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
</script>

… and after you make a change:

<script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-XXXXX-X']);
 _gaq.push(['_trackPageview']);
 _gaq.push(['_trackPageLoadTime']);

 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
</script>

After that, you need to wait about some hours for the new tracking code getting data from your website.

You Might Also Like:
How to Add Google Analytics Social Tracking to Your Website Since June 2011, Google has launched a new Social Analytics feature that can help you to analyse how users engage with any social plugin such as Googl...
Pinterest’s Contribution to SEO Pinterest is an effective pinboard site where account owners post and share attention-grabbing content. If you have not heard of Pinterest, it is abou...
Don’t Hire This Guy for Your Website! So, you finally got a website. It took you years, but you decided to take the next step with your business, non-profit organization, personal writing,...
How to Analyze Blog Performance Over Time There is no end to the amount of tutorials that exist on optimizing your blog load time, ySlow and other factors. In this tutorial I aim to equip you ...
Should I Refresh or Redesign My Website? Just as clothing styles and trends change from year to year, so do website designs. If you don’t refresh or redesign your website every once in a whil...

10 thoughts on “How To Add Google Site Speed Tracking to Your Website”

  1. Brilliant, Jenni – simple and to the point; just the kind of advice I love.

    Have you heard of the new social media tracking? Any chance you’ll explain in plain English how to add those tracking codes to GA code? http://analytics.blogspot.com/2011/07/social-plugin-tracking-in-google.html

    Ana

  2. Site load time is very important in user point as well as search engines point of view and this feature is really awesome. Thank Q for providing the detailed article Jenni

  3. Thank you for the hint! Those screen shots you included make the whole procedure more user friendly.
    I think it is understandable that Google takes account of site load time too!

  4. Enhancing site speed is very important for enhancing the search engine rankings. This is all about the better user experience. Kudos to you for making the process of adding tracking to Google Analytics, very easy.

  5. Anything involving code Is a little confusing for me, so I appreciate this tutorial. It’s useful to know how many readers you might be losing because of a slow loading speed.

Leave a Comment

Your email address will not be published. Required fields are marked *