@deuna/events-manager
v0.1.12
Published
![enter image description here](https://www.amvo.org.mx/wp-content/uploads/2022/07/Deuna-logo-300x87.png) # Events Manager
Downloads
3
Readme
Events Manager
Description
Events manager is an JS package that allows you track checkout user interactions.
You can install the package in your backend application (Node.js) or Front end library
Installation
npm install --save @deuna/events-manager
You need a merchant Id to validate and use this manager.
Init manager
A couple of your merchant data is necessary to init the manager
source: 'frontend' | 'backend' environment: 'staging' | 'production'
import manager from '@deuna/events-manager'
const eventManager = manager('API_KEY', 'ORDER_TOKEN', 'SOURCE', 'staging');
Track event
You need to use the sendEvent
to track your events
eventName: You need pass you event name event: Object with all about your properties that you'll track
eventManager.sendEvent('eventName', event)