@scaleway/use-analytics
Version:
A small hook to handle events analytics
11 lines (10 loc) • 494 B
TypeScript
import type { AnalyticsIntegration, Config } from '../types';
/**
* Return only Client/Hybrid destinations, Cloud Mode destinations will not be return.
* Should be the most important as only theses destinations will load a script and set an external cookies.
* Will return undefined if loading, empty array if no response or error, response else.
*/
export declare const useDestinations: (config: Config) => {
destinations: AnalyticsIntegration[] | undefined;
isLoaded: boolean;
};