@togohq/sdk-node 2.0.0
Version 2.0.0 introduces experiment tracking and removes custom session ID support
- Node.js SDK
Breaking
- Custom session ID support via
init({ sessionId })andSessionIdMode 'custom'is removed.
New
getExperiment()is now available for experiment tracking, sending$experiment_enteredevents.
Improved
- The SDK now forwards session IDs from the browser's
getSessionId()only, without sending$session_started.
Fixed
- The reserved-name log in the Node SDK now correctly follows other drops, and non-string names are logged.
Migration
Replace custom session ID usage with ordinary event properties.
init({ sessionId: 'custom-id' });track('event_name', { sessionId: 'custom-id' });