A Node.js client for Segment — The hassle-free way to integrate analytics into any application.
$ npm install analytics-node
const Analytics = require('analytics-node');
const client = new Analytics('write key');
client.track({
event: 'event name',
userId: 'user id'
});
Documentation is available at https://segment.com/libraries/node.
Copyright © 2017 Segment Inc. <friends@segment.com>