AnalyticsEventName.ADD_TO_CART not tracking in Shopify Dashboard #1024
-
The event is not tracked in our Shopify admin. The following request is being sent to https://monorail-edge.shopifysvc.com/unstable/produce_batch which responds with HTTP 200 OK. PAGE_VIEW events are being tracked using the same approach.
Package: "@shopify/hydrogen-react": "*", Page view events are working fine. storefrontAccessToken are used from headless sales channel. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
The add to cart event is only one of the requirements to get add to cart tracking working Here are a couple issue threads of people getting it to work on their app:
In summary:
|
Beta Was this translation helpful? Give feedback.
-
No, you need to use one created by Hydrogen channel. You can just create one and copy over the env vars
Assign a 3P domain to
shopify-buy SDK does not support add to cart event tracking |
Beta Was this translation helpful? Give feedback.
-
Important Do not use the above instructions for non-Hydrogen storefronts For anyone discovering this discussion, using the above comments as a workaround to get non-Hydrogen apps to work with Shopify Analytics is not something Shopify can actively support today. We do hope to provide a way for developers building non-Hydrogen headless apps to use Shopify Analytics in a supported way in the future, but we do not have any news to share at this time. |
Beta Was this translation helpful? Give feedback.
Important
Do not use the above instructions for non-Hydrogen storefronts
For anyone discovering this discussion, using the above comments as a workaround to get non-Hydrogen apps to work with Shopify Analytics is not something Shopify can actively support today. We do hope to provide a way for developers building non-Hydrogen headless apps to use Shopify Analytics in a supported way in the future, but we do not have any news to share at this time.