Last active
August 31, 2023 21:23
-
-
Save kmclaugh/9fbdb240201e78619bc357ba4f751109 to your computer and use it in GitHub Desktop.
Shopify Custom Pixel GTM Logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exportFormatVersion": 2, | |
"exportTime": "2023-08-31 21:22:41", | |
"containerVersion": { | |
"path": "accounts/4701996609/containers/164567808/versions/0", | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"containerVersionId": "0", | |
"container": { | |
"path": "accounts/4701996609/containers/164567808", | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"name": "shopify-custom-pixels-log", | |
"publicId": "GTM-WBKS2Z4F", | |
"usageContext": [ | |
"WEB" | |
], | |
"fingerprint": "1693516851433", | |
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/4701996609/containers/164567808/workspaces?apiLink=container", | |
"features": { | |
"supportUserPermissions": true, | |
"supportEnvironments": true, | |
"supportWorkspaces": true, | |
"supportGtagConfigs": false, | |
"supportBuiltInVariables": true, | |
"supportClients": false, | |
"supportFolders": true, | |
"supportTags": true, | |
"supportTemplates": true, | |
"supportTriggers": true, | |
"supportVariables": true, | |
"supportVersions": true, | |
"supportZones": true, | |
"supportTransformations": false | |
}, | |
"tagIds": [ | |
"GTM-WBKS2Z4F" | |
] | |
}, | |
"tag": [ | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"tagId": "10", | |
"name": "Log Datalayer", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script>\n console.log(\"datalayer\", {\"event\": {{Event}}, \"dataLayer\": {{Latest Datalayer}}})\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1693516887618", | |
"firingTriggerId": [ | |
"9" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
} | |
], | |
"trigger": [ | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"triggerId": "9", | |
"name": "Any Custom Pixel", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "MATCH_REGEX", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "." | |
} | |
] | |
} | |
], | |
"filter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{Fired From}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "custom_pixel" | |
} | |
] | |
} | |
], | |
"fingerprint": "1693516887618" | |
} | |
], | |
"variable": [ | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"variableId": "6", | |
"name": "Fired From", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "fired_from" | |
} | |
], | |
"fingerprint": "1693516887617", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"variableId": "7", | |
"name": "Full dataLayer", | |
"type": "j", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "dataLayer" | |
} | |
], | |
"fingerprint": "1693516887617", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"variableId": "8", | |
"name": "Latest Datalayer", | |
"type": "jsm", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "javascript", | |
"value": "function() {\n return {{Full dataLayer}}[{{Full dataLayer}}.length-1];\n}" | |
} | |
], | |
"fingerprint": "1693516887618", | |
"formatValue": {} | |
} | |
], | |
"builtInVariable": [ | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"type": "PAGE_URL", | |
"name": "Page URL" | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"type": "PAGE_HOSTNAME", | |
"name": "Page Hostname" | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"type": "PAGE_PATH", | |
"name": "Page Path" | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"type": "REFERRER", | |
"name": "Referrer" | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"type": "EVENT", | |
"name": "Event" | |
}, | |
{ | |
"accountId": "4701996609", | |
"containerId": "164567808", | |
"type": "CLICK_URL", | |
"name": "Click URL" | |
} | |
], | |
"fingerprint": "1693516961908", | |
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/4701996609/containers/164567808/versions/0?apiLink=version" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment