analytics: {
capture(...args: [target: (keyof CaptureEventsPayloadMap) | string & {}, query: Record<string, any> | {
id: string;
} | {
id: string;
}]): Promise<void> | Promise<Response>;
init(...args: [options: AnalyticsOptions]): void;
updateState(update: Partial<Pick<AnalyticState, "accessToken" | "logEvents" | "sendEvents">>): void;
} = ...
Type declaration
capture:function
init:function
- init(...args): void
Parameters
Rest
...args: [options: AnalyticsOptions]
Returns void
updateState:function
- updateState(update): void
Parameters
- update: Partial<Pick<AnalyticState, "accessToken" | "logEvents" | "sendEvents">>
Returns void
Captures an analytic event with a custom target and query payload.