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.


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

yarn add @splitbee/node


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');
userId: '[email protected]',
event: 'Payment confirmed',
data: {
paymentId: '1234567890',