1.0.3 • Published 7 months ago
@userlog/js v1.0.3
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
})