Skip to content

TrackerFn

TrackerFn = (name, properties?) => void

Defined in: chat/src/app/UDIChatConfig.ts:25

Signature for the optional analytics callback — deliberately untyped in the properties bag so consumers can forward directly to GA4, Segment, Amplitude, PostHog, or any other tool that accepts (eventName, properties).

Event names are stable, snake_case strings. Properties carry metadata only — never raw message content or API key material.

string

Record<string, unknown>

void