Created
September 22, 2018 17:24
-
-
Save sgelob/0842d451186c332a45bcfee58224b0f3 to your computer and use it in GitHub Desktop.
GTM Container Export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exportFormatVersion": 2, | |
"exportTime": "2018-09-22 17:21:32", | |
"containerVersion": { | |
"path": "accounts/4181156699/containers/9983293/versions/1", | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"containerVersionId": "1", | |
"name": "Prima versione di RUM", | |
"container": { | |
"path": "accounts/4181156699/containers/9983293", | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"name": "olegs.be", | |
"publicId": "GTM-PDMWTQM", | |
"usageContext": [ | |
"WEB" | |
], | |
"fingerprint": "1537634107037", | |
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/4181156699/containers/9983293/workspaces?apiLink=container" | |
}, | |
"tag": [ | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "3", | |
"name": "Google Analytics – UA-3011787-7", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "LIST", | |
"key": "fieldsToSet", | |
"list": [ | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "fieldName", | |
"value": "siteSpeedSampleRate" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "100" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_PAGEVIEW" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537632911422", | |
"firingTriggerId": [ | |
"2147479553" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "4", | |
"name": "WebPerf - GA - RUM - AppCache", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "App Cache" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.AppCache}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633141064", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "5", | |
"name": "WebPerf - GA - RUM - DNSQueryTime", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "DNS Query Time" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.DNSQueryTime}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633261896", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "9", | |
"name": "WebPerf - GA - RUM - LoadEventTime", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Load Event Time" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.LoadEventTime}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633535833", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "10", | |
"name": "WebPerf - GA - RUM - RequestToCompletionOfDOMLoading", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Request to Completion of the DOM Loading" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.RequestToCompletionOfDOMLoading}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633586280", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "11", | |
"name": "WebPerf - GA - RUM - TCPConnectionTime", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "TCP Connection Time" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TCPConnectionTime}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633639285", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "12", | |
"name": "WebPerf - GA - RUM - TimeConsumedPreparingNewPage", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Time Consumed Preparing the New Page" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TimeConsumedPreparingNewPage}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633692850", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "13", | |
"name": "WebPerf - GA - RUM - TimeSpentConstructingDOMTree", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Time Spent Constructing the DOM Tree" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TimeSpentConstructingDOMTree}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633748607", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "14", | |
"name": "WebPerf - GA - RUM - TimeSpentDuringRedirection", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Time Spent During Redirection" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TimeSpentDuringRedirection}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633805817", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "15", | |
"name": "WebPerf - GA - RUM - TimeSpentDuringRequest", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Time Spent During the Request" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TimeSpentDuringRequest}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633865273", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "16", | |
"name": "WebPerf - GA - RUM - TimeSpentUnloadingDocuments", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Time Spent Unloading Documents" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TimeSpentUnloadingDocuments}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633915783", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "17", | |
"name": "WebPerf - GA - RUM - TimeToFirstPaint", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Time to First Paint" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TimeToFirstPaint}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633971452", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "18", | |
"name": "WebPerf - GA - RUM - TotalTimeFromStartToLoad", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "Total Time from Start to Load" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.TotalTimeFromStartToLoad}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537634025370", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "6", | |
"name": "WebPerf - GA - RUM - domComplete", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "DOM Complete" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.DOMComplete}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537634271166", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "7", | |
"name": "WebPerf - GA - RUM - domContentLoaded", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "DOM Content Loaded" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.DOMContentLoaded}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633425823", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "8", | |
"name": "WebPerf - GA - RUM - domInteractive", | |
"type": "ua", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "overrideGaSettings", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackType", | |
"value": "TRACK_TIMING" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingLabel", | |
"value": "{{Page Path}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingCategory", | |
"value": "{{Web Performance RUM}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingVar", | |
"value": "DOM Interactive" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "timingValue", | |
"value": "{{DL.DOMInteractive}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "trackingId", | |
"value": "{{My UA}}" | |
} | |
], | |
"fingerprint": "1537633481735", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"tagId": "1", | |
"name": "WebPerf - Real User Monitoring aka RUM", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script type=\"text/javascript\">\n/**\n * user-timing-api-RUM-gtm.js 1.0.0\n * Olegs Belousovs @sgelob\n */\n(function() {\n \"use strict\";\n\n // From https://github.com/addyosmani/timing.js/ –––>\n var performance = window.performance || window.webkitPerformance || window.msPerformance || window.mozPerformance;\n\n if (performance === undefined) {\n return false;\n }\n\n // From https://developers.google.com/web/fundamentals/performance/critical-rendering-path/measure-crp –––>\n var t = performance.timing,\n // When DOM is ready\n domInteractiveTime = t.domInteractive - t.domLoading,\n // When both the DOM and CSSOM are ready\n dcl = t.domContentLoadedEventStart - t.domLoading,\n // When the page and all of its subresources are ready\n domCompleteTime = t.domComplete - t.domLoading,\n\n // From https://github.com/addyosmani/timing.js/ –––>\n // Total time from start to load\n loadTime = t.loadEventEnd - t.fetchStart,\n // Time spent constructing the DOM tree\n domReadyTime = t.domComplete - t.domInteractive,\n // Time consumed preparing the new page\n readyStart = t.fetchStart - t.navigationStart,\n // Time spent during redirection\n redirectTime = t.redirectEnd - t.redirectStart,\n // AppCache\n appcacheTime = t.domainLookupStart - t.fetchStart,\n // Time spent unloading documents\n unloadEventTime = t.unloadEventEnd - t.unloadEventStart,\n // DNS query time\n lookupDomainTime = t.domainLookupEnd - t.domainLookupStart,\n // TCP connection time\n connectTime = t.connectEnd - t.connectStart,\n // Time spent during the request\n requestTime = t.responseEnd - t.requestStart,\n // Request to completion of the DOM loading\n initDomTreeTime = t.domInteractive - t.responseEnd,\n // Load event time\n loadEventTime = t.loadEventEnd - t.loadEventStart;\n\n // Time to First Paint\n if (firstPaint === undefined) {\n // All times are relative times to the start time within the\n // same objects\n var firstPaint = 0;\n var firstPaintTime = 0;\n\n // By bmdevel https://github.com/bmdevel/timing.js/blob/d5531b3b023367d467d3558061de8d8cf5b5ea79/timing.js –––>\n if (typeof t.msFirstPaint === 'number') {\n firstPaint = t.msFirstPaint;\n firstPaintTime = firstPaint - t.navigationStart;\n // All the rest\n } else if (performance.getEntriesByName !== undefined) {\n var firstPaintPerformanceEntry = performance.getEntriesByName('first-paint');\n if (firstPaintPerformanceEntry.length === 1) {\n firstPaintTime = firstPaintPerformanceEntry[0].startTime;\n firstPaint = performance.timeOrigin + firstPaintTime;\n firstPaintTime = firstPaintTime;\n }\n }\n\n // By Olegs Belousovs @sgelob\n // Push multiple variables and events to the data layer at once\n dataLayer.push({\n // Custom Event\n \"event\": \"WebPerfRUM\",\n // Critical Rendering Path\n \"DOMInteractive\": domInteractiveTime,\n \"DOMContentLoaded\": dcl,\n \"DOMComplete\": domCompleteTime,\n // Navigation Timing API metrics\n \"TotalTimeFromStartToLoad\": loadTime,\n \"TimeSpentConstructingDOMTree\": domReadyTime,\n \"TimeConsumedPreparingNewPage\": readyStart,\n \"TimeSpentDuringRedirection\": redirectTime,\n \"AppCache\": appcacheTime,\n \"TimeSpentUnloadingDocuments\": unloadEventTime,\n \"DNSQueryTime\": lookupDomainTime,\n \"TCPConnectionTime\": connectTime,\n \"TimeSpentDuringRequest\": requestTime,\n \"RequestToCompletionOfDOMLoading\": initDomTreeTime,\n \"LoadEventTime\": loadEventTime,\n // Time to first paint\n \"TimeToFirstPaint\": firstPaintTime\n });\n }\n})();\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1537631215038", | |
"firingTriggerId": [ | |
"5" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
} | |
], | |
"trigger": [ | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"triggerId": "5", | |
"name": "Page View - Window Loaded", | |
"type": "WINDOW_LOADED", | |
"fingerprint": "1537631209657" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"triggerId": "6", | |
"name": "WebPerf - Real User Monitoring aka RUM", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "WebPerfRUM" | |
} | |
] | |
} | |
], | |
"fingerprint": "1537632282598" | |
} | |
], | |
"variable": [ | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "8", | |
"name": "DL.AppCache", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "AppCache" | |
} | |
], | |
"fingerprint": "1537631660270", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "10", | |
"name": "DL.DNSQueryTime", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "DNSQueryTime" | |
} | |
], | |
"fingerprint": "1537631696438", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "3", | |
"name": "DL.DOMComplete", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "DOMComplete" | |
} | |
], | |
"fingerprint": "1537631557611", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "1", | |
"name": "DL.DOMContentLoaded", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "DOMContentLoaded" | |
} | |
], | |
"fingerprint": "1537634257426", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "2", | |
"name": "DL.DOMInteractive", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "DOMInteractive" | |
} | |
], | |
"fingerprint": "1537634248597", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "14", | |
"name": "DL.LoadEventTime", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "LoadEventTime" | |
} | |
], | |
"fingerprint": "1537631765253", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "13", | |
"name": "DL.RequestToCompletionOfDOMLoading", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "RequestToCompletionOfDOMLoading" | |
} | |
], | |
"fingerprint": "1537631748194", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "11", | |
"name": "DL.TCPConnectionTime", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TCPConnectionTime" | |
} | |
], | |
"fingerprint": "1537631712604", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "6", | |
"name": "DL.TimeConsumedPreparingNewPage", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TimeConsumedPreparingNewPage" | |
} | |
], | |
"fingerprint": "1537631620741", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "5", | |
"name": "DL.TimeSpentConstructingDOMTree", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TimeSpentConstructingDOMTree" | |
} | |
], | |
"fingerprint": "1537631601493", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "7", | |
"name": "DL.TimeSpentDuringRedirection", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TimeSpentDuringRedirection" | |
} | |
], | |
"fingerprint": "1537631641697", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "12", | |
"name": "DL.TimeSpentDuringRequest", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TimeSpentDuringRequest" | |
} | |
], | |
"fingerprint": "1537631729919", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "9", | |
"name": "DL.TimeSpentUnloadingDocuments", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TimeSpentUnloadingDocuments" | |
} | |
], | |
"fingerprint": "1537631679906", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "15", | |
"name": "DL.TimeToFirstPaint", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TimeToFirstPaint" | |
} | |
], | |
"fingerprint": "1537631782185", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "4", | |
"name": "DL.TotalTimeFromStartToLoad", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "TotalTimeFromStartToLoad" | |
} | |
], | |
"fingerprint": "1537631579229", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "16", | |
"name": "My UA", | |
"type": "c", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "UA-3011787-7" | |
} | |
], | |
"fingerprint": "1537632469970", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"variableId": "17", | |
"name": "Web Performance RUM", | |
"type": "c", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "Web Performance RUM" | |
} | |
], | |
"fingerprint": "1537632538643", | |
"formatValue": {} | |
} | |
], | |
"builtInVariable": [ | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"type": "PAGE_URL", | |
"name": "Page URL" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"type": "PAGE_HOSTNAME", | |
"name": "Page Hostname" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"type": "PAGE_PATH", | |
"name": "Page Path" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"type": "REFERRER", | |
"name": "Referrer" | |
}, | |
{ | |
"accountId": "4181156699", | |
"containerId": "9983293", | |
"type": "EVENT", | |
"name": "Event" | |
} | |
], | |
"fingerprint": "1537634308429", | |
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/4181156699/containers/9983293/versions/1?apiLink=version" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment