Friday, August 21, 2020

HOW TO Setup Google Analytics To Check Site Speed

HOW TO Setup Google Analytics To Check Site Speed Make Money Online Queries? Struggling To Get Traffic To Your Blog? Sign Up On (HBB) Forum Now!HOW TO: Setup Google Analytics To Check Site SpeedUpdated On 17/04/2017Author : Pradeep KumarTopic : Featured GoogleShort URL : http://hbb.me/2oz4bra CONNECT WITH HBB ON SOCIAL MEDIA Follow @HellBoundBlogGoogle Analytics quite recently added a new feature for checking your site speed and page loading time, awesome isnt it? It is not an automatic upgrade, so you need to tweak your Google Analytics default tracking code to enable this feature. Now it will be easy to improve your sites loading speed.Add Site Speed Code in Google AnalyticsTo 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 this [sample code] :script type=text/javascript var _gaq = _gaq || []; _gaq.push([_setAccount, UA-XXXXX-X]); _gaq.push([_trackPageview]); _gaq.push([_trackPageLoadTime]); (function() { var ga = document.crea teElement(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); })(); /scriptThis will be really useful for webmasters and bloggers to detect which landing pages are slow. Also you can find the cause and fix it earlier since Google considers site loading speed as a key factor in SERPs.READHBB Initiative: World Day for Prevention of Child Abuse [November 19th, 2011]

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.