Fair Analytics client JavaScript API
The quickest way to integrate Fair Analytics in your app
Install
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm i fair-analytics-client-api
Then with a module bundler like rollup or webpack, use as you would anything else:
// using ES6 modules // using CommonJS modulesvar fairAnalytics =
The UMD build is also available on unpkg:
You can find the library on window.fairAnalytics
.
Usage
// create a fa instanceconst fa = // track eventsfa
Tests
$ npm test
Change Log
This project adheres to Semantic Versioning.
Every release, along with the migration instructions, is documented in the CHANGELOG.md file.
License
MIT