Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
360 lines (359 sloc) 15.1 KB
{
"exportFormatVersion": 2,
"exportTime": "2018-05-24 08:11:14",
"containerVersion": {
"path": "accounts/124588580/containers/2385654/versions/5",
"accountId": "124588580",
"containerId": "2385654",
"containerVersionId": "5",
"name": "Added path to cookie /",
"container": {
"path": "accounts/124588580/containers/2385654",
"accountId": "124588580",
"containerId": "2385654",
"name": "Cookie permission",
"publicId": "GTM-PWCRG2",
"usageContext": [
"WEB"
],
"fingerprint": "1527149369568",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/124588580/containers/2385654/workspaces?apiLink=container"
},
"tag": [
{
"accountId": "124588580",
"containerId": "2385654",
"tagId": "3",
"name": "cookiepermission - ask",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script>\n function setCookie(value, box) {\n var d = new Date();\n d.setTime(d.getTime() + ({{cookiepermission - expiry}}*24*60*60*1000));\n var expires = \"expires=\"+ d.toUTCString();\n document.cookie = '{{cookiepermission - cookiename}}' + \"=\" + value + \"; path=/; \" + expires;\n \n // remove box\n box.style.display = 'none';\n \n if (value == \"yes\")\n dataLayer.push( { event: 'cookiepermission first page yes' } );\n else\n dataLayer.push( { event: 'cookiepermission first page no' } );\n \n }\n \n var txt = \"{{cookiepermission - question}}\";\n var cookiepermissionDialogbox = document.createElement(\"div\");\n cookiepermissionDialogbox.id = 'cp-overlay';\n cookiepermissionDialogbox.style.position = \"fixed\";\n cookiepermissionDialogbox.style.top = \"0px\";\n cookiepermissionDialogbox.style.width = \"100%\";\n cookiepermissionDialogbox.style.height = \"100%\";\n cookiepermissionDialogbox.style.zIndex = \"1000\";\n cookiepermissionDialogbox.style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n \n cpdiv = document.createElement(\"div\");\n cpdiv.id = 'cp-inner';\n cpdiv.style.textAlign = \"center\";\n cpdiv.style.backgroundColor = \"white\";\n cpdiv.style.margin = \"auto\";\n cpdiv.style.width = \"50%\";\n cpdiv.style.padding = \"70px\";\n cpdiv.style.opacity = \"1\";\n \n cpQuestion = document.createElement(\"h2\");\n cpQuestion.id = 'cp-question';\n cpQuestion.style.textAlign = \"center\";\n cpQuestion.innerHTML = txt;\n \n cpOptiondiv = document.createElement(\"div\");\n cpOptiondiv.id = 'cp-options';\n cpOptiondiv.style.textAlign = \"center\";\n \n cpSep = document.createElement(\"span\");\n cpSep.class = \"cp-separator\";\n cpSep.innerHTML = '&nbsp;-&nbsp;';\n \n cpYes = document.createElement(\"span\");\n cpYes.id = \"cp-yes\";\n \n cpYesA = document.createElement(\"a\");\n cpYesA.setAttribute(\"href\", \"#\");\n cpYesA.setAttribute(\"onclick\", \"javascript:setCookie('yes', cookiepermissionDialogbox);\");\n cpYesA.innerHTML = '{{cookiepermission - yes text}}';\n \n cpNo = document.createElement(\"span\");\n cpNo.id = \"cp-no\";\n \n cpNoA = document.createElement(\"a\");\n cpNoA.setAttribute(\"href\", \"#\");\n cpNoA.setAttribute(\"onclick\", \"javascript:setCookie('no', cookiepermissionDialogbox);\");\n cpNoA.innerHTML = '{{cookiepermission - no text}}';\n \n // insert into body \n document.body.appendChild(cookiepermissionDialogbox);\n \n cookiepermissionDialogbox.appendChild(cpdiv);\n cpdiv.appendChild(cpQuestion);\n cpdiv.appendChild(cpOptiondiv);\n cpOptiondiv.appendChild(cpYes);\n cpOptiondiv.appendChild(cpSep);\n cpOptiondiv.appendChild(cpNo);\n cpYes.appendChild(cpYesA);\n cpNo.appendChild(cpNoA);\n \n</script>\n "
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1527149401932",
"firingTriggerId": [
"6"
],
"parentFolderId": "9",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "124588580",
"containerId": "2385654",
"tagId": "2",
"name": "cookiepermission SAMPLE Tag",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script>\n console.log(\"Visitor says yes\");\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1527149199323",
"firingTriggerId": [
"4",
"7"
],
"parentFolderId": "9",
"tagFiringOption": "ONCE_PER_EVENT"
}
],
"trigger": [
{
"accountId": "124588580",
"containerId": "2385654",
"triggerId": "8",
"name": "cookiepermission - firstpage no",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "cookiepermission first page no"
}
]
}
],
"fingerprint": "1527149199310",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"triggerId": "7",
"name": "cookiepermission - firstpage yes",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "cookiepermission first page yes"
}
]
}
],
"fingerprint": "1527149199311",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"triggerId": "5",
"name": "cookiepermission - no",
"type": "PAGEVIEW",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{cookiepermission - content}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "no"
}
]
}
],
"fingerprint": "1527149199314",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"triggerId": "6",
"name": "cookiepermission - unknown",
"type": "PAGEVIEW",
"filter": [
{
"type": "MATCH_REGEX",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{cookiepermission - content}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "yes|no"
},
{
"type": "BOOLEAN",
"key": "negate",
"value": "true"
}
]
}
],
"fingerprint": "1468313428568",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"triggerId": "4",
"name": "cookiepermission - yes",
"type": "PAGEVIEW",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{cookiepermission - content}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "yes"
}
]
}
],
"fingerprint": "1527149199315",
"parentFolderId": "9"
}
],
"variable": [
{
"accountId": "124588580",
"containerId": "2385654",
"variableId": "1",
"name": "cookiepermission - content",
"type": "k",
"parameter": [
{
"type": "BOOLEAN",
"key": "decodeCookie",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "{{cookiepermission - cookiename}}"
}
],
"fingerprint": "1468313448086",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"variableId": "2",
"name": "cookiepermission - cookiename",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "cookiepermission"
}
],
"fingerprint": "1468313454537",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"variableId": "3",
"name": "cookiepermission - expiry",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "365"
}
],
"fingerprint": "1468313460663",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"variableId": "7",
"name": "cookiepermission - no text",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "Liever niet"
}
],
"fingerprint": "1527149199317",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"variableId": "4",
"name": "cookiepermission - question",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "Deze site plaatst enkele cookies. Akkoord?"
}
],
"fingerprint": "1527149199318",
"parentFolderId": "9"
},
{
"accountId": "124588580",
"containerId": "2385654",
"variableId": "6",
"name": "cookiepermission - yes text",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "Prima hoor"
}
],
"fingerprint": "1527149199319",
"parentFolderId": "9"
}
],
"folder": [
{
"accountId": "124588580",
"containerId": "2385654",
"folderId": "9",
"name": "cookiepermission",
"fingerprint": "1468313325396"
}
],
"builtInVariable": [
{
"accountId": "124588580",
"containerId": "2385654",
"type": "PAGE_URL",
"name": "Page URL"
},
{
"accountId": "124588580",
"containerId": "2385654",
"type": "PAGE_HOSTNAME",
"name": "Page Hostname"
},
{
"accountId": "124588580",
"containerId": "2385654",
"type": "PAGE_PATH",
"name": "Page Path"
},
{
"accountId": "124588580",
"containerId": "2385654",
"type": "REFERRER",
"name": "Referrer"
},
{
"accountId": "124588580",
"containerId": "2385654",
"type": "EVENT",
"name": "Event"
}
],
"fingerprint": "1527149457637",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/124588580/containers/2385654/versions/5?apiLink=version"
}
}