Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Hydrogen Redirect Theme - Google Analytics/Facebook scripts not injected

Solved

Hydrogen Redirect Theme - Google Analytics/Facebook scripts not injected

pdring
Shopify Partner
3 0 1

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.

Accepted Solution (1)

Weaverse
Shopify Partner
81 26 37

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!

Helping merchants build super unique, high-performance storefronts using Weaverse + Hydrogen.
Looking for Development & Agency partners.
If you find the answer helpful, give it a thumbs up!
Our App: Theme Customizer for Shopify Hydrogen
Join our Weaverse + Hydrogen community: Weaverse Community

View solution in original post

Replies 2 (2)

Weaverse
Shopify Partner
81 26 37

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!

Helping merchants build super unique, high-performance storefronts using Weaverse + Hydrogen.
Looking for Development & Agency partners.
If you find the answer helpful, give it a thumbs up!
Our App: Theme Customizer for Shopify Hydrogen
Join our Weaverse + Hydrogen community: Weaverse Community
pdring
Shopify Partner
3 0 1

It seem to work fine! Thank you so much!