📜 ⬆️ ⬇️

Tracking the speed of loading pages on the site

Often there is a need to determine the speed of loading pages on the site in order to catch slow pages and optimize them. But there was no universal solution for this. Now this solution has appeared in the new version of Google Analytics!

By default, this feature is disabled in Google Analytics. To enable it, just add one line to the GA code. This is a call to the _trackPageLoadTime () function ; that must be placed after the _trackPageview () function;

Option for asynchronous GA code:
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);


Option for standard GA code:
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();


After updating the GA tracking code, the data will be reported in the “Content -> Site loading speed” report. (! This report is only in the new interface of Google Analytics!) The report contains a list of site pages, sorted by average load time in seconds from most to least.
')
Very useful functionality that can be found many applications in web analytics.

You can read more about this feature in Google Analytics Help: http://www.google.com/support/analyticshelp/bin/answer.py?hlrm=en&answer=1205784&topic=112071

Source: https://habr.com/ru/post/118750/


All Articles