0.0.15 • Published 5 years ago

@gradeup/tap-web-sdk v0.0.15

Weekly downloads
28
License
MIT
Repository
github
Last release
5 years ago

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);
0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago