Google Analytics Asynchronous Code Helps Website Tracking & Improves Page Load Time

April 27, 2010 | By View Linkedin Profile

Google Analytics introduced asynchronous tracking in Dec 2009 as an “alternate way to track your website”. According to Google, this code is processed separately and can execute without blocking other code or content. This allows the Analytics code to be placed higher in the page, unlike the traditional code. The asynchronous tracking snippet is said to offer the following benefits: Faster overall page load time Improved data collection for short visits to rich media or script-heavy pages Collecting (and retaining) user clicks that occur before the tracking code loads We decided to test Google’s claim that the new code snippet improves page load time. Here’s what we found. Problem: To study the effect of using the asynchronous code as against the traditional code on page load time. Hypothesis: Page load time with the traditional code will be higher (i.e. the page will take longer to load) than with the asynchronous code in all possible placements of the codes. Limitation: The experiment does not attempt to study the effect of the codes on script-heavy or rich media pages. It also does not attempt to study tracking errors when the script has not fully loaded. Methodology: Six simple HTML pages were created …

Posted in Web Analytics

Get in Touch.
We’d love to hear from you.


Subscribe to our monthly and
weekly email newsletters


Toll-free (US):