Node.js product analytics installation
- 1
Install
RequiredInstall the PostHog Node.js library using your package manager:
- 2
Configure
RequiredInitialize the PostHog client with your project API key:
Node.js - 3
Send an event
Capture events with properties:
Node.jsBy default, for backwards compatibility reasons, events are sent with person profile processing enabled. This means a person profile will be created for each user who triggers an event.
If you want to disable person profile processing for certain events, send the event with the following property:
Node.js