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

11 lines 386 B
interface RouterEvents { on?: (event: string, handler: (path: string) => void) => (() => void) | void; off?: (event: string, handler: (path: string) => void) => void; } export interface RouterLike { events?: RouterEvents; currentPath?: string; } export declare function useAutoPageView(router?: RouterLike): void; export {}; //# sourceMappingURL=useAutoPageView.d.ts.map