UNPKG

@vutolabs/analytics

Version:

Vuto Analytics - instant, Stripe-native analytics for SaaS apps built with Next.js or React.

19 lines (16 loc) 777 B
export { track } from '../index.js'; import { A as AnalyticsProps } from '../types-BAYME2We.js'; /** * Injects the Analytics script into the page head and starts tracking page views. * @param [props] - Analytics options. * @param [props.mode] - The mode to use for the analytics script. Defaults to `auto`. * - `auto` - Automatically detect the environment. Uses `production` if the environment cannot be determined. * - `production` - Always use the production script. (Sends events to the server) * - `development` - Always use the development script. (Logs events to the console) */ declare function Analytics(props: AnalyticsProps & { framework?: string; route?: string | null; path?: string | null; }): null; export { Analytics, AnalyticsProps };