Skip to content

Commit

Permalink
Merge pull request #966 from alphagov/revert-cross-domain-tracking
Browse files Browse the repository at this point in the history
Revert "Cross domain tracking"
  • Loading branch information
NickColley authored Mar 27, 2017
2 parents 7b8ed0f + cf2e870 commit 5a9f499
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/assets/javascripts/analytics/init.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Otherwise explicitly set the domain as www.gov.uk (and not gov.uk).
var cookieDomain = (document.domain == 'www.gov.uk') ? '.www.gov.uk' : document.domain;

var universalId = 'UA-26179049-1'
var universalId = 'UA-26179049-1';

// Configure profiles, setup custom vars, track initial pageview
var analytics = new GOVUK.StaticAnalytics({
Expand All @@ -18,10 +18,5 @@
});

// Make interface public for virtual pageviews and events

GOVUK.analytics = analytics;

// Enable cross domain tracking to campaign site

GOVUK.analytics.addLinkedTrackerDomain(universalId, "PlanForBritainCampaign", "planforbritain.gov.uk")
})();

0 comments on commit 5a9f499

Please sign in to comment.