Merge pull request #3260 from alphagov/fix-ga-code

Fix Google Analytics tracking code
This commit is contained in:
Tom Byers
2020-01-15 12:08:53 +00:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
window.GOVUK = window.GOVUK || {};
const trackingId = 'UA-26179049-1';
const trackingId = 'UA-75215134-1';
// Disable analytics by default
window[`ga-disable-${trackingId}`] = true;

View File

@@ -43,7 +43,7 @@ describe("Analytics init", () => {
test("After the init.js script has been loaded, Google Analytics will be disabled", () => {
expect(window['ga-disable-UA-26179049-1']).toBe(true);
expect(window['ga-disable-UA-75215134-1']).toBe(true);
});
@@ -93,7 +93,7 @@ describe("Analytics init", () => {
test("Google Analytics will not be disabled", () => {
expect(window['ga-disable-UA-26179049-1']).toBe(false);
expect(window['ga-disable-UA-75215134-1']).toBe(false);
});