1window.dataLayer = window.dataLayer || []; 2window.gtag = window.gtag || function () { dataLayer.push(arguments); }; 3gtag("js", new Date()); 4var GoogleAnalyticsInterop; 5(function (GoogleAnalyticsInterop) { 6 function configure(trackingId, globalConfigObject, debug) { 7 if (debug === void 0) { debug = false; } 8 this.debug = debug; 9 this.globalConfigObject = globalConfigObject; 10 var script = document.createElement("script"); 11 script.async = true; 12 script.src = "https://www.googletagmanager.com/gtag/js?id=" + trackingId; 13 document.head.appendChild(script); 14 var configObject = {}; 15 configObject.send_page_view = false; 16 Object.assign(configObject, globalConfigObject); 17 gtag("config", trackingId, configObject); 18 if (this.debug) { 19 console.log("[GTAG][" + trackingId + "] Configured!"); 20 } 21 } 22 GoogleAnalyticsInterop.configure = configure; 23 function navigate(trackingId, href) { 24 var configObject = {}; 25 configObject.page_location = href; 26 Object.assign(configObject, this.globalConfigObject); 27 gtag("config", trackingId, configObject); 28 if (this.debug) { 29 console.log("[GTAG][" + trackingId + "] Navigated: '" + href + "'"); 30 } 31 } 32 GoogleAnalyticsInterop.navigate = navigate; 33 function trackEvent(eventName, eventData, globalEventData) { 34 Object.assign(eventData, globalEventData); 35 gtag("event", eventName, eventData); 36 if (this.debug) { 37 console.log("[GTAG][Event triggered]: " + eventName); 38 } 39 } 40 GoogleAnalyticsInterop.trackEvent = trackEvent; 41})(GoogleAnalyticsInterop || (GoogleAnalyticsInterop = {}));
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.