0.0.3 • Published 3 years ago
@mjvezzani/analytics-abstraction v0.0.3
Analytics Abstraction
The purpose of this analytics abstraction library is to enable flexibility of choice in analytics providers while creating a consistent API that does not change when moving from one analytics provider to the next.
Installation
$ npm install @mjvezzani/analytics-abstraction
Usage
const analytics = require("@mjvezani/analytics-abstraction")
// Manually Send Pageview
analytics.pageview();
// Send Identity Information
analytics.identify();
// Send Event Information
analytics.event();