Shopify
let marketing = false
let analytics = false
if (window.Shopify.customerPrivacy.saleOfDataRegion()) {
marketing = window.Shopify.customerPrivacy.saleOfDataAllowed()
analytics = window.Shopify.customerPrivacy.saleOfDataAllowed()
} else {
marketing = window.Shopify.customerPrivacy.marketingAllowed()
analytics = window.Shopify.customerPrivacy.analyticsProcessingAllowed()
}
edgetag(
'consent',
null,
{ all: false, necessary: true, advertising: marketing, analytics: analytics }
)Last updated
Was this helpful?

