Do not sell or share my personal information
<script>(function () {
function loadFeatureCallback(error) {
if (error) {
throw error;
}
document.getElementById('opt-out-link').addEventListener('click', setCCPAConsent);
}
function canOptOut() {
const api = window.Shopify.customerPrivacy;
if (api.unstable) {
return api.unstable.saleOfDataRegion()
}
return api.getRegulation() === 'CCPA';
}
function setCCPAConsent(event) {
event.preventDefault();
if (canOptOut()) {
window.Shopify.customerPrivacy.setCCPAConsent(false, setConsentCallback);
} else {
document.getElementById('opt-out-initial').style.display = 'none';
document.getElementById('opt-out-not-applicable').style.display = 'block';
}
}
function setConsentCallback() {
document.getElementById('opt-out-initial').style.display = 'none';
document.getElementById('opt-out-success').style.display = 'block';
}
function ccpaOptOutLoader() {
window.Shopify.loadFeatures(
[
{
name: 'consent-tracking-api',
version: '0.1',
},
],
loadFeatureCallback,
);
}
ccpaOptOutLoader();
})()</script>
function loadFeatureCallback(error) {
if (error) {
throw error;
}
document.getElementById('opt-out-link').addEventListener('click', setCCPAConsent);
}
function canOptOut() {
const api = window.Shopify.customerPrivacy;
if (api.unstable) {
return api.unstable.saleOfDataRegion()
}
return api.getRegulation() === 'CCPA';
}
function setCCPAConsent(event) {
event.preventDefault();
if (canOptOut()) {
window.Shopify.customerPrivacy.setCCPAConsent(false, setConsentCallback);
} else {
document.getElementById('opt-out-initial').style.display = 'none';
document.getElementById('opt-out-not-applicable').style.display = 'block';
}
}
function setConsentCallback() {
document.getElementById('opt-out-initial').style.display = 'none';
document.getElementById('opt-out-success').style.display = 'block';
}
function ccpaOptOutLoader() {
window.Shopify.loadFeatures(
[
{
name: 'consent-tracking-api',
version: '0.1',
},
],
loadFeatureCallback,
);
}
ccpaOptOutLoader();
})()</script>