Diese Website verwendet Cookies, um Dir die bestmögliche Funktionalität bieten zu können. Wenn Du damit nicht einverstanden sein solltest, stehen Dir folgende Funktionen nicht zur Verfügung:
- Artikel in den Warenkorb legen
- Merkzettel
- Artikelempfehlungen und vieles mehr
// 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);