Subscribe to BlogGet all of our latest industry tips by email
Recent posts
- Google introduces Knowledge Graph
- Google’s Algorithms: The 52 changes of April
- Google’s Penguin Update
- 4Ps Cookie Audit
- Near Match Types
- Google Analytics Continues to Get Social
- Discussing “Cookies” at the AOP (Association of Online Publishers)
- SERP Insights and Online Advertising
- 4Ps Marketing shortlisted for ‘Agency of the Year’ by Marketing Week
- 4Ps Marketing Planning for Personal, Client and Agency Growth in Year 5
Related Posts
BY CATEGORY
BY AUTHOR
- Aatif Basheer (1)
- Alina Katchi (11)
- Chris Hyland (31)
- Eleanor Steele (25)
- Emma Pilcher (2)
- Hannah Miller (288)
- Ibeth Santos (5)
- Jack Mclaren (38)
- James Cornwall (14)
- James Green (8)
- Kia McSween (4)
- Laura Pagani (4)
- Luke Knight (17)
- Matt Stannard (19)
- Matthew Phelan (77)
- Megan Clayton (1)
- Peter O'Neill (1)
- Rachel Kneen (172)
- Robert Laver (4)
- Serena Wong (1)
- Stephanie Villegas (45)

Asynchronous Google Analytics Code
Google Analytics had launched Asynchronous tracking late last year, providing an alternative for tracking your websites. The tracking code can be thought of a snippet that helps in reducing webpage load time. Websites that will benefit from this snippet are those that rely on a lot of scripts & rich media content with lightweight sites also showing signs of improvement. So what are the benefits?
• Improved browser execution helping to quicken tracking code loading times for your web pages.
• Enhanced data collection & accuracy.
• Eliminates tracking errors from dependencies when JavaScript hasn’t fully loaded.
Where do we place the code?
When the analytics code was initially rolled out as a beta version in December, 2009 – the instruction was to place the Asynchronous Google Analytics code higher in the page before closing the <head> tag. However, due to issues with IE 6 & 7, the workaround solution was to place it just after opening the <body> tag. Since then we’ve had an updated version of the code meaning the former instruction of placing it within the <head> section works just fine.
To get started with Asynchronous tracking, place the following code remembering to change UA-XXXXX-X with your web property ID.
Migration Instructions
To migrate to the Asynchronous snippe t for pages that currently use traditional tracking with ga.js, please go through the following instructions:
• Remove existing tracking code & any customisation made.
• Insert the Asynchronous snippet at the bottom of the <head> section of your pages.
• Modify the _setAccount method with your web property ID
• Add your customisations back in using the Asynchronous syntax
• It is recommended not to use the existing & the new Asynchronous tracking code together on the same page.
We at 4Ps Marketing put a lot of emphasis on analytics to help our clients with effective SEO campaigns & stay ahead of the game.
Save on Delicious