0.0.6 • Published 1 year ago
analytics-lib v0.0.6
Analytics Lib
Analytics library toolkit with a number of useful tracking functions.
Install
We sugest using pnpm:
pnpm i analytics-lib
Lib setup
The code below shows how to initialize and get access to the analytics-lib object:
const analyticsLib = { Shape, capture, init };
analyticsLib.init('<YOUR FIREBASE KEY HERE>')
PS: There is a design decision to be made here. At the moment, the Analytics-lib depends on Firebase to track your data.
How to use
You can call the analyticsLib.capture(shape)
function passing your data to be tracked.
A full list of supported options is coming soon.