Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Fix: add Custom Events to GTM allowlist (#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored May 27, 2022
1 parent 927f7c2 commit de68aa5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 0 additions & 1 deletion src/utils/__tests__/googleTagManager.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 1 addition & 3 deletions src/utils/googleTagManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
})
Expand Down

0 comments on commit de68aa5

Please sign in to comment.