Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're using Shopify's own cookie consent banner app, and have successfully hooked in to the Customer Privacy API on the storefront to stop tracking pixels from firing unless the user has given consent via the banner. We need to do the same on the order confirmation page, but Shopify.loadFeatures() doesn't exist so we can't load the consent tracking api to query whether the user has granted consent.
How can we verify (either via JS or liquid) on the order confirmation page that the user has accepted tracking cookies?
It looks like you can access this via the globally available api.init.customerPrivacy web pixel object.
{
analyticsProcessingAllowed: true,
marketingAllowed: true,
preferencesProcessingAllowed: true,
saleOfDataAllowed: true
}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024