@gradeup/tap-web-sdk

0.0.15 • Public • Published

Tap Web SDK

Send structured events from web to any server 🚀

Requirements

Needs Fetch API for this to work. Use unfetch if you want to support older browser

Install

npm i @gradeup/tap

Usage

import tap from "@gradeup/tap";
// Must initialise sdk after user has logged in
tap.init("https://example.com/analytics", { userId: 2, name: "Example User" });
// Push event whenever you want
const event = {
    event: "UpVote"
    itemId: 1,
};
tap.event.push(event);

Readme

Keywords

Package Sidebar

Install

npm i @gradeup/tap-web-sdk

Weekly Downloads

3

Version

0.0.15

License

MIT

Unpacked Size

19.3 kB

Total Files

9

Last publish

Collaborators

  • fifty_shades
  • pc099
  • codehimanshu