diff --git a/src/services/analytics/TagManager.ts b/src/services/analytics/TagManager.ts index 254539274e..8e7b499398 100644 --- a/src/services/analytics/TagManager.ts +++ b/src/services/analytics/TagManager.ts @@ -62,9 +62,9 @@ const TagManager = { }) TagManager.dataLayer({ - // Block JS variables and custom scripts + // Block JS variables // @see https://developers.google.com/tag-platform/tag-manager/web/restrict - 'gtm.blocklist': ['j', 'jsm', 'customScripts'], + 'gtm.blocklist': ['j', 'jsm'], pageLocation: `${location.origin}${location.pathname}`, pagePath: location.pathname, }) diff --git a/src/services/analytics/__tests__/TagManager.test.ts b/src/services/analytics/__tests__/TagManager.test.ts index 22c1710811..2ada5639e2 100644 --- a/src/services/analytics/__tests__/TagManager.test.ts +++ b/src/services/analytics/__tests__/TagManager.test.ts @@ -81,7 +81,7 @@ describe('TagManager', () => { wait_for_update: 500, }) expect(window.dataLayer?.[1]).toStrictEqual({ - 'gtm.blocklist': ['j', 'jsm', 'customScripts'], + 'gtm.blocklist': ['j', 'jsm'], pageLocation: 'http://localhost/balances', pagePath: '/balances', })