clickchutney-analytics
Version:
Privacy-first web analytics - bite-sized insights for your website 🌶️
30 lines (29 loc) • 692 B
TypeScript
import { AnalyticsOptions } from './index';
interface AnalyticsProps extends AnalyticsOptions {
/**
* Enable or disable analytics collection
* @default true
*/
enabled?: boolean;
}
/**
* ClickChutney Analytics component for React/Next.js
*
* @example
* ```tsx
* import { Analytics } from '@clickchutney/analytics/react';
*
* export default function RootLayout({ children }) {
* return (
* <html>
* <body>
* {children}
* <Analytics />
* </body>
* </html>
* );
* }
* ```
*/
export declare function Analytics({ trackingId, endpoint, debug, beforeSend, enabled, }?: AnalyticsProps): null;
export default Analytics;