Closed juliensl closed 5 years ago
Hi, It seems you are using in the wrong place, to use hotjar you must have to have access to the window, maybe you are instantiating in a place you don't have a window.
Mmmmm... It's weird, I'm instantiate it in my metaLayout, it should works.
I can print my window just before to initialize the module. The window is printed at the client side, but not at the server side, so I guess it's why the SSR does not working.
I have no idea where to solve that x)
@juliensl add inside of componentDidMount
or useLayoutEffect
It works ! Thank you @jbsmith731 .
You should write it in the doc, for stupid guys like me :rofl:
Have a good day and thank you again
Hi!
I've this error when I'm trying to use react-hotjar :
I'm using VulcanJS Framework, which is dealing with Node, React, Apollo, mongo and meteor. Do you have an Idea about how to solve this ?
Thank you very much. Julien.