Asynchronous JavaScript Tags for Google Website Optimizer

Google made a change to the Website Optimizer tags that help your pages load faster, improve data accuracy, and eliminate tracking errors when tags aren't fully loaded."The next time you go to create an experiment, you'll be given the new tags, which use asynchronous JavaScript. Asynchronous tagging, which's already a standard for Google Analytics, allows […]

Google made a change to the Website Optimizer tags that help your pages load faster, improve data accuracy, and eliminate tracking errors when tags aren't fully loaded.

"The next time you go to create an experiment, you'll be given the new tags, which use asynchronous JavaScript. Asynchronous tagging, which's already a standard for Google Analytics, allows WO tracking and conversion scripts to run in parallel to your site loading. For WO veterans, these new tags appear in Step 2 of the setup wizard -- be sure to read the instructions as the installation is slightly different," stated Google.

Here's five things you should know about the new tags:

  1. Traditional (non-async) snippets will continue to work if you want to use them. And there's no need to retag experiments.
  2. Combined the Control and Tracking Script into one snippet. Be sure not to double tag your pages.
  3. Async tags go immediately after the opening <head> tag on your test and conversion pages, not at the bottom of the page like the old tags.
  4. If you customize your Control Scripts (for experiments with cross-domain experiments and the like), the Control Script still uses urchin.js-style methods.
  5. Articles in Help Center have been updated to reflect the new tags though still have articles with the traditional tag for reference.

[tags]tags,asynchronous[/tags]

[Source]