Late in April of the current year, in their official blog, Google Analytics representatives have announced the launch of the new ibeta-testing nterface, the overview of its newest trinkets can be accessed here. Several days later the official statement was published in the same blog.
In this article I want to share my view on the use of one of its amazing features - the page load speed analysis option.
Installation functions
By default the page load speed tracking function is turned off.
<citation from documentation>
In order that the reports on the site load speed be fascilitated, the necessary changes should be introduced into the tracking code, first. In fact it only takes embedding one additioanal method:
_trackPageLoadTime();
Until you have dully changed the tracking code, site load speed report indicators will by default, exhibit zero values.
Asynchronous code
<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>
Standard 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(); pageTracker._trackPageLoadTime(); } catch(err) {} </script>
</citation from documentation>