Skip to content

Instantly share code, notes, and snippets.

@ju1
Created June 12, 2018 20:22
Show Gist options
  • Save ju1/a17bc6077f55c0363106f05fa8c0cd63 to your computer and use it in GitHub Desktop.
Save ju1/a17bc6077f55c0363106f05fa8c0cd63 to your computer and use it in GitHub Desktop.
An example of bad GTM container with many mistakes and problems
{
"exportFormatVersion": 2,
"exportTime": "2018-06-12 20:21:34",
"containerVersion": {
"path": "accounts/471432256/containers/9242444/versions/0",
"accountId": "471432256",
"containerId": "9242444",
"containerVersionId": "0",
"container": {
"path": "accounts/471432256/containers/9242444",
"accountId": "471432256",
"containerId": "9242444",
"name": "Bad Container Example for GTM Workshop",
"publicId": "GTM-NMWWLSG",
"usageContext": [
"WEB"
],
"fingerprint": "1528834791753",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/471432256/containers/9242444/workspaces?apiLink=container"
},
"tag": [
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "12",
"name": "AJAX Listener",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script id=\"gtm-jq-ajax-listen\" type=\"text/javascript\">\n (function() {\n\n 'use strict';\n var $;\n var n = 0;\n init();\n\n function init(n) {\n\n // Ensure jQuery is available before anything\n if (typeof jQuery !== 'undefined') {\n \n // Define our $ shortcut locally\n $ = jQuery;\n bindToAjax();\n\n // Check for up to 10 seconds\n } else if (n < 20) {\n \n n++;\n setTimeout(init, 500);\n\n }\n\n }\n\n function bindToAjax() {\n\n $(document).bind('ajaxComplete', function(evt, jqXhr, opts) {\n\n // Create a fake a element for magically simple URL parsing\n var fullUrl = document.createElement('a');\n fullUrl.href = opts.url;\n\n // IE9+ strips the leading slash from a.pathname because who wants to get home on time Friday anyways\n var pathname = fullUrl.pathname[0] === '/' ? fullUrl.pathname : '/' + fullUrl.pathname;\n // Manually remove the leading question mark, if there is one\n var queryString = fullUrl.search[0] === '?' ? fullUrl.search.slice(1) : fullUrl.search;\n // Turn our params and headers into objects for easier reference\n var queryParameters = objMap(queryString, '&', '=', true);\n var headers = objMap(jqXhr.getAllResponseHeaders(), '\\n', ':');\n\n // Blindly push to the dataLayer because this fires within GTM\n dataLayer.push({\n 'event': 'ajaxComplete',\n 'attributes': {\n // Return empty strings to prevent accidental inheritance of old data\n 'type': opts.type || '',\n 'url': fullUrl.href || '',\n 'queryParameters': queryParameters,\n 'pathname': pathname || '',\n 'hostname': fullUrl.hostname || '',\n 'protocol': fullUrl.protocol || '',\n 'fragment': fullUrl.hash || '',\n 'statusCode': jqXhr.status || '',\n 'statusText': jqXhr.statusText || '',\n 'headers': headers,\n 'timestamp': evt.timeStamp || '',\n 'contentType': opts.contentType || '',\n // Defer to jQuery's handling of the response\n 'response': (jqXhr.responseJSON || jqXhr.responseXML || jqXhr.responseText || '')\n }\n });\n\n });\n\n }\n\n function objMap(data, delim, spl, decode) {\n\n var obj = {};\n\n // If one of our parameters is missing, return an empty object\n if (!data || !delim || !spl) {\n\n return {};\n\n }\n\n var arr = data.split(delim);\n var i;\n\n if (arr) {\n\n for (i = 0; i < arr.length; i++) {\n\n // If the decode flag is present, URL decode the set\n var item = decode ? decodeURIComponent(arr[i]) : arr[i];\n var pair = item.split(spl);\n\n var key = trim_(pair[0]);\n var value = trim_(pair[1]);\n\n if (key && value) {\n\n obj[key] = value;\n\n }\n\n }\n\n }\n\n return obj;\n\n }\n\n // Basic .trim() polyfill\n function trim_(str) {\n\n if (str) {\n\n return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n }\n\n }\n\n\n })();\n /*\n * v0.1.0\n * Created by the Google Analytics consultants at http://www.lunametrics.com\n * Written by @notdanwilkerson\n * Documentation: http://www.lunametrics.com/blog/2015/08/27/ajax-event-listener-google-tag-manager/\n * Licensed under the Creative Commons 4.0 Attribution Public License\n */\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1528834737667",
"firingTriggerId": [
"2147479553"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "9",
"name": "CU - Cookie Remover - LunaMetrics Plugin",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\" id=\"gtm-cookie-remover\">\n /*\n * Cookie Remover\n * Script for remving cookies within GTM using Custom HTML Tags\n *\n * Instructions:\n * To remove a cookie, create a Custom HTML Tag that pushes data about\n * the cookie into the dataLayer.\n *\n * <script>\n * dataLayer.push({\n * 'event': 'removeCookie',\n * 'attributes': {\n * 'cookieName': 'myCookie', // Required.\n * 'cookiePath': '/', // Opt. Defaults to '/'. Must match stored cookie.\n * 'cookieDomain': 'example.com', // Opt. Defaults to hostname of page. Must match stored cookie.\n * }\n * });\n * <\\/script>\n *\n * If the cookie doesn't appear to be removed, check the path and hostname of the\n * stored cookie, as these values must match in order to successfully remove it.\n */\n (function(document) {\n\n\tvar attributes = {{DLV - attributes - v1}};\n var cookieName = attributes.cookieName; // Name of the cookie; preferred syntax is all lowercase, with no spaces\n var cookieDomain = attributes.cookieDomain; // Hostname cookie is stored on\n var cookiePath = attributes.cookiePath; // Path cookie is stored at.\n \n if(typeof cookieName !== 'undefined') {\n \n document.cookie = cookieName + '=; Expires=Thu, 01 Jan 1970 00:00:01 GMT'\n + (cookieDomain ? '; Domain=' + cookieDomain : '') \n + (cookiePath ? '; Path=' + cookiePath : '');\n \n }\n \n })(document);\n /*\n * v1.0.0\n * Created by the Google Analytics consultants at http://www.lunametrics.com\n * Written by @notdanwilkerson\n * Licensed under the MIT License\n */\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1528834150146",
"firingTriggerId": [
"15"
],
"parentFolderId": "14",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "10",
"name": "CU - Cookie Setter - LunaMetrics Plugin",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\" id=\"gtm-cookie-setter\">\n /*\n * Cookie Setter\n * Script for setting cookies within GTM using Custom HTML Tags\n *\n * NOTE: STORED VALUES ARE URI-ENCODED - when retrieving w/ a 1st-party\n * cookie Variable, you MUST check the \"URI-decode\" checkbox.\n *\n * Instructions:\n * To set a cookie, create a Custom HTML Tag that pushes data about\n * the cookie into the dataLayer.\n *\n * <script>\n * dataLayer.push({\n * 'event': 'setCookie',\n * 'attributes': {\n * 'cookieName': 'myCookie', // Required.\n * 'cookieValue': '12345', // Required.\n * 'cookiePath': '/', // Opt. Defaults to '/'.\n * 'cookieDomain': 'example.com', // Opt. Defaults to hostname of page\n * 'cookieExpires': 30 // Opt. Set in days. Default is after browser closes.\n * }\n * });\n * <\\/script>\n *\n * For 99% of uses cases, cookiePath should be '/', and cookieDomain should be\n * 'domainname.tld', e.g. for 'shop.example.com' you would use 'example.com'.\n * If you need the cookie to expire in less than a day, provide a fraction\n * or division for cookieExpires, e.g. a 30 minute expiration would be: 1 / 48\n */\n (function(document) {\n\n var attributes = {{DLV - attributes - v1}};\n var cookieName = attributes.cookieName; // Name of the cookie; preferred syntax is all lowercase, with no spaces\n var cookieValue = encodeURIComponent(attributes.cookieValue); // The value stored with the cookie. Is automatically encoded. Check 'Decode cookie value' when using with 1st Party Cookie Variable\n var cookieExpires = parseFloat(attributes.cookieExpires); // Expiration length in terms of days. Defaults to expiring when the browser closes. Can accept a fraction for > 1 day time periods, e.g. 1/48 (30 minutes)\n var cookieDomain = attributes.cookieDomain; // Hostname to store the cookie on. Defaults to browser handling.\n var cookiePath = attributes.cookiePath || '/'; // Path to store cookie at. Defaults to '/'.\n \n var expirationDate = '';\n\n if(!isNaN(cookieExpires) && cookieExpires !== 0) {\n\n expirationDate = \"; Expires=\" + new Date(+new Date() + 1000 * 60 * 60 * 24 * cookieExpires).toGMTString();\n\n }\n\n if(typeof cookieName !== 'undefined' && typeof cookieValue !== 'undefined') {\n\n document.cookie = cookieName + '=' +\n encodeURIComponent(cookieValue) +\n expirationDate +\n (cookieDomain ? '; Domain=' + cookieDomain : '') +\n (cookiePath ? '; Path=' + cookiePath : '');\n\n }\n \n })(document);\n /*\n * v1.0.1\n * Created by the Google Analytics consultants at http://www.lunametrics.com\n * Written by @notdanwilkerson\n * Licensed under the MIT License\n */\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1528834150147",
"firingTriggerId": [
"16"
],
"parentFolderId": "14",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "4",
"name": "Downloaded document",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "file"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{GA}}"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "download"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{Click URL}}"
}
],
"fingerprint": "1528834673366",
"firingTriggerId": [
"7",
"8"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "7",
"name": "Enhanced Ecommerce Successful purchase",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_TRANSACTION"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{GA}}"
}
],
"fingerprint": "1528833456439",
"firingTriggerId": [
"13"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "8",
"name": "Facebook Pixel",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<!-- Facebook Pixel Code -->\n<script>\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', 'xxxxxxxxx');\n fbq('track', 'PageView');\n</script>\n<noscript><img height=\"1\" width=\"1\" style=\"display:none\"\n src=\"https://www.facebook.com/tr?id=xxxxxxxxx&ev=PageView&noscript=1\"\n/></noscript>\n<!-- End Facebook Pixel Code -->\n"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1528833657834",
"firingTriggerId": [
"2147479553"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "6",
"name": "GA Cart Page",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_PAGEVIEW"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{GA}}"
}
],
"fingerprint": "1528833293910",
"firingTriggerId": [
"12"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "11",
"name": "GA Event Form Submission",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "Form"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{GA}}"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "submission"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "Contact Form"
}
],
"fingerprint": "1528834338726",
"firingTriggerId": [
"17"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "5",
"name": "GA Scroll Tracking",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "Scrolling"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "{{Scroll Depth Threshold}}"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{GA ID}}"
}
],
"fingerprint": "1528832877205",
"firingTriggerId": [
"11"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "1",
"name": "Google Analytics",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_PAGEVIEW"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "UA-1234567-12"
}
],
"fingerprint": "1528832103963",
"firingTriggerId": [
"2147479553"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "471432256",
"containerId": "9242444",
"tagId": "2",
"name": "Newsletter subscriber",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "overrideGaSettings",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "Form"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "gaSettings",
"value": "{{GA}}"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "Newsletter"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "UA-1234567-12"
}
],
"fingerprint": "1528832482801",
"firingTriggerId": [
"6"
],
"tagFiringOption": "ONCE_PER_EVENT"
}
],
"trigger": [
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "12",
"name": "Cart page",
"type": "PAGEVIEW",
"filter": [
{
"type": "STARTS_WITH",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Page URL}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "/cart"
}
]
}
],
"fingerprint": "1528833288743"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "17",
"name": "Contact form",
"type": "FORM_SUBMISSION",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Form ID}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "contact_form"
}
]
}
],
"autoEventFilter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Page Path}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "pages/contact"
}
]
}
],
"waitForTags": {
"type": "TEMPLATE"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "true"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1528834295939"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "7",
"name": "Downloaded pdf",
"type": "LINK_CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click URL}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": ".pdf"
}
]
}
],
"waitForTags": {
"type": "BOOLEAN",
"value": "false"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "false"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1528832535295"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "8",
"name": "Downloaded word file",
"type": "LINK_CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click URL}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": ".docx"
}
]
}
],
"waitForTags": {
"type": "BOOLEAN",
"value": "false"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "false"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE"
},
"fingerprint": "1528832552158"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "15",
"name": "Event - Remove Cookie",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "removeCookie"
}
]
}
],
"fingerprint": "1528834150144",
"parentFolderId": "14"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "16",
"name": "Event - Set Cookie",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "setCookie"
}
]
}
],
"fingerprint": "1528834150144",
"parentFolderId": "14"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "10",
"name": "JS error",
"type": "JS_ERROR",
"fingerprint": "1528832704285"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "6",
"name": "Newsletter subscribe",
"type": "CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click ID}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "Subscribe"
}
]
}
],
"fingerprint": "1528832414564"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "13",
"name": "Payment Successful",
"type": "PAGEVIEW",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Page URL}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "pages/enhanced-ecommerce-success"
}
]
}
],
"fingerprint": "1528833436812"
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "9",
"name": "Product added",
"type": "ELEMENT_VISIBILITY",
"fingerprint": "1528832692561",
"parameter": [
{
"type": "TEMPLATE",
"key": "elementId",
"value": "productAddCart"
},
{
"type": "BOOLEAN",
"key": "useOnScreenDuration",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDomChangeListener",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "firingFrequency",
"value": "ONCE"
},
{
"type": "TEMPLATE",
"key": "selectorType",
"value": "ID"
},
{
"type": "TEMPLATE",
"key": "onScreenRatio",
"value": "50"
}
]
},
{
"accountId": "471432256",
"containerId": "9242444",
"triggerId": "11",
"name": "Scroll tracking",
"type": "SCROLL_DEPTH",
"fingerprint": "1528832821592",
"parameter": [
{
"type": "TEMPLATE",
"key": "verticalThresholdUnits",
"value": "PERCENT"
},
{
"type": "TEMPLATE",
"key": "verticalThresholdsPercent",
"value": "10,25,50,75,90"
},
{
"type": "BOOLEAN",
"key": "verticalThresholdOn",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "horizontalThresholdOn",
"value": "false"
}
]
}
],
"variable": [
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "8",
"name": "AddToCart visibility",
"type": "vis",
"parameter": [
{
"type": "TEMPLATE",
"key": "elementId",
"value": "addToCart"
},
{
"type": "TEMPLATE",
"key": "outputMethod",
"value": "BOOLEAN"
},
{
"type": "TEMPLATE",
"key": "selectorType",
"value": "ID"
},
{
"type": "TEMPLATE",
"key": "onScreenRatio",
"value": "50"
}
],
"fingerprint": "1528834791753"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "7",
"name": "Custom event",
"type": "e",
"fingerprint": "1528834760111"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "6",
"name": "DLV - attributes - v1",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "1"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "attributes"
}
],
"fingerprint": "1528834150145",
"parentFolderId": "14"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "1",
"name": "GA",
"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-1234567-8"
}
],
"fingerprint": "1528832446314"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "2",
"name": "GA ID",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "UA-7654321-8"
}
],
"fingerprint": "1528832731169"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "4",
"name": "Logged in user",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "userLoggedIn"
}
],
"fingerprint": "1528833324581"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "5",
"name": "aev - rel",
"type": "aev",
"parameter": [
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "varType",
"value": "ATTRIBUTE"
},
{
"type": "TEMPLATE",
"key": "attribute",
"value": "rel"
}
],
"fingerprint": "1528833966815"
},
{
"accountId": "471432256",
"containerId": "9242444",
"variableId": "3",
"name": "page title",
"type": "j",
"parameter": [
{
"type": "TEMPLATE",
"key": "name",
"value": "document.title"
}
],
"fingerprint": "1528832750513"
}
],
"folder": [
{
"accountId": "471432256",
"containerId": "9242444",
"folderId": "14",
"name": "LunaMetrics Cookie Management Plugin",
"fingerprint": "1528834150143"
}
],
"builtInVariable": [
{
"accountId": "471432256",
"containerId": "9242444",
"type": "PAGE_URL",
"name": "Page URL"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "PAGE_HOSTNAME",
"name": "Page Hostname"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "PAGE_PATH",
"name": "Page Path"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "REFERRER",
"name": "Referrer"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "EVENT",
"name": "Event"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CLICK_ELEMENT",
"name": "Click Element"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CLICK_CLASSES",
"name": "Click Classes"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CLICK_ID",
"name": "Click ID"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CLICK_TARGET",
"name": "Click Target"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CLICK_URL",
"name": "Click URL"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CLICK_TEXT",
"name": "Click Text"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "FORM_ELEMENT",
"name": "Form Element"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "FORM_CLASSES",
"name": "Form Classes"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "FORM_ID",
"name": "Form ID"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "FORM_TARGET",
"name": "Form Target"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "FORM_URL",
"name": "Form URL"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "FORM_TEXT",
"name": "Form Text"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "ERROR_MESSAGE",
"name": "Error Message"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "ERROR_URL",
"name": "Error URL"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "ERROR_LINE",
"name": "Error Line"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "NEW_HISTORY_FRAGMENT",
"name": "New History Fragment"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "OLD_HISTORY_FRAGMENT",
"name": "Old History Fragment"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "NEW_HISTORY_STATE",
"name": "New History State"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "OLD_HISTORY_STATE",
"name": "Old History State"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "HISTORY_SOURCE",
"name": "History Source"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CONTAINER_VERSION",
"name": "Container Version"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "DEBUG_MODE",
"name": "Debug Mode"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "RANDOM_NUMBER",
"name": "Random Number"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "CONTAINER_ID",
"name": "Container ID"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "HTML_ID",
"name": "HTML ID"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "ENVIRONMENT_NAME",
"name": "Environment Name"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_PROVIDER",
"name": "Video Provider"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_URL",
"name": "Video URL"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_TITLE",
"name": "Video Title"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_DURATION",
"name": "Video Duration"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_PERCENT",
"name": "Video Percent"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_VISIBLE",
"name": "Video Visible"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_STATUS",
"name": "Video Status"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "VIDEO_CURRENT_TIME",
"name": "Video Current Time"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "SCROLL_DEPTH_THRESHOLD",
"name": "Scroll Depth Threshold"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "SCROLL_DEPTH_UNITS",
"name": "Scroll Depth Units"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "SCROLL_DEPTH_DIRECTION",
"name": "Scroll Direction"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "ELEMENT_VISIBILITY_RATIO",
"name": "Percent Visible"
},
{
"accountId": "471432256",
"containerId": "9242444",
"type": "ELEMENT_VISIBILITY_TIME",
"name": "On-Screen Duration"
}
],
"fingerprint": "0",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/471432256/containers/9242444/versions/0?apiLink=version"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment