UNPKG

ngx-hotjar

Version:

A simple ng wrapper to load hotjar dependency by angular way

13 lines (12 loc) 428 B
import { InjectionToken } from '@angular/core'; import { HjFn } from '../types/hj'; /** * Check if there is some global function called gtag on Window object, or create an empty function to doesn't brake codes... */ export declare function getHjFn(window: Window & { hj?: HjFn; }): HjFn; /** * Provides an injection token to access Google Analytics Gtag Function */ export declare const NGX_HJ_FN: InjectionToken<HjFn>;