Track site speed in Google Analytics
jhnidk - May 13th, 2011 in: Web analytics
Site performance should always be one as you main concerns as a site owner or webmaster. Great site speed can improve SEO, increase conversion rates and reduce bounce rates.
With the new version of Google Analytics, you can now easily follow the site speed of your site.
All that’s needed is adding a few lines of code in your Google Analytics tracking code and then you’re up and running.
Implementation
Implementing the site speed code is very easy – you just need to update your Google analytics to the latest version of the tracking code, and ensure that the “trackPageLoadTime()” is included in the javascript.
Google Analytics provides both a asynchronous and traditional javascript code.
Asynchronous Code (default)
<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>
Traditional code
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
<strong>pageTracker._trackPageLoadTime();</strong>
} catch(err) {}
</script>
New report
When the tracking is implemented, Google Analytics starts measuring download speed on each page of your site. The results is presented in a new report (content->Site Speed) in the new version of Google Analytics. The reports shows useful metrics like average download time, bounce rate, sample size and page views.

With these metrics at hand, you can easily see which pages on your site that might need a little optimization.
Conclusion
Implementing the new Google Analytics tags is normally a very easy task, and when you consider the benefit – a very useful report for optimizing your site – our clear recommendation is to update the Google Analytics tags ASAP.
Recommended further reading:
![]() |
Google Analytics, 3rd Edition
Get the most out of the free Google Analytics service—and get more customersGoogle Analytics allows you to discover vital information about how end users interact with their Web sites by collecting vital data and providing tools to analyze it, with… |
![]() |
Your Google Game Plan for Success: Increasing Your Web Presence with Google AdWords, Analytics and Website Optimizer
Get the most out of Google’s trifecta of tools and optimize your Web presence!Savvy marketers are always searching for new ways to attract and keep online customers. Google’s array of online tools plus the techniques and tips in this expert… |
![]() |
Google Analytics
Do you know what people do when they visit your website or web app? Or how much the site contributes to your bottom line? Google Analytics keeps track and makes it easy for you to learn precisely what’s happening. This… |






thats really great.. i m checking speed of my blog.
mediafire movie (October 21st, 2011)