1(function () { 2 jQuery(document).ready(function () { 3 window.dataLayer = window.dataLayer || []; 4 function gtag() { dataLayer.push(arguments); } 5 gtag('js', new Date()); 6 var googlePropertyId = googleAnalyticsParams.googleAnalyticsPropertyId; 7 gtag('config', googlePropertyId); 8 if (googleAnalyticsParams.googleAdsPropertyId && googleAnalyticsParams.googleAdsPropertyId.length > 0) { 9 gtag('config', googleAnalyticsParams.googleAdsPropertyId); 10 } 11 if (getCookie("trackerId") === '') { 12 gtag('config', 'UA-144494548-2'); 13 var shopid = googleAnalyticsParams.shopid; 14 setCookie("trackerId", uuidv4(), 10); 15 gtag('event', 'ga_tracker_id_dimension', { 'dimension1': getCookie("trackerId"), 'dimension2': shopid }); 16 gtag('config', googlePropertyId, { 'send_page_view': false }); 17 } 18 }); 19})(); 20 21/** 22 * Note: even though these functions are inserted in this script, they may be used in others. 23 */ 24 25function setCookie(name, value, minutes) { 26 var expires = ""; 27 if (minutes) { 28 var date = new Date(); 29 date.setTime(date.getTime() + (minutes * 60 * 1000)); 30 expires = "; expires=" + date.toUTCString(); 31 } 32 document.cookie = name + "=" + (value || "") + expires + "; path=/"; 33} 34function getCookie(name) { 35 var nameEQ = name + "="; 36 var ca = document.cookie.split(';'); 37 for (var i = 0; i < ca.length; i++) { 38 var c = ca[i]; 39 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 40 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 41 } 42 return ''; 43} 44function uuidv4() { 45 return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { 46 var r = Math.random() * 16 | 0, v = c == "x" ? r : (r & 0x3 | 0x8); 47 return v.toString(16); 48 }); 49} 50
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.