1(function() { 2 var script = document.createElement('script'); 3 script.type = 'text/plain'; 4 script.setAttribute('cookie-consent', 'Google-Analytics'); 5 6 var cookiesAyuntamientoLaguna = ` 7 (function() { 8 var gaScript = document.createElement('script'); 9 gaScript.async = true; 10 gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=UA-162973399-1'; 11 document.head.appendChild(gaScript); 12 13 gaScript.onload = function() { 14
vendor: 214 bytes, lines 14-19
14window.dataLayer = window.dataLayer || []; 15 function gtag() { 16 dataLayer.push(arguments); 17 } 18 gtag('js', new Date()); 19 gtag('config', '
19UA-162973399-1
vendor: 16 bytes, lines 19-20
19'); 20
20}; 21 })(); 22 `; 23 24 // Añadir el código de Google Analytics al script 25 script.textContent = cookiesAyuntamientoLaguna; 26 document.head.appendChild(script); 27})();
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.