May 23 2011

Page Load Time Tracking In New Google Analytics

Tag: SEOadmin @ 9:51 pm

You may have noticed that Google has recently introduced a new version of Google Analytics. When you log in to your Google Analytics account you will notice a link at the top in red which says “New Version”.

A great new feature of the new version of GA is that it tracks page load times which is great for determing which of your pages may be too taking a while to load and hence may be causing your visitors to bounce.

At the moment, your analytics code may look something like this

<script type=”text/javascript”>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1709358-2']);
_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>

This is the Asynchronous Google Analytics code which you should be using. If you code does not look like this, then you are probably using the older non asynchronous code in which case you will need to login to Google Analytics and grab the latest code.

Once you have added this you then need to add the following

_gaq.push(['_trackPageLoadTime']);

You should then end up with

<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1709358-2']);
_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>

So not only will you be using the fastest Google Analytics code yet, you will also be able to track the page load times in GA.

Once the code has been inserted, wait 24 hours and the login to GA and hit the “New Version” link at the top.

Then, down the left hand side under content you will see the “site speed” link.

You will then see a list which will show you page load times.

So when you indicate those pages that are guilty of increasing your bounce rate, you can then read my post on how to make your website faster.

Feel free to connect with me on Facebook or via Twitter. Always glad to hear from you.

 









SEO Spain
SEO Services Spain
on Google+

  • RSS
  • Newsletter
  • Twitter
  • Facebook
  • LinkedIn