Rocky_Mountain_Vending/.pnpm-store/v10/files/79/7e4cdec87c821b8cb4cc56268a1bcf27310655e316dcea2a2bb9f1a115c184a30dc57750e9b138b9bccb638d0c8c9f25ac0eb8e017906bf65225349a85b7e6
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

46 lines
1.6 KiB
Text

interface PageViewEvent {
type: 'pageview';
url: string;
}
interface CustomEvent {
type: 'event';
url: string;
}
type BeforeSendEvent = PageViewEvent | CustomEvent;
type Mode = 'auto' | 'development' | 'production';
type AllowedPropertyValues = string | number | boolean | null;
type BeforeSend = (event: BeforeSendEvent) => BeforeSendEvent | null;
interface AnalyticsProps {
beforeSend?: BeforeSend;
debug?: boolean;
mode?: Mode;
scriptSrc?: string;
endpoint?: string;
dsn?: string;
}
declare global {
interface Window {
va?: (event: 'beforeSend' | 'event' | 'pageview', properties?: unknown) => void;
vaq?: [string, unknown?][];
vai?: boolean;
vam?: Mode;
/** used by Astro component only */
webAnalyticsBeforeSend?: BeforeSend;
}
}
type PlainFlags = Record<string, unknown>;
type FlagsDataInput = (string | PlainFlags)[] | PlainFlags;
/**
* 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;
declare function injectAnalytics(props?: Omit<AnalyticsProps, 'framework'>): void;
export { type AnalyticsProps, type BeforeSend, type BeforeSendEvent, injectAnalytics, track };