Server SDKs
Conclusion
Final notes on NodeJS SDK integration
By following the steps outlined in this guide, you can effectively integrate the Audiencelab NodeJS SDK and begin tracking performance events.
- Always call
setUserCreativeTokenInfo(response)after registration or token fetch before sending events. - Use stable
setDedupeKey()values for events your backend may retry. - Store durable customer context with whitelisted properties and pass sensitive one-off fields with per-event blacklisted properties.
- Use
shouldSendRetentionEvent()with your own persisted retention guard in multi-worker backends. - Session events are optional, but useful when your backend can reliably provide session IDs and duration.