Replies: 3 comments 5 replies
-
@dduupp Thanks for logging this. Let me check with the cookie banner team. In the meantime, could you explain what's the custom snippet in your Online Store theme doing with consent? I don't think it is just console logging ... ![]() |
Beta Was this translation helpful? Give feedback.
-
Hi @wizardlyhel, have you had a chance to check out this issue where CMP cookies are being reset on every page load (as described above), no matter how the user interacts with the Customer Privacy API via the native Shopify cookie banner? |
Beta Was this translation helpful? Give feedback.
-
It looks like the force display banner on the Online store is conflicting with the original one Online Store has and resetting the consent all together. Since the consent cookies are resetting, it's most likely the checkout won't be getting this setting and will default to no tracking. I don't recommend to continue down this path. Another way to approach this is to not use Shopify cookie banner and implement your own cookie banner. You can still use Shopify consent management API for storing and getting regional consent settings. Hydrogen doc: https://shopify.dev/docs/storefronts/headless/hydrogen/analytics/consent-3p (Instruction is a bit outdated but it'll get an update soon - follow the instruction to turn off cookie banner in admin but keep the regional consent setting) It's a bit of work but at least you can have a working consent banner during the migration process. afterwards, feel free to switch back to Shopify consent cookie banner when all page migrations are done. |
Beta Was this translation helpful? Give feedback.
-
We are currently in the process of adopting Hydrogen incrementally for cowboy.com, using the catch-all route to proxy Liquid pages that are not ready for production in Hydrogen yet.
At this time, it is only our lu.cowboy.com (🇱🇺) subdomain that is using this incremental adoption in production. The homepage here is proxying a Liquid page. An example of a page that is completely revamped in Hydrogen is our Delivery page. Notice how on proxied Liquid pages, the privacy banner is not shown, while on Hydrogen pages it is.
It seems like the privacy banner is not loading correctly on routes that are proxying Liquid pages.
We have narrowed the issue down to the
storefront-banner.js
script queryingconsentManagement
through/api/unstable/graphql.json
(see requests) and simply returningnull
. This seems an incorrect return value, as the script itself seems to expect a response object with anerrors
property when something goes wrong:Seems like a bug maybe?
Beta Was this translation helpful? Give feedback.
All reactions