alphagov/static — pull request #54 by gtrogers (2012-10-01 10:26:57+00:00)
Title: Analytics event tracking

:bangbang: NB: This change is dependent on https://github.com/alphagov/frontend/pull/41 being pulled first.

This pull request:
* Changes internal link tracking (the user goes from one gov.uk page to another) to be cookie based.
* Changes external link tracking to use the exit controller added to frontend see: https://github.com/alphagov/frontend/pull/41
* Adds tracking javascript for Guide, Transaction, Benefit, Quick Answer, Smart Answer.

The new tracking code should be non-intrusive and should stop problems with jQuery events being lost and user experience being degraded for things like ctrl-clicking links.