Node.js SDK
Access the Experience API within Node.js.
The Node.js SDK enables you to interact easily format and send events to Experience API endpoints in Node.js run times.
The Node.js SDK exposes the sendTrackEvent
and sendIdentifyEvent
functions. These SDK methods automatically generate the event payloads necessary for the Experience API batch upsert endpoint as track
and identify
events, respectively.
This SDK is deigned for sending location-agnostic track
and identify
events server-side, typically as part of bulk import processes or within serverless functions. The batch endpoint is used because it does not attempt to resolve the request's location.
A page
function is purposely not exposed. For ESR/SSR use cases where page
events may need to be sent and/or request location may need to be resolved, consider using the Shared SDK.
Last updated