UNPKG

@scaleway/use-analytics

Version:

A small hook to handle events analytics

27 lines (26 loc) 1.04 kB
import type { SerializeOptions } from 'cookie'; export declare const THIRD_PARTY_PROVIDERS: readonly [{ readonly category: "analytics"; readonly displayName: "Amplitude"; readonly name: "Amplitude"; }, { readonly category: "analytics"; readonly displayName: "Algolia"; readonly name: "Algolia"; }, { readonly category: "marketing"; readonly displayName: "LinkedIn"; readonly name: "LinkedIn"; }, { readonly category: "marketing"; readonly displayName: "Google AdWord"; readonly name: "Google Ads"; }]; export declare const CATEGORIES: readonly ["essential", "functional", "marketing", "analytics", "advertising"]; export declare const destSDKBaseURL: (cdnUrl: string) => string; export declare const pluginsSDKBaseURL: (cdnUrl: string) => string; export declare const COOKIE_PREFIX: string; export declare const HASH_COOKIE: string; export declare const CONSENT_MAX_AGE: number; export declare const CONSENT_ADVERTISING_MAX_AGE: number; export declare const COOKIES_OPTIONS: SerializeOptions;