// obtain cookieconsent plugin var cc = initCookieConsent(); // logos var cookie = '🍪'; // run plugin with config object cc.run({ current_lang: 'de', autoclear_cookies: true, // default: false cookie_name: 'cc_cookie', // default: 'cc_cookie' cookie_expiration: 365, // default: 182 page_scripts: true, // default: false force_consent: true, // default: false // auto_language: null, // default: null; could also be 'browser' or 'document' // autorun: true, // default: true // delay: 0, // default: 0 // hide_from_bots: false, // default: false // remove_cookie_tables: false // default: false // cookie_domain: location.hostname, // default: current domain // cookie_path: '/', // default: root // cookie_same_site: 'Lax', // use_rfc_cookie: false, // default: false // revision: 0, // default: 0 gui_options: { consent_modal: { layout: 'bar', // box,cloud,bar position: 'bottom center', // bottom,middle,top + left,right,center transition: 'slide' // zoom,slide }, settings_modal: { layout: 'box', // box,bar position: 'left', // right,left (available only if bar layout selected) transition: 'slide' // zoom,slide } }, onFirstAction: function(){ console.log('onFirstAction fired'); }, onAccept: function (cookie) { console.log('onAccept fired!') }, onChange: function (cookie, changed_preferences) { console.log('onChange fired!'); // If analytics category is disabled => disable google analytics if (!cc.allowedCategory('analytics')) { typeof gtag === 'function' && gtag('consent', 'update', { 'analytics_storage': 'denied' }); } }, languages:{ 'de': { consent_modal: { title: cookie + 'Wie wär´s mit einem Cookie?', description: 'Wir nutzen Cookies für eine bessere Nutzerfreundlichkeit und um unsere Services weiter verbessern zu können. Datenschutzerklärung', primary_btn: { text: 'Akzeptieren', role: 'accept_all' //'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Auswahl', role: 'settings' //'settings' or 'accept_necessary' }, revision_message: '

Dear user, terms and conditions have changed since the last time you visisted!' }, settings_modal: { title: 'Cookie-Einstellungen', save_settings_btn: 'Auswahl speichern', accept_all_btn: 'Alle Annehmen', reject_all_btn: 'Alle Ablehnen', close_btn_label: 'Schließen', blocks: [ { title: 'Cookie-Nutzung', description: 'Weitere Informationen über die genauere Nutzung von Cookies finden Sie in unserer Datenschutzerklärung.' }, { title: 'Essentielle Cookies', description: 'Diese Cookies sind für die grundlegenden Funktionen der Website nötig. Ohne diese würde die Website nicht ordnungsgemäß funktionieren.', toggle: { value: 'necessary', enabled: true, readonly: true //cookie categories with readonly=true are all treated as "necessary cookies" } }, { title: 'Analyse & Performance Cookies', description: 'Diese Cookies erlauben es uns die Website-Nutzung zu analysieren und somit die Leistung zukünftig weiter verbessern zu können.', toggle: { value: 'analytics', enabled: false, readonly: false } }, { title: 'Targeting & Werbe-Cookies', description: 'Diese Cookies werden für Werbezwecke verwendet, um personalisierte Werbung Ihrer Interessen anzeigen zu können.', toggle: { value: 'targeting', enabled: false, readonly: false, reload: 'on_disable' // New option in v2.4, check readme.md } }, { title: 'Mehr Information', description: 'Für weitere Fragen in Bezug auf Datenschutz und Cookies können Sie uns hier kontaktieren.', } ] } }, 'en': { consent_modal: { title: cookie + 'Want a Cookie?', description: 'We use cookies to ensure the basic functionalities of the website and to enhance your online experience. Privacy Policy', primary_btn: { text: 'Accept all', role: 'accept_all' //'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Preferences', role: 'settings' //'settings' or 'accept_necessary' }, revision_message: '

Dear user, terms and conditions have changed since the last time you visisted!' }, settings_modal: { title: 'Cookie-Einstellungen', save_settings_btn: 'Save Selection', accept_all_btn: 'Accept all', reject_all_btn: 'Reject all', close_btn_label: 'Close', blocks: [ { title: 'Cookie Usage', description: 'Detailed Informations for the further usage of cookies you find in our Privacy Policies.' }, { title: 'Necessary Cookies', description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly.', toggle: { value: 'necessary', enabled: true, readonly: true //cookie categories with readonly=true are all treated as "necessary cookies" } }, { title: 'Analytics & Performance Cookies', description: 'These cookies allow the website to remember the choices you have made in the past.', toggle: { value: 'analytics', enabled: false, readonly: false } }, { title: 'Advertisement & Targeting Cookies', description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you.', toggle: { value: 'targeting', enabled: false, readonly: false, reload: 'on_disable' // New option in v2.4, check readme.md } }, { title: 'More Information', description: 'For any queries in relation to privacy & cookies, please contact us.', } ] } } } });