You can send attributes about your users to Hotjar and use these to target On-site Surveys based on predefined conditions. For example, you could tell Hotjar exactly when somebody signed up for your service, what industry they work in, or what their total customer lifetime value is.
This allows you to target a specific set of users to your site, such as “target this Survey to paying customers only”, offering more relevant answers to the questions you have about your users.
If you haven't yet set up User Attributes for a site now, check out our 4 step guide to setting up User Attributes.
User Attributes values do not appear in Survey or Incoming Feedback responses.
The User Attributes values themselves will not appear with the response, this includes the user's User ID. Want to see these values in responses, or have other features you'd like to see use User Attributes? You can send us your feature request ideas!
Targeting On-site Surveys and Incoming Feedback with User Attributes
Create a new Survey or Incoming Feedback widget.
If you're not sure how the following guides can help:
In the Targeting section, select Users with specific attributes.
Click Add Attribute.
You can add multiple attributes to the targeting rules
Once you have selected one attribute and condition, you can add more by clicking Add Attribute again.
Select the User Attribute you want to target.
Select the User Attribute condition you want to trigger the widget on.
This allows you to be more specific about what user attributes the widget can trigger on. For example, you could select "all users who signed up less than 7 days ago".
User Attributes needs to be set up in order to see a list of available attributes
Consult with your web developer and head to our 4 step guide to setting up User Attributes for more information.
Once you have selected the correct condition, click Apply.
Once you've created the Survey or Incoming Feedback widget, it will now only appear for users who match the conditions set with your User Attributes filters.
Remember that for a user to be targeted, the attribute(s) must be sent to Hotjar during their session. This means, that you should be sending User Attributes to Hotjar every time a page loads, to ensure that the attributes are associated with each user's session.