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
}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025