siteinsights
v1.0.0
Published
Package for tracking events to be made available in SiteInsights.
Downloads
2
Readme
Installation
npm i siteinsights
Usage
App.js
import si from 'siteinsights';
si.init({
apiKey: 'YOUR_API_KEY'
});
LoggedIn.js
if (loginIsSucessful) {
si.track('UserLoggedIn', {
id: user.id
});
} else {
si.track('UserLoginFailed', {
username
});
}