UTM tracking for Facebook and GTM #2207
Replies: 2 comments
-
@wizardlyhel Do you perhaps know about this? |
Beta Was this translation helpful? Give feedback.
-
Mmm .. there is a lot that can cause UTM tracking not working across hydrogen app to checkout. First and foremost is that your hydrogen app needs to live in the same top level domain as your checkout. For example, Shop: hydrogen.shop If you can't have this, there is no way to have UTM parameters, in fact, even analytics sessions, to connect because browsers will not allow access to cookies set by another domain. It will always end up as new session in analytics report if the domain is different. If you have the same top level domain, then you need to double check if the cookies set by GA or Facebook is setting their cookies under the top level domain. Here is an example for Google Analytics 4. This article goes into detail why as well https://www.simoahava.com/analytics/cross-domain-tracking-across-subdomains/ For Hydrogen, you can follow this troubleshooting doc https://shopify.dev/docs/storefronts/headless/hydrogen/analytics/validation#analytics-across-subdomains |
Beta Was this translation helpful? Give feedback.
-
Issues(Hydrogen/Remix):
Can't seem to track UTM on checkout page as the URL for checkout page is shopify default and different from Site domain, is there any way we can set tracking in this case.
Beta Was this translation helpful? Give feedback.
All reactions