alterm4nn/ChronoZoom — pull request #338 by javierluraschi (2013-05-06 03:14:19+00:00)
Title: Analytics Improvements - Register Hash Changes

Google Analytics Improvements

Fix 1: Send Google Analytics event to track URL hash changes. This enables answering the following question:

a) What is the correct user engagement in the site (length of visit)?
b) Which are the most popular timelines, exhibits and content items?
c) On average, how many timelines, exhibit and content items are explored per user session?

The new Google Analytics custom event details:
- Category: URL
- Action: Hash
- Label: The Hash String
- Value: 1
- Non-Interactive: Skip first hash change since it always changes after load.

Fix 2: Avoid hard-coding domain name since this is blocking the ability to filter out test.chronozoomproject.org from Google Analytics console. The code sets "_setDomainName" to auto to associate the domain dynamically.

Code Review (Approved): http://mrccodereview.cloudapp.net/ui#review:id=1156