mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-08 18:34:24 -04:00
Merge pull request #3260 from alphagov/fix-ga-code
Fix Google Analytics tracking code
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user