InvergeDocs
JavaScriptAPI reference

Events

Events in the JavaScript SDK.

// access
nexus.events

NexusEvents

class

Product analytics — buffered, batched, session-correlated.

NexusEvents

constructor
new NexusEvents(http: NexusHttp, id: NexusIdentity, cfg: ResolvedConfig)

Parameters

Prop

Type

Returns NexusEvents

View source

onTracked

property
onTracked: (name: string) => void

Notified with each tracked event name (used for survey triggers).

track()

method
track(name: string, properties?: Record<string, unknown>): void

Track a named event with optional properties.

Parameters

Prop

Type

View source

flush()

method
flush(): Promise<void>
View source

dispose()

method
dispose(): void
View source

On this page