Skip to main content
This is the server-side Node.js library. For browser tracking, use the JavaScript SDK.

Installation

Initialize

Configuration

Track Events

You must provide a distinct_id for all events.

Async/Await

Import Historical Events

For events older than 5 days:

User Profiles

Group Analytics

Send Events

Set Group Properties

Privacy Controls

EU Data Residency

India Data Residency

Disable Geolocation

Debug Mode

Platform Considerations

All server-side calls originate from your server’s IP, which affects geolocation. Set ip: 0 or configure custom IP addresses.
  • You manage distinct_id yourself
  • No automatic identity management
  • Synchronous and asynchronous APIs available
  • Use .import() for historical data (>5 days old)
  • No client-side features (cookies, localStorage)

Resources