1window.dataLayer = window.dataLayer || [] 2 3const initialiseGTMData = () => { 4 const payload = { 5 documentLocation: document.location.toString(), 6 referrer: document.referrer, 7 brandPlatform: true, 8 } 9 const gtmInitialData = window.sessionStorage.getItem('gtmInit') 10 if (gtmInitialData) return JSON.parse(gtmInitialData) 11 window.sessionStorage.setItem('gtmInit', JSON.stringify(payload)) 12 return payload 13} 14 15const { documentLocation, referrer, brandPlatform } = initialiseGTMData() 16 17window.dataLayer.push({ documentLocation, referrer, brandPlatform })
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.