UNPKG

@virto-commerce/front-modules-hotjar

Version:

This module is designed for use with the VirtoCommerce frontend app. It provides a simple interface to initialize and use Hotjar, a behavior analytics tool that helps you understand your users by providing insights through heatmaps, session recordings, an

17 lines (16 loc) 560 B
type SettingValueType = string | number | boolean | null; type DependenciesType = { isDevelopment: boolean; getModuleSettings: <T extends Record<string, string>>(settingsMapping: T) => { [K in T[keyof T]]?: SettingValueType; }; userId: string; logger: { debug: (prefix: string, message: string) => void; }; }; declare function initModule({ getModuleSettings, isDevelopment, userId, logger }: DependenciesType): Promise<void>; export declare function useHotjarModule(): { initModule: typeof initModule; }; export {};