Hotjar assigns all users a unique identifier called a Hotjar User ID within Recordings when they visit your website, allowing you to find Recordings from a specific user, while still allowing the user to remain otherwise anonymous.
The Hotjar User ID is applied to the user through the _hjSessionUser_{site_id} cookie in the user's browser. Because of this, it's possible that the same individual would not be associated with the same Hotjar User ID if they accessed the website through a different browser, or if they cleared their browser cookies since their last session was recorded.
If consent is granted by the user, Surveys and Feedback will show you the respondent's Hotjar User ID too, making it easier to compare feedback to behavior. When this is done, the Hotjar User ID is useful for identifying the corresponding Recordings to Survey and Feedback responses.
The Hotjar User ID is not transferred across devices and is only associated with the Hotjar application. It should not be confused with internal user IDs from your website. It's possible to pass internal user IDs from your site to Hotjar through our User Attributes feature.
- Finding a Recording for a Feedback response
- How do I connect my internal user ID and Hotjar ID?
- User ID troubleshooting
Hotjar User IDs are assigned automatically and cannot currently be extracted with JavaScript
Hotjar User IDs are automatically assigned to ensure the anonymity of users by default. Customizing these IDs is not possible. Extracting a Hotjar User ID is also not currently possible.
Finding a Recording for a Feedback response
Copy a Hotjar User ID from either a Survey or Feedback response.
Click on the Recordings page.
Paste the Hotjar User ID in the Recording filter to narrow down the corresponding Recordings.
You can learn more about the Hotjar User ID and other filters within our Recording Filters article.
How do I connect my internal user ID and Hotjar User ID?
Your internal user IDs can only be passed to Hotjar using our User Attributes feature. When this is done, the Hotjar ID for a user is associated with your internal user ID, meaning your internal user ID may be connected with multiple Hotjar IDs. When User Attributes are enabled, you are able to filter Recordings by both User ID, and Hotjar ID, as well as perform user lookup and deletion requests by User ID.
You can learn more about Hotjar’s approach to privacy on this blog post by our CEO.
Hotjar User ID troubleshooting
There are various cases where Hotjar does not collect Recording data from all users. In short, you may find someone has submitted responses but was not captured in a Recording for technical reasons such as privacy software blocking Recordings. Alternatively, if your site's traffic exceeds your daily Recording limits, your user may have not been Recorded, even though they submitted a Feedback response, which has no daily limit.