4ps Marketing SEO Agency Strategic Digital Marketers

Call us today on: 0207 607 5650

  • 4ps Blog



Home Blog Asynchronous Google Analytics Code
9 June 2010

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.

Asynchronous Google Analytics Code

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.

  • No Related Post

Save on Delicious
Categories: Blog Google SEO

Written by Hannah Miller

As Digital Group Account Director, Hannah manages and trains a team of SEO experts within the agency. She is our technical lead for SEO and ensures we are on top of even the smallest changes in search engine algorithms.

More about Hannah Miller

Leave a Reply

 

Subscribe to BlogGet all of our latest industry tips by email

Newsletter



  • Related Posts

      • No Related Post

    Newsletter