JavaScriptAPI reference
Events
Events in the JavaScript SDK.
// access
nexus.eventsNexusEvents
classProduct analytics — buffered, batched, session-correlated.
NexusEvents
constructornew NexusEvents(http: NexusHttp, id: NexusIdentity, cfg: ResolvedConfig)Parameters
Prop
Type
Returns NexusEvents
onTracked
propertyonTracked: (name: string) => voidNotified with each tracked event name (used for survey triggers).
track()
methodtrack(name: string, properties?: Record<string, unknown>): voidTrack a named event with optional properties.
Parameters
Prop
Type
flush()
methodflush(): Promise<void>dispose()
methoddispose(): void