1/* globals cookieControlDefaultAnalytics */ 2/* eslint-disable */ 3var analyticsWithConsent = { 4 gaAccept: function () { 5 // Add Google Analytics (UA) 6 if (cookieControlDefaultAnalytics.googleAnalyticsId !== '') { 7 (function (i, s, o, g, r, a, m) { 8 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 9 (i[r].q = i[r].q || []).push(arguments) 10 }, i[r].l = 1 * new Date(); a = s.createElement(o), 11 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 12 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga') 13 14 ga('create', cookieControlDefaultAnalytics.googleAnalyticsId, 'auto') 15 ga('send', 'pageview') 16 } 17 // End Google Analytics (UA) 18 // Add GA4 19 if (cookieControlDefaultAnalytics.ga4Id !== '') { 20 gtag('consent', 'update', { 21 'analytics_storage': 'granted' 22 }); 23 } 24 // End GA4 25 26 // GTM 27 if (cookieControlDefaultAnalytics.gtmId !== '') { 28 gtag('consent', 'update', { 29 'analytics_storage': 'granted' 30 }); 31 } 32 // End GTM 33 34 // Hotjar 35 if (cookieControlDefaultAnalytics.hjid !== '') { 36 /*<!-- Hotjar Tracking Code for Site -->*/ 37 (function(h,o,t,j,a,r){ 38 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 39 h._hjSettings={hjid:cookieControlDefaultAnalytics.hjid,hjsv:6}; 40 a=o.getElementsByTagName('head')[0]; 41 r=o.createElement('script');r.async=1; 42 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 43 a.appendChild(r); 44 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 45 } 46 // Hotjar 47 }, 48 gaRevoke: function () { 49 // Disable Google Analytics (UA) 50 if (cookieControlDefaultAnalytics.googleAnalyticsId !== '') { 51 window['ga-disable-' + cookieControlDefaultAnalytics.googleAnalyticsId] = true 52 } 53 // End Google Analytics (UA) 54 // Disable GA4 55 if (cookieControlDefaultAnalytics.ga4Id !== '') { 56 gtag('consent', 'update', { 57 'analytics_storage': 'denied' 58 }); 59 } 60 // End GA4 61 // Disable GTM 62 if (cookieControlDefaultAnalytics.gtmId !== '') { 63 gtag('consent', 'update', { 64 'analytics_storage': 'denied' 65 }); 66 } 67 // End GTM 68 }, 69 marketingAccept: function () { 70 gtag('consent', 'update', { 71 'ad_storage' : 'granted' 72 }); 73 }, 74 marketingRevoke: function () { 75 gtag('consent', 'update', { 76 'ad_storage' : 'denied' 77 }); 78 } 79} 80var gtag = function () { dataLayer.push(arguments) } 81window.dataLayer = window.dataLayer || [] 82gtag('consent', 'default', { 83 'ad_storage': 'denied', 84 'analytics_storage': 'denied', 85 'ad_user_data': 'denied', 86 'ad_personalization': 'denied', 87 'functionality_storage': 'denied', 88 'personalization_storage': 'denied', 89 'security_storage': 'denied' 90}) 91/* eslint-enable */ 92if (cookieControlDefaultAnalytics.ga4Id !== '') { 93 gtag('js', new Date()) 94 gtag('config', cookieControlDefaultAnalytics.ga4Id) 95}
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.