Permalink
Browse files

Track page load time through Google Analytics

  • Loading branch information...
1 parent 24ea9c7 commit 01b832b06c5e153c72c543dfa7b6ad6973bdfb0c @craiga committed Aug 9, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 templates/google-analytics.template
@@ -3,11 +3,12 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{google-analytics-account}']);
_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>
+</script>

0 comments on commit 01b832b

Please sign in to comment.