@shopana/ga
Version:
Type-safe Google Analytics 4 (GA4) tracking library for React and Next.js with ecommerce support, event batching, and SSR compatibility
4 lines • 339 B
TypeScript
import { type CommerceItem, type CommerceItemInput } from '../types/events';
export declare function normalizeItems(items: CommerceItemInput[]): CommerceItem[];
export declare function sanitizeNumeric<T extends Record<string, unknown>>(source: T, keys: Array<keyof T>): Partial<Record<keyof T, number>>;
//# sourceMappingURL=utils.d.ts.map