Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hello,
I have a site using the headless storefront (Hydrogen) and the Hydrogen Redirect Theme. The redirect theme is set up to point to the primary domain and works well in this regard.
However when going to checkout, the Google Analytics and Meta Pixel scripts do not load at all. If I switch briefly to the Dawn theme which is 100% Liquid, the scripts are loaded and run correctly.
When leaving the front end to go the checkout, the domain changes from the primary domain to the myshopify checkout domain.
Has anyone encountered this issue with the redirect theme?
I wonder if there is an issue with passing cookies or perhaps some kind of automatic block for cookie consent.
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hi @pdring, I think you can check whether you enabled the cookie banner for the native online store here: https://www.shopify.com/admin/settings/privacy/consent-banner. It should be turned off so it won't take effect on the Online store part, including the checkout page.
Since your store now running on Hydrogen, you should implement the consent banner manually.
Hope this helps!
This is an accepted solution.
Hi @pdring, I think you can check whether you enabled the cookie banner for the native online store here: https://www.shopify.com/admin/settings/privacy/consent-banner. It should be turned off so it won't take effect on the Online store part, including the checkout page.
Since your store now running on Hydrogen, you should implement the consent banner manually.
Hope this helps!
It seem to work fine! Thank you so much!