• Frohe Ostern! - Jetzt versandkostenfrei bestellen!
  • Ihr Code: OSTERN25
Angebote in:
Angebote noch:

gültig bis 21.04 2025 - Mindestwarenkorb 40 €

Filter schließen
 
  •  
von bis
// define a callback function function load_script(e) { // save user's choice in a local variable var consent = e.detail || {}; // check if our service has been accepted if(consent["etracker_analytics"]) { // execute code to load service here, for example: var s = document.createElement("script"); s.src = "https://someservice.com/script.js"; document.head.appendChild(s); } } // execute the callback function when banner sends consent events window.addEventListener("cf_services_consent", load_script); window.addEventListener("cf_services_consent_loaded", load_script); // define a callback function function load_script(e) { // save user's choice in a local variable var consent = e.detail || {}; // check if our service has been accepted if(consent["youtube"]) { // execute code to load service here, for example: var s = document.createElement("script"); s.src = "https://someservice.com/script.js"; document.head.appendChild(s); } } // execute the callback function when banner sends consent events window.addEventListener("cf_services_consent", load_script); window.addEventListener("cf_services_consent_loaded", load_script); // define a callback function function load_script(e) { // save user's choice in a local variable var consent = e.detail || {}; // check if our service has been accepted if(consent["vimeo"]) { // execute code to load service here, for example: var s = document.createElement("script"); s.src = "https://someservice.com/script.js"; document.head.appendChild(s); } } // execute the callback function when banner sends consent events window.addEventListener("cf_services_consent", load_script); window.addEventListener("cf_services_consent_loaded", load_script);