UNPKG

@shopana/ga

Version:

Type-safe Google Analytics 4 (GA4) tracking library for React and Next.js with ecommerce support, event batching, and SSR compatibility

22 lines 847 B
import { type AnalyticsClient } from '../core/AnalyticsClient'; import { type ExceptionEventParams, type TimingEventParams } from '../types/events'; type ExceptionEventParamsWithoutMeasurementId = Omit<ExceptionEventParams, 'measurementId'> & { measurementId?: string; }; type TimingEventParamsWithoutMeasurementId = Omit<TimingEventParams, 'measurementId'> & { measurementId?: string; }; export declare class ErrorTracker { private readonly client; constructor(client: AnalyticsClient); exception(params: ExceptionEventParamsWithoutMeasurementId & { description: string; }): Promise<void>; timingComplete(params: TimingEventParamsWithoutMeasurementId & { name: string; value: number; event_category: string; }): Promise<void>; } export {}; //# sourceMappingURL=ErrorTracker.d.ts.map