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

10 lines 393 B
import { type AnalyticsClient } from '../core/AnalyticsClient'; import { type PageEventParams } from '../types/events'; export declare class PageTracker { private readonly client; constructor(client: AnalyticsClient); trackPageView(params: Omit<PageEventParams, 'measurementId'> & { measurementId?: string; }): Promise<void>; } //# sourceMappingURL=PageTracker.d.ts.map