@optic7409/resolvo-analytics
Version:
Simplified analytics client library for Next.js with automatic SSR handling, one-line integration, and comprehensive tracking
13 lines (12 loc) • 843 B
TypeScript
import React from 'react';
import { ResolvoConfig } from '../../types';
interface ResolvoAnalyticsProps extends ResolvoConfig {
children?: React.ReactNode;
autoTrackPages?: boolean;
autoTrackClicks?: boolean;
autoTrackForms?: boolean;
}
export declare function ResolvoAnalytics({ apiKey, websiteToken, apiUrl, debug, ssr, autoInitialize, environment, children, autoTrackPages, autoTrackClicks, autoTrackForms, ...rest }: ResolvoAnalyticsProps): string | number | bigint | true | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null;
export declare function NextJsPageTracker(props: ResolvoAnalyticsProps): import("react/jsx-runtime").JSX.Element;
export declare function PagesPageTracker(props: ResolvoAnalyticsProps): import("react/jsx-runtime").JSX.Element;
export {};