1.1.0 • Published 2 years ago
react-shopify-analytics v1.1.0
react-shopify-analytics
Shopify Analytics for headless e-commerce sites. Built for Candy by Sweden with ❤️.
Why use react-shopify-analytics?
- Stupidly simple (Pretty much just toLocaleString).
- Written in TypeScript.
- Actively maintained.
- Open Source with an actually free license (MIT).
- 0/ZERO/NADA/NOLL dependencies.
Getting started
It's as simple as 1-2-3!
1. Install
npm i react-shopify-analytics
2. Import
import { ShopifyAnalyticsProvider } from 'react-shopify-analytics';
3. Use
<ShopifyAnalyticsProvider
shopId={123456789} // Required
sessionId="session_token" // Required
userId="user_token" // Required
route="/products/hello-world" // Required
/>