@splitbee/node

The Splitbee Node.js library provides Splitbee tracking functionality in server-side applications built using Node.js. This is the way to go if you want to send data from your Node server.

Installation

Use npm or yarn to install the package @splitbee/node

yarn add @splitbee/node

Usage

You need to replace the TOKEN with your project token shown within the Splitbee settings

const { SplitbeeAnalytics } = require('@splitbee/node');
const analytics = new SplitbeeAnalytics('TOKEN');
analytics.track({
userId: 'myunique@user.id',
event: 'Payment confirmed',
data: {
paymentId: '1234567890',
},
});