UNPKG

@vutolabs/analytics

Version:

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

20 lines (17 loc) 960 B
import { a as AllowedPropertyValues, F as FlagsDataInput } from './types-BAYME2We.js'; export { A as AnalyticsProps } from './types-BAYME2We.js'; /** * Tracks a custom event. Please refer to the [documentation](https://vercel.com/docs/concepts/analytics/custom-events) for more information on custom events. * @param name - The name of the event. * * Examples: `Purchase`, `Click Button`, or `Play Video`. * @param [properties] - Additional properties of the event. Nested objects are not supported. Allowed values are `string`, `number`, `boolean`, and `null`. */ declare function track(name: string, properties?: Record<string, AllowedPropertyValues>, options?: { flags?: FlagsDataInput; }): void; /** * Identifies a user with their email address. This links the current visitor ID to the provided email. * @param email - The email address of the user to identify. */ declare function identify(email: string): void; export { identify, track };