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
});
}