@chiper-npm/ecommerce-pure-functions
v1.7.9
Published
upload npm
Downloads
57
Readme
Ecommerce Pure Functions
- Clone the repo
npm install
npm run build
Installation
// with npm
npm i @chiper-npm/ecommerce-pure-functions
// with yarn
yarn add @chiper-npm/ecommerce-pure-functions
Usage
import EcommerceFunctions from "@chiper-npm/ecommerce-pure-functions";
// ...
EcommerceFunctions.trackEvent({
event: "even name", //required
storeId, //optional
country, //optional
data: { exampleId: 1 }, //optional
userId, //optional
})