1.0.3 • Published 7 months ago

@userlog/js v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @userlog/js

Usage

Import Library

import { UserLog } from 'userlog';

Initialize Client

const userlog = new UserLog({
  api_key: 'YOUR-API-KEY',
  project: 'my-saas-name'
});

Track Event

userlog.track({
    channel: "registrations",
    event: "New User",
    icon: "🎉",
    user_id: "user@example.com",
    tags: {
      source: "website",
    },
    notify: false
})
1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago