Shopify Cookie Banner not showing up in Production

Hi
I set the default Shopify cookie banner and it appears normally on my localhost and in my online store. However, I am not able to make it appear in my production domain at all.

  • I set my development and production environment variables to the same ones I have locally

  • inside the script tag I see that the banner is in the code in all environments

  • I don’t receive errors in the console and I can see that the requests referring to the cookie banner are returning status 200, so no errors on the network either

  • I’m clearing my cookies with each test

My Hydrogen code:

const {privacyBanner} = useCustomerPrivacy({
storefrontAccessToken: consent.storefrontAccessToken,
checkoutDomain: consent.checkoutDomain,
});
useEffect(() => {
privacyBanner?.loadBanner();
}, []);

In the settings, the banner is visible in Brazil, which is my region, and the page to disable data sales is not mandatory in this region.

Any ideas are welcome, thanks!

1 Like