Google Analytics quite recently added a new feature for checking your site speed and page loading time, awesome isn’t it? It is not an automatic upgrade, so you need to tweak your Google Analytics default tracking code to enable this feature. Now it will be easy to improve your site’s loading speed.
Add Site Speed Code in Google Analytics
To get the new site speed report, add the following line to your analytics code
Now this is how your code will look like this [sample code] :
var _gaq = _gaq || ;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’); s.parentNode.insertBefore(ga, s);
This will be really useful for webmasters and bloggers to detect which landing pages are slow. Also you can find the cause and fix it earlier since Google considers site loading speed as a key factor in SERPs.