UNPKG

@rovahub/vue-hotjar

Version:

This Vue2 plugin injects a Hotjar into all of your vue instances

25 lines (24 loc) 633 B
export interface VueHotjarOptions { siteId: number; debug?: boolean; version?: number; nonce?: string; } declare module 'vue/types/vue' { interface Vue { $hotjar: VueHotjarPlugin; } } export interface UserInfo { [key: string]: string | number | Date | boolean; } export interface VueHotjarPlugin { identify: (userId: string, userInfo: UserInfo) => boolean; event: (actionName: string) => boolean; stateChange: (relativePath: string) => boolean; isReady: () => boolean; } declare const _default: { install(Vue: any, options: VueHotjarOptions): void; }; export default _default;