1 2 var klaroConfig = { 3 acceptAll: true, 4 // Muss übereinstimmen mit dem "data-name"-Attribut des Buttons, um das Klaro-Fenster zu öffnen 5 elementID: 'klaro', 6 // Definition der zu nutzenden Dienste 7 services: [{ 8 name: 'google-tag-manager', 9 required: true, 10 purposes: ['Website Grundfunktion'], 11 onAccept: ` 12 // we notify the tag manager about all services that were accepted. You can define 13 // a custom event in GTM to load the service if consent was given. 14 for(let k of Object.keys(opts.consents)){ 15 if (opts.consents[k]){ 16 let eventName = 'klaro-'+k+'-accepted' 17 dataLayer.push({'event': eventName}) 18 } 19 } 20 `, 21 onInit: ` 22 // initialization code here (will be executed only once per page-load) 23 window.dataLayer = window.dataLayer || []; 24 window.gtag = function(){dataLayer.push(arguments)} 25 gtag('consent', 'default', {'ad_storage': 'denied', 'analytics_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied'}) 26 gtag('set', 'ads_data_redaction', true) 27 `, 28 }, 29 { 30 31 name: 'google-analytics', 32 cookies: [ 33 /^_ga(_.*)?/ // we delete the Google Analytics cookies if the user declines its use 34 ], 35 purposes: ['analysen'], 36 onAccept: ` 37 // we grant analytics storage 38 gtag('consent', 'update', { 39 'analytics_storage': 'granted', 40 }) 41 `, 42 onDecline: ` 43 // we deny analytics storage 44 gtag('consent', 'update', { 45 'analytics_storage': 'denied', 46 }) 47 `, 48 // default: false, // StandardmäÃig nicht aktiviert (Opt-In) 49 // title: 'Google Analytics', 50 // purposes: ['analytics'], 51 // cookies: [/_ga/, /_gid/], 52 // required: false, 53 // optOut: false, 54 // onlyOnce: true, 55 // callback: function(consent, service) { 56 // if (consent) { 57 // // Aktiviert Google Analytics wenn der Nutzer zustimmt 58 // (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 59 // new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 60 // j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 61 // 'https://www.googletagmanager.com/gtm.js?id='
61+i+dl;f.parentNode.insertBefore(j,f); 62 // })(window,document,'script','dataLayer','GTM-5425MRB'); 63 // } 64 // } 65 }], 66 // Anpassung der Texte im Banner 67 translations: { 68 de: { 69 consentNotice: { 70 description: 'Wir verwenden Cookies, um deine Erfahrung auf unserer Website zu verbessern.', 71 learnMore: 'Einstellungen anpassen', 72 }, 73 consentModal: { 74 title: 'Datenschutz-Einstellungen', 75 description: 'Hier kannst du einsehen und anpassen, welche Dienste Daten auf dieser Website speichern dürfen.' 76 }, 77 googleAnalytics: { 78 description: 'Statistiken zur Verbesserung unserer Website.' 79 }, 80 googletagmanager: { 81 description: 'notwendige Cookies.' 82 }, 83 purposes: { 84 analytics: 'Statistiken' 85 } 86 87 88 } 89 } 90 }; 91
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.