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
73 23 32

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
73 23 32

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!