Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopify Analytics Live View Not showing Views or Sessions #1457

Closed
MagnusMateria opened this issue Oct 26, 2023 · 3 comments
Closed

Shopify Analytics Live View Not showing Views or Sessions #1457

MagnusMateria opened this issue Oct 26, 2023 · 3 comments

Comments

@MagnusMateria
Copy link

What is the location of your example repository?

No response

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2023.7.13

What version of Remix are you using?

1.19.1

Steps to Reproduce

  1. Add code supplied from Hydrogen Shopify Analytics guide
  2. Set "Collected before consent" in storefront settings
  3. Set Hydrogen domain as the primary (ie example-domain.com and not the myshopify one)
  4. Set canonicals and redirects from the old theme liquid files going to the new hydrogen production site
  5. Open the live production site (not localhost or the myshopify url) and add an item to the cart

Expected Behavior

  1. "Active Carts" shows added cart count correctly
  2. View and Session count show 1
  3. Location of session shows the location of the user

Actual Behavior

  1. "Active Carts" shows added cart count correctly
  2. View and Session count show 0
  3. Location of session not shown.
@MagnusMateria
Copy link
Author

Helen found the answer the issue - it was due to me using the STOREFRONT_ID instead of the Shop ID in the root.tsx loader for the analytics: {shopId: shopId} variable.

@networkmushokto
Copy link

@MagnusMateria hello sir can you show me how you fix it? thanks.

@kelokchan
Copy link

Hi may I know how did you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants