My job regards accessing Hotjar User ID in page DOM.
This used to be available as a 'userId' variable in hj.property, then hj.pageVisit.property, but now it is not.
The variable 'key' available in hj.pageVisit.property has the same format as User ID, but is reset on page reload.
The problems is that currently the user id in the hotjar dashboard is not matching the custom dimension we have in google Analytics.
We would like someone to came up with some code to obtain the new Hotjar user id, which is the same with the one showing in the dashboard.
March 4, 2018
I am looking for a mix of experience and value