4 votes

Google Analytics - Asynchronous

Google just an update to their Analytics tracking code. As their website states, "Asynchronous Tracking is an alternative way track website visitors with Google Analytics. Unlike a traditional installation, asynchronous tracking optimizes how browsers load 

ga.js so its impact on user experience is minimized. It also allows you to put your Analytics snippet higher in the page without delaying subsequent content from rendering. The Asynchronous Tracking requires a different Analytics snippet and a different syntax for making tracking API calls."

The code is an XSLT rendering and a Macro. The Macro has two parameters, the Account Number and a Display Google Analytics Code checkbox. The checkbox allows you to deactivate the Google Analytics code in your staging environment and then to easily activate it once you push up to production.

Unlike the old Google code, this code should be placed inbetween the <head></head> tags instead of at the bottom of the page.

Archived files

Documentation

Source code

Package owner

Chad Rosenthal

Chad Rosenthal

Chad has 474 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.1.x (untested)
8.0.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Chad Rosenthal
  • Created: 02/12/2009
  • Current version .9
  • License MIT
  • Downloads: 1459