vercel analytics script on both pages; disable project SSO protection (was 404-ing visitors)
This commit is contained in:
1 parent
cc6a660729
commit
632d053de9
68 files changed
+5662
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
interface PageViewEvent {
|
||||
type: 'pageview';
|
||||
url: string;
|
||||
}
|
||||
interface CustomEvent {
|
||||
type: 'event';
|
||||
url: string;
|
||||
}
|
||||
type BeforeSendEvent = PageViewEvent | CustomEvent;
|
||||
type Mode = 'auto' | 'development' | 'production';
|
||||
type BeforeSend = (event: BeforeSendEvent) => BeforeSendEvent | null;
|
||||
interface AnalyticsProps {
|
||||
beforeSend?: BeforeSend;
|
||||
debug?: boolean;
|
||||
mode?: Mode;
|
||||
scriptSrc?: string;
|
||||
dsn?: string;
|
||||
eventEndpoint?: string;
|
||||
viewEndpoint?: string;
|
||||
sessionEndpoint?: string;
|
||||
endpoint?: 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;
|
||||
}
|
||||
}
|
||||
|
||||
declare function Analytics(props: Omit<AnalyticsProps, 'route'>): JSX.Element;
|
||||
|
||||
export { Analytics, type AnalyticsProps, type BeforeSend, type BeforeSendEvent };
|
||||
Reference in new issue
Block a user