1window.dataLayer = window.dataLayer || []; 2function gtag() { 3 dataLayer.push(arguments); 4} 5gtag('js', new Date()); 6gtag('set', 'developer_id.dMDhkMT', true); 7 8(function (drupalSettings) { 9 if (!drupalSettings.gtag) {return;} 10 const config = drupalSettings.gtag; 11 12 if (config.consentMode === true) { 13 gtag('consent', 'default', { 14 ad_storage: 'denied', 15 analytics_storage: 'denied', 16 ad_user_data: 'denied', 17 ad_personalization: 'denied', 18 wait_for_update: 500, 19 }); 20 } 21 22 if (config.tagId.length !== 0) { 23 const script = document.createElement('script'); 24 script.async = true; 25 script.src = `https://www.googletagmanager.com/gtag/js?id=${config.tagId}`; 26 script.type = 'text/javascript'; 27 document.getElementsByTagName('head')[0].appendChild(script); 28 } 29 30 const additionalConfigInfo = config.additionalConfigInfo || []; 31 if (additionalConfigInfo.length === 0) { 32 gtag('config', config.tagId); 33 } else { 34 gtag('config', config.tagId, additionalConfigInfo); 35 } 36 37 const otherIds = config.otherIds || []; 38 otherIds.forEach((id) => gtag('config', id)); 39 40 const events = config.events || []; 41 events.forEach((event) => gtag('event', event.name, event.data)); 42})(drupalSettings);
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.