Verkaufen oder teilen Sie meine persönlichen Daten nicht
<Skript>(Funktion () {
Funktion loadFeatureCallback(Fehler) {
if (Fehler) {
Fehler auslösen;
}
document.getElementById('Opt-out-Link').addEventListener('Klick', setCCPAConsent);
}
Funktion canOptOut() {
const api = window.Shopify.customerPrivacy;
wenn (api.unstable) {
returniere api.unstable.saleOfDataRegion()
}
return api.getRegulation() === 'CCPA';
}
Funktion setzeCCPAConsent(Ereignis) {
event.preventDefault();
wenn (canOptOut()) {
Fenster.Shopify.customerPrivacy.setCCPAConsent(false, setConsentCallback);
} anders {
document.getElementById('opt-out-initial').style.display = 'keine';
document.getElementById('Opt-out nicht anwendbar').style.display = 'Block';
}
}
Funktion setConsentCallback() {
document.getElementById('opt-out-initial').style.display = 'keine';
document.getElementById('opt-out-success').style.display = 'blockieren';
}
Funktion ccpaOptOutLoader() {
Fenster.Shopify.loadFeatures(
[
{
Name: "Consent-Tracking-API",
Version: '0.1',
},
],
LadeFeatureCallback,
);
}
ccpaOptOutLoader();
})()</script>
Funktion loadFeatureCallback(Fehler) {
if (Fehler) {
Fehler auslösen;
}
document.getElementById('Opt-out-Link').addEventListener('Klick', setCCPAConsent);
}
Funktion canOptOut() {
const api = window.Shopify.customerPrivacy;
wenn (api.unstable) {
returniere api.unstable.saleOfDataRegion()
}
return api.getRegulation() === 'CCPA';
}
Funktion setzeCCPAConsent(Ereignis) {
event.preventDefault();
wenn (canOptOut()) {
Fenster.Shopify.customerPrivacy.setCCPAConsent(false, setConsentCallback);
} anders {
document.getElementById('opt-out-initial').style.display = 'keine';
document.getElementById('Opt-out nicht anwendbar').style.display = 'Block';
}
}
Funktion setConsentCallback() {
document.getElementById('opt-out-initial').style.display = 'keine';
document.getElementById('opt-out-success').style.display = 'blockieren';
}
Funktion ccpaOptOutLoader() {
Fenster.Shopify.loadFeatures(
[
{
Name: "Consent-Tracking-API",
Version: '0.1',
},
],
LadeFeatureCallback,
);
}
ccpaOptOutLoader();
})()</script>