Skip to content

Commit

Permalink
Add our Google Tag Manager approved developer ID, fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
gido committed Sep 4, 2024
1 parent b939e8c commit cdfd21d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/gtm-tag-template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const copyFromWindow = require('copyFromWindow');
const createQueue = require('createQueue');
const getCookieValues = require('getCookieValues');
const gtagSet = require('gtagSet');
const injectScript = require('injectScript');
const JSON = require('JSON');
const log = require('logToConsole');
Expand Down Expand Up @@ -57,7 +58,7 @@ const updateLeckerliConsent = leckerliConsent => {
*/
const main = (data) => {
// Set developer ID
// gtagSet('developer_id.<replace_with_your_developer_id>', true);
gtagSet('developer_id.dM2ExY2', true);

// Set default consent state
const defaultConsentState = { wait_for_update: 500 };
Expand Down
29 changes: 28 additions & 1 deletion doc/gtm-tag-template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ ___SANDBOXED_JS_FOR_WEB_TEMPLATE___
const copyFromWindow = require('copyFromWindow');
const createQueue = require('createQueue');
const getCookieValues = require('getCookieValues');
const gtagSet = require('gtagSet');
const injectScript = require('injectScript');
const JSON = require('JSON');
const log = require('logToConsole');
Expand Down Expand Up @@ -153,7 +154,7 @@ const updateLeckerliConsent = leckerliConsent => {
*/
const main = (data) => {
// Set developer ID
// gtagSet('developer_id.<replace_with_your_developer_id>', true);
gtagSet('developer_id.dM2ExY2', true);
// Set default consent state
const defaultConsentState = { wait_for_update: 500 };
Expand Down Expand Up @@ -633,6 +634,32 @@ ___WEB_PERMISSIONS___
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "write_data_layer",
"versionId": "1"
},
"param": [
{
"key": "keyPatterns",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "developer_id.dM2ExY2"
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]

Expand Down

0 comments on commit cdfd21d

Please sign in to comment.