1// Add data layer events for analytics tracking 2const attachDataLayerEvent = function(data) { 3 window.dataLayer = window.dataLayer || []; 4 window.dataLayer.push(data); 5}; 6 7window.addEventListener("load", () => { 8 if (datalayer_vars) { 9 const data_layer_page_data = { 10 event: 'initialize_dataLayer', 11 page_title: datalayer_vars.title, 12 page_type: datalayer_vars.type, 13 page_parent: datalayer_vars.ancestors, 14 page_tags: datalayer_vars.tags, 15 page_publish_date: datalayer_vars.publish_date, 16 } 17 attachDataLayerEvent(data_layer_page_data); 18 } 19});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.