@splitbee/web
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@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: 'my@gmail.com' });

Readme

Keywords

none

Package Sidebar

Install

npm i @splitbee/web

Weekly Downloads

1,436

Version

0.3.0

License

MIT

Unpacked Size

26 kB

Total Files

17

Last publish

Collaborators

  • timolins
  • tobiaslins