UNPKG

clickchutney-analytics

Version:

Privacy-first web analytics - bite-sized insights for your website 🌶️

15 lines (14 loc) 454 B
export interface AnalyticsOptions { trackingId?: string; endpoint?: string; debug?: boolean; beforeSend?: (event: any) => any | null; } interface EventData { [key: string]: any; } declare const track: (name: string, properties?: EventData) => void; declare const page: (path?: string) => void; export declare const inject: (options?: AnalyticsOptions) => void; export declare const flush: () => Promise<void>; export { track, page };