1function getCookieHead( name ) { 2 var dc, 3 prefix, 4 begin, 5 end; 6 7 dc = document.cookie; 8 prefix = name + "="; 9 begin = dc.indexOf("; " + prefix); 10 end = dc.length; // default to end of the string 11 12 // found, and not in first position 13 if (begin !== -1) { 14 // exclude the "; " 15 begin += 2; 16 } else { 17 //see if cookie is in first position 18 begin = dc.indexOf(prefix); 19 // not found at all or found as a portion of another cookie name 20 if (begin === -1 || begin !== 0 ) return null; 21 } 22 23 // if we find a ";" somewhere after the prefix position then "end" is that position, 24 // otherwise it defaults to the end of the string 25 if (dc.indexOf(";", begin) !== -1) { 26 end = dc.indexOf(";", begin); 27 } 28 29 return decodeURI(dc.substring(begin + prefix.length, end) ).replace(/\"/g, ''); 30} 31 32 33if (parseInt(getCookieHead("hwdatenschutz_cookie_googleanalytics")) === 1) { 34 35 var script = document.createElement('script'); 36 script.onload = function () { 37
vendor: 151 bytes, lines 37-40
37window.dataLayer = window.dataLayer || []; 38 function gtag(){dataLayer.push(arguments);} 39 gtag('js', new Date()); 40 gtag('config', '
40G-YKBZ6GL67D
vendor: 35 bytes, lines 40-42
40', { 'anonymize_ip': true }); 41 42
42}; 43 script.src = 'https://www.googletagmanager.com/gtag/js?id=G-YKBZ6GL67D'; 44 45 document.head.appendChild(script); 46}
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.