1// gtm.js 2 3// Initialize the dataLayer if it doesn't exist 4window.dataLayer = window.dataLayer || []; 5function gtag(){ window.dataLayer.push(arguments); } 6 7//hard blocking 8//https://help.consentmanager.net/books/cmp/page/working-with-google-consent-mode-v2-manualsemiautomatic-blocking-code 9 10gtag('consent', 'default', { 11 'ad_storage': 'denied', 12 'analytics_storage': 'denied', 13 'ad_user_data':'denied', 14 'ad_personalization': 'denied', 15 'wait_for_update': 500 16}); 17 18dataLayer.push({ 19 'event': 'default_consent' 20}); 21 22// Load GTM asynchronously 23(function(w,d,s,l,i){ 24 w[l] = w[l] || []; 25 w[l].push({'gtm.start': new Date().getTime(), event:'gtm.js'}); 26 var f = d.getElementsByTagName(s)[0], 27 j = d.createElement(s), 28 dl = l !== 'dataLayer' ? '&l=' + l : ''; 29 j.async = true; 30 j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 31 f.parentNode.insertBefore(j,f); 32})(window,document,'script','dataLayer','GTM-MH6B8FL7'); // replace with your GTM-ID
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.