Now Track Site Load Speed Using the New Google Analytics

Recently, I upgraded to the new Google Analytics and it looks far better than the previous version and it is faster as well. Now, as you know that Google considers site loading time as one of the ranking factor so it is important to check, correct and decrease the loading time of your site. The new Google analytics have introduce this feature and now it shows the site load speed in their new analytics.

The reason why site loading time is important is that if you are having a speedy website, it can improve your rankings and it can also improve your time on site and can decrease the bounce rate and as you know that Google loves to rank those sites higher in their search results which are fast and user-friendly!
Now Track Site Load Speed Using the New Google Analytics
How to Enable Site Speed in Google Analytics
Enabling this feature is very easy. All you have to do is to just add a new line in your existing Google analytics’ tracking code in your HTML coding.
The code which you have to add with your Google Analytics’ tracking code is :
_gaq.push(['_trackPageLoadTime']);
Alternatively, You can directly replace your Google Analytics’ code with the one given below :
<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>
Just take a note that you don’t miss to insert your Account ID replacing it with the ‘UA-XXXXX-X’ in the above given code. For more information regarding this new feature, check out the official site speed implementation guide. Let me know if this helps you out.
Note : It will take some time to affect the changes and before the code is corrected, the site speed value in the Google analytics will be shown as –0-.

0 comments:

Post a Comment