@scaleway/use-analytics
Version:
A small hook to handle events analytics
27 lines (26 loc) • 1.06 kB
TypeScript
import type { SerializeOptions } from 'cookie';
export declare const THIRD_PARTY_PROVIDERS: readonly [{
readonly name: "Amplitude";
readonly displayName: "Amplitude";
readonly category: "analytics";
}, {
readonly name: "Algolia";
readonly displayName: "Algolia";
readonly category: "analytics";
}, {
readonly name: "LinkedIn";
readonly displayName: "LinkedIn";
readonly category: "marketing";
}, {
readonly name: "Google Ads";
readonly displayName: "Google AdWord";
readonly category: "marketing";
}];
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 = "_scw_rgpd";
export declare const HASH_COOKIE = "_scw_rgpd_hash";
export declare const CONSENT_MAX_AGE: number;
export declare const CONSENT_ADVERTISING_MAX_AGE: number;
export declare const COOKIES_OPTIONS: SerializeOptions;