-
-
Save zjuul/cffeeebdde411e54c77e273518eae5fa to your computer and use it in GitHub Desktop.
A GTM container with lots of performance variables in it
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": "2020-07-31 12:23:55", | |
"containerVersion": { | |
"path": "accounts/124588580/containers/31103037/versions/0", | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"containerVersionId": "0", | |
"container": { | |
"path": "accounts/124588580/containers/31103037", | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"name": "Performance Timing Template", | |
"publicId": "GTM-KS345M9", | |
"usageContext": [ | |
"WEB" | |
], | |
"fingerprint": "1586868890685", | |
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/124588580/containers/31103037/workspaces?apiLink=container" | |
}, | |
"tag": [ | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"tagId": "12", | |
"name": "GAW - config tag - all pages", | |
"type": "gaawc", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "sendPageView", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "measurementId", | |
"value": "{{const - CHANGEME to your App+Web id}}" | |
} | |
], | |
"fingerprint": "1586891272894", | |
"firingTriggerId": [ | |
"2147479553" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"monitoringMetadataTagNameKey": "name" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"tagId": "29", | |
"name": "AW - event - performance - navigation", | |
"type": "gaawe", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "eventName", | |
"value": "navigation_performance" | |
}, | |
{ | |
"type": "LIST", | |
"key": "eventParameters", | |
"list": [ | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "domComplete" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.domComplete}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "domContentLoadedEventStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.domContentLoadedEventStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "domContentLoadedEventEnd" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.domContentLoadedEventEnd}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "domInteractive" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.domInteractive}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "loadEventEnd" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.loadEventEnd}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "loadEventStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.unloadEventStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "redirectCount" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.redirectCount}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "requestStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.requestStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "responseStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.responseStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "type" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.type}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "unloadEventEnd" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.unloadEventEnd}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "unloadEventStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.unloadEventStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "duration" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.duration}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "redirectEnd" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.redirectEnd}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "redirectStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.redirectStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "connectStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.connectStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "fetchStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.fetchStart}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "transferSize" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.transferSize}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "encodedBodySize" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.encodedBodySize}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "decodedBodySize" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.decodedBodySize}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "first_contentful_paint" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.first_contentful_paint}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "first_paint" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.first_paint}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "responseEnd" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.responseEnd}}" | |
} | |
] | |
}, | |
{ | |
"type": "MAP", | |
"map": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "domainLookupStart" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "{{performance.domainLookupStart}}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "TAG_REFERENCE", | |
"key": "measurementId", | |
"value": "GAW - config tag - all pages" | |
} | |
], | |
"fingerprint": "1586868917151", | |
"firingTriggerId": [ | |
"16" | |
], | |
"tagFiringOption": "ONCE_PER_LOAD", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"monitoringMetadataTagNameKey": "name" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"tagId": "31", | |
"name": "HTML - push nav performance", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script>\n window.dataLayer.push( {{cjs - performance navigation event for dl}} );\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1596197470937", | |
"firingTriggerId": [ | |
"30" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
} | |
} | |
], | |
"trigger": [ | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"triggerId": "16", | |
"name": "ce - performance navigation", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "MATCH_REGEX", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "performance navigation (v1|v2)" | |
} | |
] | |
} | |
], | |
"fingerprint": "1596197545522" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"triggerId": "30", | |
"name": "All Page Loads", | |
"type": "WINDOW_LOADED", | |
"fingerprint": "1586868917152" | |
} | |
], | |
"variable": [ | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "3", | |
"name": "performance.unloadEventEnd", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.unloadEventEnd" | |
} | |
], | |
"fingerprint": "1586868917142", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "4", | |
"name": "performance.loadEventEnd", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.loadEventEnd" | |
} | |
], | |
"fingerprint": "1586868917143", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "5", | |
"name": "performance.domContentLoadedEventEnd", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.domContentLoadedEventEnd" | |
} | |
], | |
"fingerprint": "1586868917143", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "6", | |
"name": "performance.first_paint", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "first_paint" | |
} | |
], | |
"fingerprint": "1586868917143", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "7", | |
"name": "performance.responseEnd", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.responseEnd" | |
} | |
], | |
"fingerprint": "1586868917143", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "8", | |
"name": "performance.requestStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.requestStart" | |
} | |
], | |
"fingerprint": "1586868917144", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "9", | |
"name": "performance.transferSize", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.transferSize" | |
} | |
], | |
"fingerprint": "1586868917144", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "10", | |
"name": "performance.fetchStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.fetchStart" | |
} | |
], | |
"fingerprint": "1586868917145", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "11", | |
"name": "const - CHANGEME to your App+Web id", | |
"type": "c", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "value", | |
"value": "G-number" | |
} | |
], | |
"fingerprint": "1586868917145", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "13", | |
"name": "performance.connectStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.connectStart" | |
} | |
], | |
"fingerprint": "1586868917146", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "14", | |
"name": "performance.domainLookupStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.domainLookupStart" | |
} | |
], | |
"fingerprint": "1586868917146", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "15", | |
"name": "performance.duration", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.duration" | |
} | |
], | |
"fingerprint": "1586868917146", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "17", | |
"name": "performance.redirectCount", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.redirectCount" | |
} | |
], | |
"fingerprint": "1586868917147", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "18", | |
"name": "performance.redirectEnd", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.redirectEnd" | |
} | |
], | |
"fingerprint": "1586868917147", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "19", | |
"name": "performance.domInteractive", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.domInteractive" | |
} | |
], | |
"fingerprint": "1586868917148", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "20", | |
"name": "performance.first_contentful_paint", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "first_contentful_paint" | |
} | |
], | |
"fingerprint": "1586868917148", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "21", | |
"name": "performance.domContentLoadedEventStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.domContentLoadedEventStart" | |
} | |
], | |
"fingerprint": "1586868917148", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "22", | |
"name": "performance.responseStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.responseStart" | |
} | |
], | |
"fingerprint": "1586868917149", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "23", | |
"name": "performance.redirectStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.redirectStart" | |
} | |
], | |
"fingerprint": "1586868917149", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "24", | |
"name": "performance.unloadEventStart", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.unloadEventStart" | |
} | |
], | |
"fingerprint": "1586868917149", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "25", | |
"name": "performance.domComplete", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.domComplete" | |
} | |
], | |
"fingerprint": "1586868917150", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "26", | |
"name": "performance.type", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.type" | |
} | |
], | |
"fingerprint": "1586868917150", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "27", | |
"name": "performance.decodedBodySize", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.decodedBodySize" | |
} | |
], | |
"fingerprint": "1586868917150", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "28", | |
"name": "performance.encodedBodySize", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "performance.encodedBodySize" | |
} | |
], | |
"fingerprint": "1586868917151", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"variableId": "34", | |
"name": "cjs - performance navigation event for dl", | |
"type": "jsm", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "javascript", | |
"value": "function() {\n // returns an object that can be pushed to datalayer to produce an event\n \n // contains either v2 (preferred) or v1 timing object\n var v1, v2;\n \n try { // newer version\n v2 = { \n event: 'performance navigation v2',\n performance: window.performance.getEntriesByType('navigation')[0],\n first_contentful_paint: window.performance.getEntriesByName('first-contentful-paint')[0].startTime,\n first_paint: window.performance.getEntriesByName('first-paint')[0].startTime\n };\n } catch(e) {\n var nt= window.performance.timing;\n v1 = {\n event: 'performance navigation v1',\n performance: {\n \"unloadEventStart\": Math.max(0, nt.unloadEventStart - nt.navigationStart),\n \"unloadEventEnd\": Math.max(0, nt.unloadEventEnd - nt.navigationStart),\n \"redirectStart\": Math.max(0, nt.redirectStart - nt.navigationStart),\n \"redirectEnd\": Math.max(0, nt.redirectEnd - nt.navigationStart),\n \"fetchStart\": Math.max(0, nt.fetchStart - nt.navigationStart),\n \"domainLookupStart\": Math.max(0, nt.domainLookupStart - nt.navigationStart),\n \"domainLookupEnd\": Math.max(0, nt.domainLookupEnd - nt.navigationStart),\n \"connectStart\": Math.max(0, nt.connectStart - nt.navigationStart),\n \"connectEnd\": Math.max(0, nt.connectEnd - nt.navigationStart),\n \"secureConnectionStart\": Math.max(0, nt.secureConnectionStart - nt.navigationStart),\n \"requestStart\": Math.max(0, nt.requestStart - nt.navigationStart),\n \"responseStart\": Math.max(0, nt.responseStart - nt.navigationStart),\n \"responseEnd\": Math.max(0, nt.responseEnd - nt.navigationStart),\n \"domLoading\": Math.max(0, nt.domLoading - nt.navigationStart),\n \"domInteractive\": Math.max(0, nt.domInteractive - nt.navigationStart),\n \"domContentLoadedEventStart\": Math.max(0, nt.domContentLoadedEventStart - nt.navigationStart),\n \"domContentLoadedEventEnd\": Math.max(0, nt.domContentLoadedEventEnd - nt.navigationStart),\n \"domComplete\": Math.max(0, nt.domComplete - nt.navigationStart),\n \"loadEventStart\": Math.max(0, nt.loadEventStart - nt.navigationStart),\n \"loadEventEnd\": Math.max(0, nt.loadEventEnd - nt.navigationStart)\n },\n first_contentful_paint: undefined,\n first_paint: undefined\n }; \n }\n \n return v2 ? v2 : v1; //result, v2 preferred\n \n\n}" | |
} | |
], | |
"fingerprint": "1596197951041", | |
"formatValue": {} | |
} | |
], | |
"builtInVariable": [ | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "REFERRER", | |
"name": "Referrer" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "EVENT", | |
"name": "Event" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "CLICK_ELEMENT", | |
"name": "Click Element" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "CLICK_CLASSES", | |
"name": "Click Classes" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "ERROR_MESSAGE", | |
"name": "Error Message" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "ERROR_URL", | |
"name": "Error URL" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "ERROR_LINE", | |
"name": "Error Line" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "CONTAINER_VERSION", | |
"name": "Container Version" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "RANDOM_NUMBER", | |
"name": "Random Number" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "CONTAINER_ID", | |
"name": "Container ID" | |
}, | |
{ | |
"accountId": "124588580", | |
"containerId": "31103037", | |
"type": "ENVIRONMENT_NAME", | |
"name": "Environment Name" | |
} | |
], | |
"fingerprint": "1596198235736", | |
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/124588580/containers/31103037/versions/0?apiLink=version" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated 2020-07-31 with anhancments by @andydavies - https://gist.github.com/andydavies/49ad09220a557a563e5fa7e76a918710