@splitbee/web
v0.3.0
Published
Used to track page views and events using any web framework like Next.js, Gatsby.js, Nuxt.js and others
Downloads
2,203
Readme
@splitbee/web
Used to track page views and events using any web framework like Next.js, Gatsby.js, Nuxt.js and others
Usage
import splitbee from '@splitbee/web';
splitbee.init();
There are possible parameters that you can use to configure Splitbee.
splitbee.init({
disableCookie: true, // will disable the cookie usage
});
Track events
splitbee.track('My event', { some: 'data' });
Set user data
splitbee.user.set({ email: '[email protected]' });