A project for tracking ptoject.
yarn add event-tracking-browser
or
npm install event-tracking-browser
gh-pages, using TypeDoc(*.d.ts) file generationnpm t: Run test suitenpm start: Run npm run build in watch modenpm run test:watch: Run test suite in interactive watch modenpm run test:prod: Run linting and generate coveragenpm run build: Generate bundles and typings, create docsnpm run lint: Lints codenpm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)A string that uniquely identifies a user. If not provided, the distinctId currently in the persistent store (cookie or localStorage) will be used.
This function initializes a new instance of the tracking object
API token.
A dictionary of config options to override default config.
distinctId.
Register a set of super properties, which are included with all events.
An associative array of properties to store about the user
Track an event
The name of the event. This can be anything the user does - 'Button Click', 'Sign Up', etc.
A set of properties to include with the event you're sending
If the tracking request was successfully initiated/queued, an object with the tracking payload sent to the API server is returned; otherwise false.
Generated using TypeDoc
Identify a user with a unique ID to track user activity across devices, tie a user to their events, and create a user profile. If you never call this method, unique visitors are tracked using a UUID generated the first time they visit the site.