Sponsor

2011/05/07

QuickOnlineTips Newsletter

QuickOnlineTips Newsletter

Link to Quick Online Tips

Setup Google Analytics to Measure Page Load Time, Site Speed

Posted: 07 May 2011 08:25 AM PDT

tweet  Facebook share

Google Analytics introduced a new feature which allows webmasters to measure Page Load Time and Site Speed and get detailed analytics reports for your site.

However, it is not an automatic upgrade, and webmasters, bloggers and site owners need to edit code of the Google Analytics code to start tracking page load time and get the site analytics reports. Though available in2 different scripts, it is advisable to always use the asynchronous script as it will not delay page loading and track more pageviews. Remember to place it in HEAD section of your page html.

Add Site Speed Analytics Code

To get the new site speed report, add the following line to your analytics code
_gaq.push(['_trackPageLoadTime']);

Now this is how your code will look like

<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>

Remember the page speed measurement is turned off by default and unless you make this code change to the Analytics tracking code, this report will not be generated. It will help you find which landing pages are slowest, find the causes and fix up your site speed issue as it is a search engine ranking criteria.

Original article: Setup Google Analytics to Measure Page Load Time, Site Speed
Copyright 2011. Quick Online Tips. All Rights Reserved.


No comments:

Post a Comment

Keep a civil tongue.

Label Cloud

Technology (1464) News (793) Military (646) Microsoft (542) Business (487) Software (394) Developer (382) Music (360) Books (357) Audio (316) Government (308) Security (300) Love (262) Apple (242) Storage (236) Dungeons and Dragons (228) Funny (209) Google (194) Cooking (187) Yahoo (186) Mobile (179) Adobe (177) Wishlist (159) AMD (155) Education (151) Drugs (145) Astrology (139) Local (137) Art (134) Investing (127) Shopping (124) Hardware (120) Movies (119) Sports (109) Neatorama (94) Blogger (93) Christian (67) Mozilla (61) Dictionary (59) Science (59) Entertainment (50) Jewelry (50) Pharmacy (50) Weather (48) Video Games (44) Television (36) VoIP (25) meta (23) Holidays (14)

Popular Posts (Last 7 Days)