superior-tracking
v0.0.1
Published
JavaScript library for Tracking client-side events for Superior via Google Tag Manager (GTM).
Downloads
1
Readme
Superior/Tracking
JavaScript library for Tracking client-side events for Superior via Google Tag Manager (GTM).
Usage
import SuperiorTracking from 'SuperiorTracking';
// init library
const tracking = new SuperiorTracking({experimentId: 'foo', cookieId: 'bar', userId: 'baz' });
...
...
...
// send events
tracking.send({event: 'PageView'});
tracking.send({event: 'VariantView', variantId: 'variant-a'})
Options
// TBD
Development
Install
npm install
run
npm start
Test
npm test
Publish
// TBD