Class Analytics

Properties

Properties

capture: {
    <T>(eventName: T, query: CaptureEventsPayloadMap[T]): Promise<Response> | Promise<void>;
    <T>(target: T, query: T extends keyof CaptureEventsPayloadMap
        ? CaptureEventsPayloadMap[T<T>]
        : Record<string, any>): Promise<Response> | Promise<void>;
}

Captures an analytic event with a custom target and query payload.

The event name or target can be .

The payload associated with the event.

A promise that resolves to the server response or void.

updateState: ((update: TAnalyticsUpdateState) => void)

Updates the analytics state with the provided parameters.

Type declaration