Google Async Analytics using LocalStorage Test

Thanks! Just visiting this page is helping out. To learn more about what this page is for, read Google Async Analytics Using LocalStorage.

This page's purpose is to test a new Google Analytics snippet that uses localStorage (MDN), when available, instead of cookies.

The way the test works is by first loading the Analytics code into this main frame (named Control Analytics). Once the script has been loaded within the main frame, we'll dynamically create two iframes, one iframe will contain the original async snippet (named Original Analytics), the other will contain our localStorage snippet (named LocalStorage Analytics).

Each of the three snippet contains its own unique tracking ID. If you'd like to be added to the list of users who can read and analyze the captured tracking data, send your email address to .

  // Original Analytics Snippet  
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'UA-55009296-1', 'auto');
  ga('send', 'pageview');
// Semi-prettified version of our localStorage Analytics Snippet  
// See: for discussion
    (ct = this[GoogleAnalyticsObject='ct'] || function(l,e){(ct.q = ct.q || []).push(arguments)}).l =+ new Date,
    l = document.createElement('script'),
    l.src = '//',
    (e = document.getElementsByTagName('script')[0]).parentNode.insertBefore(l, e);
        localStorage.setItem(ct.l, ct.l),
        l = localStorage.getItem(ct.l) - ct.l,
    ct('create', 'UA-55009296-2', l ? {} : {clientId: localStorage.clientId, storage:'none'}),
    ct(function(l,e) {
        localStorage.clientId = l.get('clientId')