Set Up User Attributes in UserLeap

Target specific users by sending custom attributes to UserLeap

After installing UserLeap, one of the ways you can control which users are presented surveys is by creating user attributes. User attributes provide information about the user (e.g., the device they are using, the plan level of their subscription, the date they created their account) that you can use in survey targeting, as well as for filtering survey results for more detailed analysis. There are two main types of visitor attributes: default and custom.

Default Attributes

The depending on which SDKs you are using, UserLeap automatically collects some or all of the following:

  • Device or system language
  • Browser and version
  • Device type
  • Operating system and version
  • Screen size
  • Page URL
  • Session count
  • SDK version
  • App version

Of these, the language is the only one available to use as a filter during survey creation. The remainder can be used to filter survey results in the dashboard.

Custom Attributes

You can also add custom user attributes and values that are specific to your business. Some common custom attributes include:

  • Plan level (e.g., Basic, Pro, Premium)
  • Location
  • Referral channel
  • A/B test group
  • Anonymized user ID

Passing custom attributes through to UserLeap requires adding one additional line of code to your base installation for each attribute.

If you are using UserLeap's Segment or Google Tag Manager integrations, this can be done in a few clicks, by following the instructions here for Segment, or here for Google Tag Manager.

For all other installation methods, instructions on how to add this code are available here.