ngx-hotjar
Version:
A simple ng-6 wrapper to load hotjar dependency by angular way
30 lines (29 loc) • 809 B
TypeScript
export declare class NgxHotjarService {
constructor();
/**
* Fires an PageView event to an virtual url path
*
* @param path virtual url
*/
virtualPageView(path: string): void;
/**
* Fires an event on Hotjar. Use this method to trigger events on forms and start video recordings.
*
* @param path url
*/
trigger(path: string): void;
/**
* Allows you to tag recordings on Hotjar of all visitors passing through a page.
*
* @param path tags
*/
tagRecording(path: string[]): void;
/**
* This option is available in case you need to set up page change tracking manually
* within your app's router.
*
* @param path Path
*/
stateChange(path: string): void;
protected error(err: any): void;
}