This package has been deprecated

Author message:

This package is no longer maintained. Please, use @openreplay/tracker instead

@asayerio/tracker

5.6.8 • Public • Published

Asayer Tracker

The main package of the Asayer tracker.

Installation

npm i @asayerio/tracker --save

Usage

Initialize the package from your codebase entry point and start the tracker. You must set the projectID option in the constructor. Its value can can be found in your Asayer dashboard under Preferences -> Projects.

import Tracker from '@asayerio/tracker';

const tracker = new Tracker({
  projectID: PROJECT_ID,
});
tracker.start();

Then you can use Asayer JavaScript API anywhere in your code.

tracker.userID('my_user_id');
tracker.metadata('env', 'prod');

Read our docs for more information.

Readme

Keywords

Package Sidebar

Install

npm i @asayerio/tracker

Weekly Downloads

23

Version

5.6.8

License

MIT

Unpacked Size

344 kB

Total Files

92

Last publish

Collaborators

  • estradino