Wednesday, June 22, 2011

How to set up and use the Site Speed Report in Google Analytics?



To optimize page performance, site owners need to measure the speed at which a page loads. Now Google is making it easier to do precisely that.

According to the Google, Google Analytics (New Version) users can now effortlessly determine how load times impact their ranking at Google, user experience and eventually the conversion rates.

According to Google, the Site Speed Report feature comes turned-off by default, denoting only 0s in the report. To begin using the feature and measure your website's load speed, you need to activate and make a little change to the Analytics tracking code as show below in (bold):

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);
})();