Hieronder kun je onze GTM-template.json vinden. Deze kun je gebruiken om in een nieuwe workspace alle juiste instellingen te wijzigen.
Let op: wijzig de teksten van de cookie melding en het Google Analytics ID.
{
"exportFormatVersion": 2,
"exportTime": "2019-05-15 11:59:27",
"containerVersion": {
"path": "accounts/4701979334/containers/11936617/versions/0",
"accountId": "4701979334",
"containerId": "11936617",
"containerVersionId": "0",
"container": {
"path": "accounts/4701979334/containers/11936617",
"accountId": "4701979334",
"containerId": "11936617",
"name": "template",
"publicId": "GTM-KH98LV3",
"usageContext": [
"WEB"
],
"fingerprint": "1557921454676",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/4701979334/containers/11936617/workspaces?apiLink=container"
},
"tag": [
{
"accountId": "4701979334",
"containerId": "11936617",
"tagId": "1",
"name": "Conversion Linker",
"type": "gclidw",
"parameter": [
{
"type": "BOOLEAN",
"key": "enableCrossDomain",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableCookieOverrides",
"value": "false"
}
],
"fingerprint": "1557921454661",
"firingTriggerId": [
"7"
],
"blockingTriggerId": [
"11"
],
"parentFolderId": "6",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"tagId": "2",
"name": "Cookie Consent",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<link rel=\"stylesheet\" type=\"text/css\" href=\"//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css\" />\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js\"></script>\n<script>\nwindow.addEventListener(\"load\", function(){\nwindow.cookieconsent.initialise({\n \"palette\": {\n \"popup\": {\n \"background\": \"#f5f1ef\",\n \"text\": \"#262626\"\n },\n \"button\": {\n \"background\": \"#ce0404\"\n }\n },\n \"position\": \"bottom-left\",\n \"type\": \"opt-out\",\n \"content\": {\n \"message\": \"Kenneth Smit gebruikt cookies om je ervaring op onze website te verbeteren.\",\n \"dismiss\": \"Ik begrijp het\",\n \"allow\": \"Toestaan\",\n \"deny\": \"Alleen functionele cookies\",\n \"link\": \"Lees details\",\n \"href\": \"/privacybeleid\"\n }\n})});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1557921454662",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "5",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"tagId": "4",
"name": "GA Event - Cookie Consent",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "Cookie Consent"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{Google Analytics ID}}"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "Cookie Consent - {{Click Text}}"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{JS Variable - Cookie Consent Log Data}}"
}
],
"fingerprint": "1557921454663",
"firingTriggerId": [
"9",
"10"
],
"parentFolderId": "5",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"tagId": "6",
"name": "Google Analytics - anonymize",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "true"
},
{
"type": "LIST",
"key": "fieldsToSet",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "anonymizeIp"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "true"
}
]
}
]
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_PAGEVIEW"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{Google Analytics ID}}"
}
],
"fingerprint": "1557921454665",
"firingTriggerId": [
"8"
],
"blockingTriggerId": [
"11"
],
"parentFolderId": "6",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"tagId": "7",
"name": "Google Analytics - full",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_PAGEVIEW"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{Google Analytics ID}}"
}
],
"fingerprint": "1557921454666",
"firingTriggerId": [
"7"
],
"blockingTriggerId": [
"11"
],
"parentFolderId": "6",
"tagFiringOption": "ONCE_PER_EVENT"
}
],
"trigger": [
{
"accountId": "4701979334",
"containerId": "11936617",
"triggerId": "7",
"name": "Cookie Consent - Allow",
"type": "PAGEVIEW",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Cookie Consent}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "allow"
}
]
}
],
"fingerprint": "1557921454657",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"triggerId": "8",
"name": "Cookie Consent - Deny",
"type": "PAGEVIEW",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Cookie Consent}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "allow"
},
{
"type": "BOOLEAN",
"key": "negate",
"value": "true"
}
]
}
],
"fingerprint": "1557921454657",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"triggerId": "9",
"name": "Cookie Consent - Log Accepted",
"type": "LINK_CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{JS variable - Aria label}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "allow cookies"
}
]
}
],
"waitForTags": {
"type": "BOOLEAN",
"value": "false"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "false"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1557921454658",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"triggerId": "10",
"name": "Cookie Consent - Log Denied",
"type": "LINK_CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{JS variable - Aria label}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "deny cookies"
}
]
}
],
"waitForTags": {
"type": "BOOLEAN",
"value": "false"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "false"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1557921454659",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"triggerId": "11",
"name": "Exclude administrators",
"type": "PAGEVIEW",
"filter": [
{
"type": "MATCH_REGEX",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{visitorType}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "administrator|editor|shop_manager|wpseo_editor|wpseo_manager"
}
]
}
],
"fingerprint": "1557921454659"
}
],
"variable": [
{
"accountId": "4701979334",
"containerId": "11936617",
"variableId": "1",
"name": "Cookie Consent",
"type": "k",
"parameter": [
{
"type": "BOOLEAN",
"key": "decodeCookie",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "cookieconsent_status"
}
],
"fingerprint": "1557921454656",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"variableId": "4",
"name": "Google Analytics ID",
"type": "gas",
"parameter": [
{
"type": "TEMPLATE",
"key": "cookieDomain",
"value": "auto"
},
{
"type": "BOOLEAN",
"key": "useEcommerceDataLayer",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useHashAutoLink",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "decorateFormsAutoLink",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "UA-12345678-0"
}
],
"fingerprint": "1557921538229",
"parentFolderId": "6"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"variableId": "5",
"name": "JS Variable - Cookie Consent Log Data",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function() {\n \n\tvar timestamp=new Date().toString()\n\tvar clientId=ga.getAll()[0].get('clientId');\n\tvar userAgent=navigator.userAgent;\n\treturn (timestamp + \";\" +clientId +\";\"+userAgent)\n\n}"
}
],
"fingerprint": "1557921454661",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"variableId": "2",
"name": "JS variable - Aria label",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function() {\n return {{Click Element}}.getAttribute( 'aria-label' ); \n}"
}
],
"fingerprint": "1557921454658",
"parentFolderId": "5"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"variableId": "6",
"name": "pagePostType",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "pagePostType"
}
],
"fingerprint": "1557921454661",
"formatValue": {}
},
{
"accountId": "4701979334",
"containerId": "11936617",
"variableId": "3",
"name": "visitorType",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "defaultValue",
"value": "visitor-logged-out"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "visitorType"
}
],
"fingerprint": "1557921454659",
"formatValue": {}
}
],
"folder": [
{
"accountId": "4701979334",
"containerId": "11936617",
"folderId": "5",
"name": "Cookie Consent",
"fingerprint": "1557921454655"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"folderId": "6",
"name": "Marketing",
"fingerprint": "1557921454656"
}
],
"builtInVariable": [
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "PAGE_URL",
"name": "Page URL"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "PAGE_HOSTNAME",
"name": "Page Hostname"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "PAGE_PATH",
"name": "Page Path"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "REFERRER",
"name": "Referrer"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "EVENT",
"name": "Event"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "CLICK_ELEMENT",
"name": "Click Element"
},
{
"accountId": "4701979334",
"containerId": "11936617",
"type": "CLICK_TEXT",
"name": "Click Text"
}
],
"fingerprint": "0",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/4701979334/containers/11936617/versions/0?apiLink=version"
}
}