Open IvanSGurdian opened 3 years ago
I'll check this as soon as possible, but in the middlewhile:
Do I need to import the NgxHotjarRouterModule? A. Only if you want to trigger route changes (page navigation).
Do I need to add the hotjar script to the head of my index file? A. No, NgxHotjarModule already create the header tag for you.
About the pageviews, Hotjar may take a while to show the page views in the report screen. Something about 24h. Did you checked on browser developer tools if you app is calling hotjar services? Like making requests to hojtar while you interact w/ your app...
@maxandriani
I need hotjar to register every page change, so I guess I need it imported, thank you!
It didn't seem to be working when I didn't have the header tag (?), so I added it and then I started getting recordings.
I have three triggers setup on my hotjar, which I'm calling (as shown in the screenshot above) whenever I change steps on my stepper; I do notice now that sometimes I get hotjar service calls saying "is-empty" or a number, but sometimes I don't get any request, like these:
I'm having a similar issue where I don't get recordings unless I add their script to index.html
. Hotjar traffic looks the same with or without it, but they only land in my Recordings if I use theirs. I imported NgxHotjarRouterModule
for simplicity, and of course the required NgxHotjarModule
. Should I open a separate issue?
I'm not sure if this is a bug or if I'm missing something on my app's setup; but I'm not able to make hotjar work correctly.
I imported the main module and the router module in my
AppModule
;I also added the hotjar script to my
index.html
file, I'm not clear if this is something I should do, there's no mention of it in the package documentation, I'm just guessing it is needed as well as the package. Now if I try to use the hjService it won't record anything; I'm using an Angular Material Stepper in one of my pages, and I'm trying to set a hotjar trigger on each step to record the activity on a that particular step, like this:But I'm not getting any recording.
Wanted to be clear on what I should do to use this package correctly. Do I need to import the NgxHotjarRouterModule? Do I need to add the hotjar script to the head of my index file?
package.json
angular.json