From de68aa5d4efab1eac87f76487b2075be90f647ec Mon Sep 17 00:00:00 2001 From: katspaugh <381895+katspaugh@users.noreply.github.com> Date: Fri, 27 May 2022 12:57:42 +0200 Subject: [PATCH] Fix: add Custom Events to GTM allowlist (#3918) --- package.json | 2 +- src/utils/__tests__/googleTagManager.test.tsx | 1 - src/utils/googleTagManager.ts | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index aff3b12f4d..83c70ff94e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "safe-react", - "version": "3.25.4", + "version": "3.25.5", "description": "Allowing crypto users manage funds in a safer way", "website": "https://github.com/gnosis/safe-react#readme", "bugs": { diff --git a/src/utils/__tests__/googleTagManager.test.tsx b/src/utils/__tests__/googleTagManager.test.tsx index e7fd9baeff..51566c3a51 100644 --- a/src/utils/__tests__/googleTagManager.test.tsx +++ b/src/utils/__tests__/googleTagManager.test.tsx @@ -117,7 +117,6 @@ describe('googleTagManager', () => { auth: 'auth123', preview: 'env-3', dataLayer: { - 'gtm.allowlist': ['gaawc', 'gaawe'], 'gtm.blocklist': ['j', 'jsm', 'customScripts'], event: 'pageview', chainId: '4', diff --git a/src/utils/googleTagManager.ts b/src/utils/googleTagManager.ts index 3803d5de8d..e6bd44e606 100644 --- a/src/utils/googleTagManager.ts +++ b/src/utils/googleTagManager.ts @@ -86,10 +86,8 @@ export const loadGoogleTagManager = (): void => { event: GTM_EVENT.PAGEVIEW, chainId: _getChainId(), page, - // Allow only GA4 configuration and GA4 custom event tags - // @see https://developers.google.com/tag-platform/tag-manager/web/restrict - 'gtm.allowlist': ['gaawc', 'gaawe'], // Block JS variables and custom scripts + // @see https://developers.google.com/tag-platform/tag-manager/web/restrict 'gtm.blocklist': ['j', 'jsm', 'customScripts'], }, })