Skip to main content

node-tracker.tracker

Home > @snowplow/node-tracker > Tracker

Tracker interface

Signature:
interface Tracker extends TrackerCore 

Extends: TrackerCore

Properties

PropertyTypeDescription
flush() => Promise<void>Calls flush on all emitters in order to send all queued events to the collector
setDomainUserId(userId: string) => voidSet the domain user ID
setNetworkUserId(userId: string) => voidSet the network user ID
setSessionId(sessionId: string) => voidSet the session ID (domain_sessionid in the atomic events)
setSessionIndex(sessionIndex: string | number) => voidSet the session index (domain_sessionidx in the atomic events)