npm install --save @userlog/js
import { UserLog } from 'userlog';
const userlog = new UserLog({
api_key: 'YOUR-API-KEY',
project: 'my-saas-name'
});
userlog.track({
channel: 'registrations',
event: 'New User',
icon: '🎉',
user_id: 'user@example.com',
tags: {
source: 'website'
},
notify: false
});