Google Analytics Now Tracks Page Load Times

If you add one line of code to your tracking tags Google Analytics will track your load times…

<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>
Full install instructions here

For a discussion see the following posts…

http://analytics.blogspot.com/2011/05/measure-page-load-time-with-site-speed.html
http://www.seomoz.org/blog/google-analytics-now-tracks-page-load-speed

I’m going to do it now… Should be interesting… I’ve always wondered if my slowness was due to bad connections or what…

Re: Google Analytics Now Tracks Page Load Times

great new feature, really helpful - currently in Google Webmaster tools my website’s performance vary from 2 to 11 sec., depending on day, now I’ll be hopefully able to see what slows it down.