: What is the benefit of using Google Analytics' asynchronous tracking code compared to the non-asynchronous code? What, specifically, does the asynchronous code accomplish or allow that the older
What, specifically, does the asynchronous code accomplish or allow that the older code does not?
More posts by @Carla537
1 Comments
Sorted by latest first Latest Oldest Best
The newer code uses the ability of modern browsers to execute Javascript aysnchronously from rendering the page (effectively, it is executed in another thread rather than the main page rendering thread).
This allows the code to be placed at the top of the page without impacting perceived page rendering performance.
This in turn means that partial page loads (e.g. someone hitting the "Stop" button, or navigating on to another page) are more likely to be captured by the script. With the old code, if the user navigates away before the JavaScript section is loaded and executed, it is possible for the page impression not to be recorded properly.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.