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

19 lines 457 B
import { type EventPayload } from '../types/common'; export type DebugEvent = { type: 'ready'; } | { type: 'flush'; count: number; } | { type: 'error'; error: Error; } | { type: 'event'; payload: EventPayload; }; export declare class DebugChannel { private readonly listeners; emit(event: DebugEvent): void; subscribe(listener: (event: DebugEvent) => void): () => boolean; } //# sourceMappingURL=debugChannel.d.ts.map