Solved

Shopify Analytics with a storefront API frontend

Filiph
Shopify Partner
7 1 5

Hey,

We're currently running a Shopify Plus store with a custom frontend using the Storefront API. We haven't been able to find a way to integrate Shopify Analytics into it to get the live view etc working.

This is a requirement since we'd like to get all the tracking working.

 

Thanks.

// Filiph, CTO at Nordcom Group Inc.
Accepted Solution (1)

Filiph
Shopify Partner
7 1 5

This is an accepted solution.

This has now been resolved first by me reverse engineering the analytics API (pre-hydrogen) with the package https://github.com/sweet-side-of-sweden/react-shopify-analytics for https://www.sweetsideofsweden.com and then finally by Shopify themselves with hydrogen-react, see https://shopify.dev/docs/api/hydrogen-react/2023-04/unstable/utilities/sendshopifyanalytics

 

I’d recommend going with hydrogen-react unless you really want to avoid the additional utilities and components that hydrogen-react comes with 🤠

// Filiph, CTO at Nordcom Group Inc.

View solution in original post

Replies 3 (3)

Filiph
Shopify Partner
7 1 5

Going to bump this since there still doesn't appear to be any solutions for this.

// Filiph, CTO at Nordcom Group Inc.
mitchellD
New Member
8 0 0

bump

Filiph
Shopify Partner
7 1 5

This is an accepted solution.

This has now been resolved first by me reverse engineering the analytics API (pre-hydrogen) with the package https://github.com/sweet-side-of-sweden/react-shopify-analytics for https://www.sweetsideofsweden.com and then finally by Shopify themselves with hydrogen-react, see https://shopify.dev/docs/api/hydrogen-react/2023-04/unstable/utilities/sendshopifyanalytics

 

I’d recommend going with hydrogen-react unless you really want to avoid the additional utilities and components that hydrogen-react comes with 🤠

// Filiph, CTO at Nordcom Group Inc.