Skip to content

Commit

Permalink
fix: use conditionnal
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien committed Sep 12, 2024
1 parent 3de2675 commit 69da2c6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions data/google-tag-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,10 @@
"key": "gtm"
},
{
"code": "window[{{l}}]=window[{{l}}]||[];(function () {window[{{l}}].push(arguments)})('consent', {{consentType}},{{consentValues}});window[{{l}}].push({'gtm.start':new Date().getTime(),event:'gtm.js'});",
"code": "window[{{l}}]=window[{{l}}]||[];{{#consentValues}}(function () {window[{{l}}].push(arguments)})('consent', {{consentType}},{{consentValues}});{{/consentValues}}window[{{l}}].push({'gtm.start':new Date().getTime(),event:'gtm.js'});",
"optionalParams": {
"l": "dataLayer",
"consentType": "default",
"consentValues": {
"ad_user_data": "denied",
"ad_personalization": "denied",
"ad_storage": "denied",
"analytics_storage": "denied",
"wait_for_update": 500
}
"consentType": "default"
},
"strategy": "worker",
"location": "head",
Expand Down

0 comments on commit 69da2c6

Please sign in to comment.