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