0.0.15 • Published 6 years ago

@gradeup/tap-web-sdk v0.0.15

Weekly downloads
28
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago