0.1.6 • Published 3 years ago
@engaging-care/kind-web-events-service v0.1.6
Front Facing Event Tracking Library for Kind
Installation & Development:
- npm install, add- --legacy-peer-depsif on- npm@8.xand installation fails
- npm start
Publishing:
- make sure to manually bump version in package.json
- npm run prepare
- commit all your changes
- npm run trypublish
Usage:
@engaging-care/kind-web-events-service is a public package, so each version we release can be used from unpkg cdn, like below:
<script src="https://unpkg.com/@engaging-care/kind-web-events-service@XXX" async>
/* XXX is the version you just published */This exposes on the window object the KindWebEventsService class constructor, and it can be used like this: 
const KindWebEventsService = window.KindWebEventsService.default;
const kindService = new KindWebEventsService('development');
kindService.sendClickEvent('WEBFLOW_HOME', 'WEBFLOW_ABOUT');