Skip to content

Instantly share code, notes, and snippets.

@Jursdotme
Last active March 8, 2018 07:09
Show Gist options
  • Save Jursdotme/88e4c3800cbd9fa6f0ef4c9b1ea576ae to your computer and use it in GitHub Desktop.
Save Jursdotme/88e4c3800cbd9fa6f0ef4c9b1ea576ae to your computer and use it in GitHub Desktop.
Inzite Tag manager template
{
"exportFormatVersion": 2,
"exportTime": "2018-03-07 15:14:39",
"containerVersion": {
"path": "accounts/2288261640/containers/8196307/versions/18",
"accountId": "2288261640",
"containerId": "8196307",
"containerVersionId": "18",
"container": {
"path": "accounts/2288261640/containers/8196307",
"accountId": "2288261640",
"containerId": "8196307",
"name": "inzite.dk",
"publicId": "GTM-K7B2CN6",
"usageContext": [
"WEB"
],
"fingerprint": "1517495097279",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/2288261640/containers/8196307/workspaces?apiLink=container"
},
"tag": [
{
"accountId": "2288261640",
"containerId": "8196307",
"tagId": "10",
"name": "GA - Event - Contact Link Clicks",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "useDebugVersion",
"value": "{{Debug Mode}}"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "Contact Link Click"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "{{Lookup - Link Type}}"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{Click URL - No Protocol}}"
},
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "false"
},
{
"type": "LIST",
"key": "fieldsToSet",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "cookieDomain"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "auto"
}
]
}
]
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics-indstillinger}}"
}
],
"fingerprint": "1517494663744",
"firingTriggerId": [
"31"
],
"parentFolderId": "30",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"tagId": "1",
"name": "Klassisk Google Analytics",
"type": "ga",
"parameter": [
{
"type": "BOOLEAN",
"key": "detectTitle",
"value": "true"
},
{
"type": "LIST",
"key": "ignoredRef"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "allowLinker",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_PAGEVIEW"
},
{
"type": "LIST",
"key": "cookiePathCopy"
},
{
"type": "BOOLEAN",
"key": "clientInfo",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "campaignTrack",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "anonymizeIp",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "webPropertyId",
"value": "UA-12788990-2"
},
{
"type": "BOOLEAN",
"key": "allowAnchor",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "allowHash",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "sendHitsToGoogle",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "enableInPageLinkId",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "forceSsl",
"value": "false"
},
{
"type": "LIST",
"key": "ignoredOrganic"
},
{
"type": "BOOLEAN",
"key": "detectFlash",
"value": "true"
}
],
"fingerprint": "1517490671210",
"firingTriggerId": [
"15",
"25"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"tagId": "2",
"name": "Pixel Base Code",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<!-- Facebook Pixel Code -->\n<script>\n!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;\nn.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\nt.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\ndocument,'script','https://connect.facebook.net/en_US/fbevents.js');\n\nfbq('init', '1245913332172181');\nfbq('set','agent','tmgoogletagmanager', '1245913332172181');\nfbq('track', \"PageView\");\n</script>\n"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1517491006886",
"firingTriggerId": [
"15",
"25"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"tagId": "7",
"name": "cHTML - Cookie Consent",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<link rel=\"stylesheet\" type=\"text/css\" href=\"//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css\" />\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js\"></script>\n<script>\nwindow.addEventListener(\"load\", function(){\nwindow.cookieconsent.initialise({\n \"palette\": {\n \"popup\": {\n \"background\": \"#000\"\n },\n \"button\": {\n \"background\": \"#f1d600\"\n }\n },\n \"position\": \"bottom-right\",\n \"type\": \"opt-out\",\n \"content\": {\n \"message\": \"Denne side bruger cookies til sporing af statistik.\",\n \"dismiss\": \"Helt i orden!\",\n \"deny\": \"Nej tak\",\n \"link\": \"Læs mere\",\n \"href\": \"/privatlivspolitik\"\n }\n})});\n \nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n 'event': 'inzite_consent_given'\n});\n \nfunction inzite_delete_concent_cookie() {\n document.cookie = 'cookieconsent_status=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n}\n\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1517496202512",
"firingTriggerId": [
"16"
],
"parentFolderId": "33",
"tagFiringOption": "ONCE_PER_EVENT"
}
],
"trigger": [
{
"accountId": "2288261640",
"containerId": "8196307",
"triggerId": "11",
"name": "Alle links",
"type": "LINK_CLICK",
"waitForTags": {
"type": "BOOLEAN",
"value": "false"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "false"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1515424390735"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"triggerId": "25",
"name": "Concent Given",
"type": "CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click Classes}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "cc-dismiss"
}
]
}
],
"fingerprint": "1517494989424",
"parentFolderId": "33"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"triggerId": "15",
"name": "Concent Given Earlier",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "inzite_consent_given"
}
]
}
],
"filter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Concent Cookie}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "dismiss"
}
]
}
],
"fingerprint": "1517495000882",
"parentFolderId": "33"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"triggerId": "9",
"name": "Ikke undersider",
"type": "PAGEVIEW",
"filter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Page Path}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "/"
},
{
"type": "BOOLEAN",
"key": "negate",
"value": "true"
}
]
}
],
"fingerprint": "1515424444515"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"triggerId": "31",
"name": "Link Click - 'tel' Or 'mailto' Protocol",
"type": "LINK_CLICK",
"filter": [
{
"type": "MATCH_REGEX",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click Protocol}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "mailto|tel"
},
{
"type": "BOOLEAN",
"key": "ignore_case",
"value": "true"
}
]
}
],
"autoEventFilter": [
{
"type": "MATCH_REGEX",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Page URL}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": ".*"
},
{
"type": "BOOLEAN",
"key": "ignore_case",
"value": "true"
}
]
}
],
"waitForTags": {
"type": "BOOLEAN",
"value": "true"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "false"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1517492923203",
"parentFolderId": "30"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"triggerId": "16",
"name": "Pageview - DOM Ready",
"type": "DOM_READY",
"fingerprint": "1517478964801"
}
],
"variable": [
{
"accountId": "2288261640",
"containerId": "8196307",
"variableId": "7",
"name": "Click Protocol",
"type": "aev",
"parameter": [
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "component",
"value": "PROTOCOL"
},
{
"type": "TEMPLATE",
"key": "varType",
"value": "URL"
}
],
"fingerprint": "1517492923203",
"parentFolderId": "30"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"variableId": "8",
"name": "Click URL - No Protocol",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function() {\n \n if ({{Click URL}}) {\n \n return {{Click URL}}.split(':')[1];\n \n }\n \n}"
}
],
"fingerprint": "1517492923204",
"parentFolderId": "30"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"variableId": "3",
"name": "Concent Cookie",
"type": "k",
"parameter": [
{
"type": "BOOLEAN",
"key": "decodeCookie",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "cookieconsent_status"
}
],
"fingerprint": "1517495033271",
"parentFolderId": "33"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"variableId": "4",
"name": "Cookie Accept button",
"type": "d",
"parameter": [
{
"type": "TEMPLATE",
"key": "elementSelector",
"value": "a.cc-dismiss"
},
{
"type": "TEMPLATE",
"key": "selectorType",
"value": "CSS"
}
],
"fingerprint": "1517495025259",
"parentFolderId": "33"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"variableId": "2",
"name": "Google Analytics-indstillinger",
"type": "gas",
"parameter": [
{
"type": "TEMPLATE",
"key": "cookieDomain",
"value": "auto"
},
{
"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": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "UA-12788990-2"
}
],
"fingerprint": "1515423543132"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"variableId": "9",
"name": "Lookup - Link Type",
"type": "smm",
"parameter": [
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "input",
"value": "{{Click Protocol}}"
},
{
"type": "LIST",
"key": "map",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "key",
"value": "mailto"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "Email Link"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "key",
"value": "tel"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "Phone Number Link"
}
]
}
]
}
],
"fingerprint": "1517492923205",
"parentFolderId": "30"
}
],
"folder": [
{
"accountId": "2288261640",
"containerId": "8196307",
"folderId": "33",
"name": "Concent",
"fingerprint": "1517494981912"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"folderId": "30",
"name": "LunaMetrics Contact Link Clicks Plugin",
"fingerprint": "1517492923202"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"folderId": "28",
"name": "LunaMetrics Scroll Tracking Plugin",
"fingerprint": "1517492841520"
}
],
"builtInVariable": [
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "PAGE_URL",
"name": "Page URL"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "PAGE_HOSTNAME",
"name": "Page Hostname"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "PAGE_PATH",
"name": "Page Path"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "REFERRER",
"name": "Referrer"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "EVENT",
"name": "Event"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "CLICK_ELEMENT",
"name": "Click Element"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "CLICK_CLASSES",
"name": "Click Classes"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "CLICK_URL",
"name": "Click URL"
},
{
"accountId": "2288261640",
"containerId": "8196307",
"type": "DEBUG_MODE",
"name": "Debug Mode"
}
],
"fingerprint": "1517496250916",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/2288261640/containers/8196307/versions/18?apiLink=version"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment