Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "exportFormatVersion": 1.3,
- "exportTime": "2015-07-13 18:06:18",
- "containerVersion": {
- "accountId": "7155460",
- "containerId": "1385556",
- "containerVersionId": "0",
- "deleted": false,
- "container": {
- "accountId": "7155460",
- "containerId": "1385556",
- "name": "GTMTricks",
- "publicId": "GTM-MKF3NN",
- "timeZoneCountryId": "US",
- "timeZoneId": "America/Los_Angeles",
- "notes": "",
- "usageContext": [
- "WEB"
- ],
- "fingerprint": "1436810766873",
- "enabledBuiltInVariable": [
- "PAGE_URL",
- "PAGE_HOSTNAME",
- "PAGE_PATH",
- "REFERRER",
- "EVENT"
- ]
- },
- "tag": [
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "47",
- "name": "Scroll Tracking Script",
- "type": "html",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "supportDocumentWrite",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "html",
- "value": "<script>\njQuery(function($) {\n // Debug flag\n var debugMode = false;\n\n // Default time delay before checking location\n var callBackTime = 100;\n\n // # px before tracking a reader\n var readerLocation = 150;\n\n // Set some flags for tracking & execution\n var timer = 0;\n var scroller = false;\n var endContent = false;\n var didComplete = false;\n\n // Set some time variables to calculate reading time\n var startTime = new Date();\n var beginning = startTime.getTime();\n var totalTime = 0;\n \n // Get some information about the current page\n var pageTitle = document.title;\n\n // Track the aticle load\n if (!debugMode) {\n ga('send', 'event', 'Reading', pageTitle,'Article Loaded', {'nonInteraction': 1});\n } else {\n alert('The page has loaded. Woohoo.'); \n }\n\n // Check the location and track user\n function trackLocation() {\n bottom = $(window).height() + $(window).scrollTop();\n height = $(document).height();\n\n // If user starts to scroll send an event\n if (bottom > readerLocation && !scroller) {\n currentTime = new Date();\n scrollStart = currentTime.getTime();\n timeToScroll = Math.round((scrollStart - beginning) / 1000);\n if (!debugMode) {\n ga('send', 'event', 'Reading', pageTitle,'Start Reading', timeToScroll, {'metric1' : timeToScroll});\n } else {\n alert('started reading ' + timeToScroll);\n }\n scroller = true;\n }\n\n // If user has hit the bottom of the content send an event\n if (bottom >= $(\"#authorTemplate\").scrollTop() + $(\"#authorTemplate\").innerHeight() && !endContent) {\n currentTime = new Date();\n contentScrollEnd = currentTime.getTime();\n timeToContentEnd = Math.round((contentScrollEnd - scrollStart) / 1000);\n if (!debugMode) {\n if (timeToContentEnd < 60) {\n ga('set', 'dimension1', 'Scanner'); \n } else {\n ga('set', 'dimension1', 'Reader'); \n }\n ga('send', 'event', 'Reading',pageTitle,'Content Bottom', timeToContentEnd, {'metric2' : timeToContentEnd});\n } else {\n alert('end content section '+timeToContentEnd);\n }\n endContent = true;\n }\n\n // If user has hit the bottom of page send an event\n if (bottom >= height && !didComplete) {\n currentTime = new Date();\n end = currentTime.getTime();\n totalTime = Math.round((end - scrollStart) / 1000);\n if (!debugMode) {\n ga('send', 'event', 'Reading', pageTitle,'Page Bottom', totalTime, {'metric3' : totalTime});\n } else {\n alert('bottom of page '+totalTime);\n }\n didComplete = true;\n }\n }\n\n // Track the scrolling and track location\n $(window).scroll(function() {\n if (timer) {\n clearTimeout(timer);\n }\n\n // Use a buffer so we don't call trackLocation too often.\n timer = setTimeout(trackLocation, callBackTime);\n });\n});\n</script>"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "2147479553"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "48",
- "name": "UA - Event - Outbound Links",
- "type": "ua",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "enableEcommerce",
- "value": "false"
- },
- {
- "type": "BOOLEAN",
- "key": "doubleClick",
- "value": "false"
- },
- {
- "type": "BOOLEAN",
- "key": "useDebugVersion",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "trackingId",
- "value": "{{UA ID}}"
- },
- {
- "type": "TEMPLATE",
- "key": "trackType",
- "value": "TRACK_EVENT"
- },
- {
- "type": "BOOLEAN",
- "key": "nonInteraction",
- "value": "false"
- },
- {
- "type": "BOOLEAN",
- "key": "enableLinkId",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "eventAction",
- "value": "{{element url}}"
- },
- {
- "type": "TEMPLATE",
- "key": "eventCategory",
- "value": "OutboundLinks"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "37"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "49",
- "name": "UA - Track Downloads",
- "type": "ua",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "enableEcommerce",
- "value": "false"
- },
- {
- "type": "BOOLEAN",
- "key": "doubleClick",
- "value": "false"
- },
- {
- "type": "BOOLEAN",
- "key": "useDebugVersion",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "trackingId",
- "value": "{{UA ID}}"
- },
- {
- "type": "TEMPLATE",
- "key": "trackType",
- "value": "TRACK_EVENT"
- },
- {
- "type": "BOOLEAN",
- "key": "nonInteraction",
- "value": "false"
- },
- {
- "type": "BOOLEAN",
- "key": "enableLinkId",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "eventAction",
- "value": "{{Click URL Path}}"
- },
- {
- "type": "TEMPLATE",
- "key": "eventCategory",
- "value": "Downloads"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "38"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "43",
- "name": "UA - Vimeo Event",
- "type": "ua",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "enableEcommerce",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "eventValue",
- "value": "{{Vimeo Event Value}}"
- },
- {
- "type": "BOOLEAN",
- "key": "doubleClick",
- "value": "true"
- },
- {
- "type": "BOOLEAN",
- "key": "useDebugVersion",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "trackingId",
- "value": "{{UA ID}}"
- },
- {
- "type": "TEMPLATE",
- "key": "trackType",
- "value": "TRACK_EVENT"
- },
- {
- "type": "TEMPLATE",
- "key": "nonInteraction",
- "value": "{{Vimeo Event Non-Interaction}}"
- },
- {
- "type": "TEMPLATE",
- "key": "eventLabel",
- "value": "{{Vimeo Event Label}}"
- },
- {
- "type": "BOOLEAN",
- "key": "enableLinkId",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "eventAction",
- "value": "{{Vimeo Event Action}}"
- },
- {
- "type": "TEMPLATE",
- "key": "eventCategory",
- "value": "{{Vimeo Event Category}}"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "30"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "44",
- "name": "UA - YouTube Event",
- "type": "ua",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "enableEcommerce",
- "value": "false"
- },
- {
- "type": "LIST",
- "key": "fieldsToSet",
- "list": [
- {
- "type": "MAP",
- "map": [
- {
- "type": "TEMPLATE",
- "key": "fieldName",
- "value": "useBeacon"
- },
- {
- "type": "TEMPLATE",
- "key": "value",
- "value": "true"
- }
- ]
- }
- ]
- },
- {
- "type": "BOOLEAN",
- "key": "doubleClick",
- "value": "true"
- },
- {
- "type": "BOOLEAN",
- "key": "useDebugVersion",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "trackingId",
- "value": "{{UA ID}}"
- },
- {
- "type": "TEMPLATE",
- "key": "trackType",
- "value": "TRACK_EVENT"
- },
- {
- "type": "BOOLEAN",
- "key": "nonInteraction",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "eventLabel",
- "value": "{{dataLayer label}}"
- },
- {
- "type": "BOOLEAN",
- "key": "enableLinkId",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "eventAction",
- "value": "{{dataLayer action}}"
- },
- {
- "type": "TEMPLATE",
- "key": "eventCategory",
- "value": "{{dataLayer category}}"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "34"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "45",
- "name": "Vimeo Tracking",
- "type": "html",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "supportDocumentWrite",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "html",
- "value": "<script>\n/*\n * vimeo.ga.js | v0.5.1\n * Based on modifications by LukasBeaton (https://github.com/LukasBeaton/vimeo.ga.js)\n * Copyright (c) 2015 Sander Heilbron (http://www.sanderheilbron.nl)\n * MIT licensed\n */\n\n\nvar vimeoGAJS = {};\n(function($){vimeoGAJS={\n iframes : [],\n gaTracker : undefined,\n eventMarker : {},\n\n init: function () {\n vimeoGAJS.iframes = $('iframe');\n\n $.each(vimeoGAJS.iframes, function (index, iframe) {\n var iframeId = $(iframe).attr('id');\n\n vimeoGAJS.eventMarker[iframeId] = {\n \t'progress25' : false,\n 'progress50' : false,\n 'progress75' : false,\n 'videoPlayed' : false,\n 'videoPaused' : false,\n 'videoResumed' : false,\n 'videoSeeking' : false,\n 'videoCompleted' : false,\n 'timePercentComplete' : 0\n };\n });\n\n // Check which version of Google Analytics is used\n if (typeof ga === \"function\") {\n vimeoGAJS.gaTracker = 'ua'; // Universal Analytics (universal.js)\n //console.info('Universal Analytics');\n }\n\n if (typeof _gaq !== \"undefined\" && typeof _gaq.push === \"function\") {\n vimeoGAJS.gaTracker = 'ga'; // Classic Analytics (ga.js)\n //console.info('Classic Analytics');\n }\n\n if (typeof dataLayer !== \"undefined\" && typeof dataLayer.push === \"function\") {\n vimeoGAJS.gaTracker = 'gtm'; // Google Tag Manager (dataLayer)\n //console.info('Google Tag Manager');\n }\n\n // Listen for messages from the player\n if (window.addEventListener) {\n window.addEventListener('message', vimeoGAJS.onMessageReceived, false);\n } else {\n window.attachEvent('onmessage', vimeoGAJS.onMessageReceived, false);\n }\n },\n\n // Handle messages received from the player\n onMessageReceived: function(e) {\n if (e.origin.replace('https:', 'http:') !== \"http://player.vimeo.com\" || typeof vimeoGAJS.gaTracker === 'undefined') {\n //console.warn('Tracker is missing!');\n return;\n }\n\n var data = JSON.parse(e.data),\n iframeEl = $(\"#\"+data.player_id),\n iframeId = iframeEl.attr('id');\n\n switch (data.event) {\n case 'ready':\n vimeoGAJS.onReady();\n break;\n\n case 'playProgress':\n vimeoGAJS.onPlayProgress(data.data, iframeEl);\n break;\n\n case 'seek':\n if (iframeEl.data('seek') && !vimeoGAJS.eventMarker[iframeId].videoSeeking) {\n vimeoGAJS.sendEvent(iframeEl, 'Skipped video forward or backward');\n vimeoGAJS.eventMarker[iframeId].videoSeeking = true; // Avoid subsequent seek trackings\n }\n break;\n\n case 'play':\n if (!vimeoGAJS.eventMarker[iframeId].videoPlayed) {\n vimeoGAJS.sendEvent(iframeEl, 'Started video');\n vimeoGAJS.eventMarker[iframeId].videoPlayed = true; // Avoid subsequent play trackings\n } else if (!vimeoGAJS.eventMarker[iframeId].videoResumed && vimeoGAJS.eventMarker[iframeId].videoPaused) {\n vimeoGAJS.sendEvent(iframeEl, 'Resumed video');\n vimeoGAJS.eventMarker[iframeId].videoResumed = true; // Avoid subsequent resume trackings\n }\n break;\n\n case 'pause':\n vimeoGAJS.onPause(iframeEl);\n break;\n\n case 'finish':\n if (!vimeoGAJS.eventMarker[iframeId].videoCompleted) {\n vimeoGAJS.sendEvent(iframeEl, 'Completed video');\n vimeoGAJS.eventMarker[iframeId].videoCompleted = true; // Avoid subsequent finish trackings\n }\n break;\n }\n },\n\n getUrl : function (iframeSrc) {\n // Domain protocol (http or https)\n var protocol = document.URL.split(':')[0];\n\n // If protocol not present add what is in document.URL and return full src\n if (iframeSrc.match(/^http/) === null) {\n return protocol + ':' + iframeSrc;\n }\n // Return original source\n return iframeSrc;\n },\n\n getLabel : function(iframeEl) {\n var iframeSrc = iframeEl.attr('src').split('?')[0];\n var label = vimeoGAJS.getUrl(iframeSrc);\n if (iframeEl.data('title')) {\n label += ' (' + iframeEl.data('title') + ')';\n } else if (iframeEl.attr('title')) {\n label += ' (' + iframeEl.attr('title') + ')';\n }\n return label;\n },\n\n // Helper function for sending a message to the player\n post : function (action, value, iframe) {\n var data = {\n method: action\n };\n\n if (value) {\n data.value = value;\n }\n\n // Source URL\n var iframeSrc = $(iframe).attr('src').split('?')[0];\n\n iframe.contentWindow.postMessage(JSON.stringify(data), vimeoGAJS.getUrl(iframeSrc));\n },\n\n onReady :function() {\n $.each(vimeoGAJS.iframes, function(index, iframe) {\n vimeoGAJS.post('addEventListener', 'play', iframe);\n vimeoGAJS.post('addEventListener', 'seek', iframe);\n vimeoGAJS.post('addEventListener', 'pause', iframe);\n vimeoGAJS.post('addEventListener', 'finish', iframe);\n vimeoGAJS.post('addEventListener', 'playProgress', iframe);\n });\n },\n\n onPause: function(iframeEl) {\n var iframeId = iframeEl.attr('id');\n if (vimeoGAJS.eventMarker[iframeId].timePercentComplete < 99 && !vimeoGAJS.eventMarker[iframeId].videoPaused) {\n vimeoGAJS.sendEvent(iframeEl, 'Paused video');\n vimeoGAJS.eventMarker[iframeId].videoPaused = true; // Avoid subsequent pause trackings\n }\n },\n\n // Tracking video progress\n onPlayProgress: function(data, iframeEl) {\n var progress,\n iframeId = iframeEl.attr('id');\n vimeoGAJS.eventMarker[iframeId].timePercentComplete = Math.round((data.percent) * 100); // Round to a whole number\n\n if (!iframeEl.data('progress')) {\n return;\n }\n\n if (vimeoGAJS.eventMarker[iframeId].timePercentComplete > 24 && !vimeoGAJS.eventMarker[iframeId].progress25) {\n progress = 'Played video: 25%';\n vimeoGAJS.eventMarker[iframeId].progress25 = true;\n }\n\n if (vimeoGAJS.eventMarker[iframeId].timePercentComplete > 49 && !vimeoGAJS.eventMarker[iframeId].progress50) {\n progress = 'Played video: 50%';\n vimeoGAJS.eventMarker[iframeId].progress50 = true;\n }\n\n if (vimeoGAJS.eventMarker[iframeId].timePercentComplete > 74 && !vimeoGAJS.eventMarker[iframeId].progress75) {\n progress = 'Played video: 75%';\n vimeoGAJS.eventMarker[iframeId].progress75 = true;\n }\n\n if (progress) {\n vimeoGAJS.sendEvent(iframeEl, progress);\n }\n },\n\n // Send event to Classic Analytics, Universal Analytics or Google Tag Manager\n sendEvent: function (iframeEl, action) {\n var bounce = iframeEl.data('bounce');\n var label = vimeoGAJS.getLabel(iframeEl);\n\n switch (vimeoGAJS.gaTracker) {\n case 'gtm':\n dataLayer.push({'event': 'Vimeo', 'eventCategory': 'Vimeo', 'eventAction': action, 'eventLabel': label, 'eventValue': undefined, 'eventNonInteraction': (bounce) ? false : true });\n break;\n\n case 'ua':\n ga('send', 'event', 'Vimeo', action, label, undefined, {'nonInteraction': (bounce) ? 0 : 1});\n break;\n\n case 'ga':\n _gaq.push(['_trackEvent', 'Vimeo', action, label, undefined, (bounce) ? false : true]);\n break;\n }\n }\n};\nvimeoGAJS.init();\n})(jQuery);\n</script>"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "36"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "tagId": "46",
- "name": "YouTube Listener",
- "type": "html",
- "liveOnly": false,
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "supportDocumentWrite",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "html",
- "value": "<!--\nGoogle Analytics Tag Manager (V2) custom HTML tag for YouTube video tracking\n\nCopyright 2015, Cardinal Path, Inc.\n\nOriginal author: Stephane Hamel <shamel@cardinalpath.com>\nRevised by: Nicky Yuen <nyuen@cardinalpath.com>\n\nVersion 1.0\n-->\n<script type=\"text/javascript\">\n\t// support multiple players on the same page\n\tvar gtmYTPlayers = [];\n\t\n // OPTIONAL: Enable JSAPI if it's not already on the URL\n // note: this will cause the YouTube player to \"flash\" on the page when reloading to enable the JS API\n for (var e = document.getElementsByTagName(\"iframe\"), x = e.length; x--;)\n if (/youtube.com\\/embed/.test(e[x].src))\n if (e[x].src.indexOf('enablejsapi=') === -1)\n e[x].src += (e[x].src.indexOf('?') === -1 ? '?' : '&') + 'enablejsapi=1';\n\t\t\n\t/**\n\t * Attaches listener once the YouTube API is loaded\t\n\t**/\n function onYouTubeIframeAPIReady() {\n for (var e = document.getElementsByTagName(\"iframe\"), x = e.length; x--;) {\n if (/youtube.com\\/embed/.test(e[x].src)) {\n gtmYTPlayers.push(new YT.Player(e[x], {\n events: {\n onStateChange: onPlayerStateChange,\n onError: onPlayerError\n }\n }));\n YT.gtmLastAction = \"p\";\n }\n }\n }\n\n\t/**\n\t * Listen for play/pause. Other states such as rewind and end could also be added\n * Also report % played every second\n\t * @param e - event\n\t**/\n function onPlayerStateChange(e) {\n e[\"data\"] == YT.PlayerState.PLAYING && setTimeout(onPlayerPercent, 1000, e[\"target\"]);\n var video_data = e.target[\"getVideoData\"](),\n label = video_data.video_id + ':' + video_data.title;\n if (e[\"data\"] == YT.PlayerState.PLAYING && YT.gtmLastAction == \"p\") {\n dataLayer.push({\n event: 'youtube',\n eventCategory: 'youtube',\n\t\t\t\teventAction: 'play',\n eventLabel: label\n });\n YT.gtmLastAction = \"\";\n }\n if (e[\"data\"] == YT.PlayerState.PAUSED) {\n dataLayer.push({\n event: 'youtube',\n eventCategory: 'youtube',\n\t\t\t\teventAction: 'pause',\n eventLabel: label\n });\n YT.gtmLastAction = \"p\";\n }\n }\n\n\t/**\n\t * Catch all to report errors through the GTM data layer. once the error is exposed to GTM, it can be tracked in UA as an event!\n\t * Refer to https://developers.google.com/youtube/js_api_reference#Events onError\n\t * @param: e (event)\n\t**/\n \n function onPlayerError(e) {\n dataLayer.push({\n event: 'error',\n\t\t\teventCategory: 'youtube',\n\t\t\teventAction: 'play',\n eventLabel: 'youtube: ' + e\n })\n }\n\n\t/**\n\t * Report the % played if it matches 0%, 25%, 50%, 75%, 90% or completed\n\t * @param: e (event)\n\t**/\n function onPlayerPercent(e) {\n if (e[\"getPlayerState\"]() == YT.PlayerState.PLAYING) {\n //var t = e[\"getDuration\"]() - e[\"getCurrentTime\"]() <= 1.5 ? 1 : (Math.floor(e[\"getCurrentTime\"]() / e[\"getDuration\"]() * 4) / 4).toFixed(2);\n \n // Set the played duration to every tenth because we'll need to also capture 90% played.\n var t = e[\"getDuration\"]() - e[\"getCurrentTime\"]() <= 1.5 ? 1 : (Math.floor(e[\"getCurrentTime\"]() / e[\"getDuration\"]() * 10) / 10).toFixed(2);\n \n if (parseFloat(t) < 0.25) {\n t = 0.00;\n }\n else if (parseFloat(t) < 0.5){\n t = 0.25;\n }\n else if (parseFloat(t) < 0.75){\n t = 0.50;\n }\n else if (parseFloat(t) < 0.9){\n t = 0.75;\n }\n else if (parseFloat(t) < 1){\n t = 0.90;\n }\n // duration t needs to be fixed to 2 decimal places\n t = t.toFixed(2);\n \n if (!e[\"lastP\"] || t > e[\"lastP\"]) {\n var video_data = e[\"getVideoData\"](),\n label = video_data.video_id + ':' + video_data.title;\n e[\"lastP\"] = t;\n dataLayer.push({\n event: \"youtube\",\n eventCategory: 'youtube',\n eventAction: t * 100 + \"%\",\n eventLabel: label\n })\n }\n e[\"lastP\"] != 1 && setTimeout(onPlayerPercent, 1000, e);\n }\n }\n\t\n\t/**\n\t * Add unload event listener\n\t**/\n\twindow.addEventListener('beforeunload', function(e){\n\t\tfor (var i = 0; i < gtmYTPlayers.length; i++){\n\t\t\tif (gtmYTPlayers[i].getPlayerState() === 1) { // playing\n\t\t\t\tvar video_data = gtmYTPlayers[i]['getVideoData'](),\n\t\t\t\tlabel = video_data.video_id + ':' + video_data.title;\n\t\t\t\t\n\t\t\t\tdataLayer.push({\n\t\t\t\t\tevent: 'youtube',\n\t\t\t\t\teventCategory: 'youtube',\n\t\t\t\t\teventAction: 'exit',\n\t\t\t\t\teventLabel: label\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t})\n \n\t// load the Youtube JS api and get going\n var j = document.createElement(\"script\"),\n f = document.getElementsByTagName(\"script\")[0];\n j.src = \"//www.youtube.com/iframe_api\";\n j.async = true;\n f.parentNode.insertBefore(j, f);\n</script>"
- }
- ],
- "fingerprint": "0",
- "firingTriggerId": [
- "35"
- ],
- "tagFiringOption": "ONCE_PER_EVENT"
- }
- ],
- "fingerprint": "0",
- "trigger": [
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "19",
- "name": "All pages",
- "type": "PAGEVIEW",
- "filter": [
- {
- "type": "MATCH_REGEX",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{url}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": ".*"
- }
- ]
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "38",
- "name": "Click - Link click on downloadable",
- "type": "LINK_CLICK",
- "filter": [
- {
- "type": "MATCH_REGEX",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{Click URL Path}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "\\.(ext1|ext2|ext3)$"
- }
- ]
- }
- ],
- "autoEventFilter": [
- {
- "type": "MATCH_REGEX",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{Page URL}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": ".*"
- }
- ]
- }
- ],
- "waitForTags": {
- "type": "BOOLEAN",
- "value": "true"
- },
- "checkValidation": {
- "type": "BOOLEAN",
- "value": "true"
- },
- "waitForTagsTimeout": {
- "type": "TEMPLATE",
- "value": "2000"
- },
- "uniqueTriggerId": {
- "type": "TEMPLATE",
- "value": ""
- },
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "30",
- "name": "Only Vimeo",
- "type": "CUSTOM_EVENT",
- "customEventFilter": [
- {
- "type": "EQUALS",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{_event}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "Vimeo"
- }
- ]
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "37",
- "name": "Outbound Links",
- "type": "LINK_CLICK",
- "filter": [
- {
- "type": "CONTAINS",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{Click URL Hostname}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "mydomain.com"
- },
- {
- "type": "BOOLEAN",
- "key": "negate",
- "value": "true"
- }
- ]
- }
- ],
- "autoEventFilter": [
- {
- "type": "MATCH_REGEX",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{Page URL}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": ".*"
- }
- ]
- }
- ],
- "waitForTags": {
- "type": "BOOLEAN",
- "value": "true"
- },
- "checkValidation": {
- "type": "BOOLEAN",
- "value": "true"
- },
- "waitForTagsTimeout": {
- "type": "TEMPLATE",
- "value": "2000"
- },
- "uniqueTriggerId": {
- "type": "TEMPLATE",
- "value": ""
- },
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "34",
- "name": "YouTube event",
- "type": "CUSTOM_EVENT",
- "customEventFilter": [
- {
- "type": "EQUALS",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{_event}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "youtube"
- }
- ]
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "35",
- "name": "YouTube present",
- "type": "CUSTOM_EVENT",
- "customEventFilter": [
- {
- "type": "EQUALS",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{_event}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "gtm.dom"
- }
- ]
- }
- ],
- "filter": [
- {
- "type": "EQUALS",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{YouTube is present}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "true"
- }
- ]
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "triggerId": "36",
- "name": "gtm.dom",
- "type": "CUSTOM_EVENT",
- "customEventFilter": [
- {
- "type": "EQUALS",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "arg0",
- "value": "{{_event}}"
- },
- {
- "type": "TEMPLATE",
- "key": "arg1",
- "value": "gtm.dom"
- }
- ]
- }
- ],
- "fingerprint": "0"
- }
- ],
- "variable": [
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "37",
- "name": "Auto Event Element Class",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "CLASSES"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "34",
- "name": "Auto Event Element URL",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "URL"
- },
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "URL"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "61",
- "name": "Click URL Hostname",
- "type": "aev",
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "stripWww",
- "value": "false"
- },
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "HOST"
- },
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "URL"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "62",
- "name": "Click URL Path",
- "type": "aev",
- "parameter": [
- {
- "type": "LIST",
- "key": "defaultPages"
- },
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "PATH"
- },
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "URL"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "39",
- "name": "UA ID",
- "type": "c",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "value",
- "value": "UA-11111-1"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "40",
- "name": "Vimeo Event Action",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventAction"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "41",
- "name": "Vimeo Event Category",
- "type": "v",
- "parameter": [
- {
- "type": "BOOLEAN",
- "key": "setDefaultValue",
- "value": "true"
- },
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventCategory"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- },
- {
- "type": "TEMPLATE",
- "key": "defaultValue",
- "value": "Vimeo"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "42",
- "name": "Vimeo Event Label",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventLabel"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "43",
- "name": "Vimeo Event Non-Interaction",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventNonInteraction"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "44",
- "name": "Vimeo Event Value",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventValue"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "38",
- "name": "YouTube is present",
- "type": "jsm",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "javascript",
- "value": "// Return \"true\" if there is at least one YouTube video on the page\nfunction () {\n for (var e = document.getElementsByTagName('iframe'), x = e.length; x--;)\n if (/youtube.com\\/embed/.test(e[x].src)){\n return true;\n }\n return false;\n}"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "45",
- "name": "dataLayer action",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventAction"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "46",
- "name": "dataLayer category",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventCategory"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "47",
- "name": "dataLayer label",
- "type": "v",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "name",
- "value": "eventLabel"
- },
- {
- "type": "INTEGER",
- "key": "dataLayerVersion",
- "value": "2"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "48",
- "name": "element",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "ELEMENT"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "35",
- "name": "element classes",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "CLASSES"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "49",
- "name": "element id",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "ID"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "50",
- "name": "element target",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "TARGET"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "51",
- "name": "element text",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "TEXT"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "36",
- "name": "element url",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "URL"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "52",
- "name": "event",
- "type": "e",
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "53",
- "name": "history change source",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "HISTORY_CHANGE_SOURCE"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "54",
- "name": "history new state",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "HISTORY_NEW_STATE"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "55",
- "name": "history new url fragment",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "HISTORY_NEW_URL_FRAGMENT"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "56",
- "name": "history old state",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "HISTORY_OLD_STATE"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "57",
- "name": "history old url fragment",
- "type": "aev",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "varType",
- "value": "HISTORY_OLD_URL_FRAGMENT"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "59",
- "name": "referrer",
- "type": "f",
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "31",
- "name": "url",
- "type": "u",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "URL"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "33",
- "name": "url fragment",
- "type": "u",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "FRAGMENT"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "60",
- "name": "url hostname",
- "type": "u",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "HOST"
- }
- ],
- "fingerprint": "0"
- },
- {
- "accountId": "7155460",
- "containerId": "1385556",
- "variableId": "32",
- "name": "url path",
- "type": "u",
- "parameter": [
- {
- "type": "TEMPLATE",
- "key": "component",
- "value": "PATH"
- }
- ],
- "fingerprint": "0"
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement