(function() {
  "use strict";
  GOVUK.Tracker.load();
  var cookieDomain = (document.domain === 'www.beta.digitalmarketplace.service.gov.uk') ? '.digitalmarketplace.service.gov.uk' : document.domain;
  GOVUK.analytics = new GOVUK.Tracker({
    universalId: 'UA-49258698-3',
    cookieDomain: cookieDomain
  });
  GOVUK.analytics.trackPageview();
})();

(function() {
  "use strict";
  GOVUK.Tracker.load();
  var cookieDomain = (document.domain === 'www.beta.digitalmarketplace.service.gov.uk') ? '.digitalmarketplace.service.gov.uk' : document.domain;
  var property = (document.domain === 'www.digitalmarketplace.service.gov.uk') ? 'UA-49258698-1' : 'UA-49258698-3';
  GOVUK.analytics = new GOVUK.Tracker({
    universalId: property,
    cookieDomain: cookieDomain
  });
  GOVUK.analytics.trackPageview();
})();

Use correct analytics properties for live/other
Use correct analytics properties for live/other

This commit makes the app select different Google analytics properties to track
against depending on which domain the user is browsing.

This will ensure continuity of analytics when we switch the DNS.
