Node SDK

track

Record trusted server-side behavior and outcomes.

Signature#

params contains:

FieldRequiredTypeDescription
eventtruestringEvent name.
userId or anonymousIdtruestringAt least one identity is required.
propertiesfalseobjectBehavior or outcome data.
contextfalseobjectExtra context.
timestampfalsestring | DateEvent time.
integrationsfalseobjectDestination controls.
messageIdfalsestringDeduplication ID.
callbackfalsefunctionCallback after dispatch processing.

Use Node track for authoritative backend outcomes such as payment success, subscription activation, report generation, or account changes. Do not send raw request bodies, form values, secrets, payment credentials, or provider responses.

The callback is optional and receives the dispatch context. messageId can be supplied when the application controls deduplication; otherwise the SDK generates one.