Shopify Analytics for headless e-commerce sites. Built for Sweet Side of Sweden with ❤️. Based on hydrogen analytics but made for any react application.
- Stupidly simple (Pretty much just fetch).
- Written in TypeScript.
- Actively maintained.
- Open Source with an actually free license (MIT).
- 0/ZERO/NADA/NOLL dependencies.
It's as simple as 1-2-3!
npm i react-shopify-analytics
import { ShopifyAnalyticsProvider } from 'react-shopify-analytics';
<ShopifyAnalyticsProvider
shopId={123456789} // Required
sessionId="session_token" // Required
userId="user_token" // Required
route="/products/hello-world" // Required
/>