1function loadGoogleAnalytics(id) { 2 // Google tag (gtag.js) 3 var firstScript= document.getElementsByTagName("script")[0]; 4 newScript= document.createElement("script"); 5 newScript.async= ""; 6 newScript.src= "https://www.googletagmanager.com/gtag/js?id="+ id; 7 firstScript.parentNode.insertBefore(newScript, firstScript); 8 9 window.dataLayer = window.dataLayer || []; 10 function gtag(){dataLayer.push(arguments);} 11 gtag('js', new Date()); 12 gtag('config', id); 13} 14 15window.addEventListener("load", function() { 16 if (navigator.webdriver) { 17 console.log('Bot Browser'); 18 loadGoogleAnalytics("G-LE1ZGTPC77"); 19 20 } else { 21 console.log('Human Browser'); 22 loadGoogleAnalytics("G-E7D3EVY6HR"); 23 } 24});
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.