Top
User Attributes
  • 08 Jul 2023
  • 2 Minutes To Read
  • Dark
    Light
  • PDF

User Attributes

  • Dark
    Light
  • PDF

Article Summary

Whatfix User Attributes enables you to fetch end users' information from your app and use them in Widget Visibility Rules for easy content segmentation and personalization.

User information like role, signup date, department, subscription plan, etc. can be fetched and used for segmentation.

your title goes here

Whatfix needs to set up an integration that requires some backend configuration. Contact support@whatfix.com to set it up.

Step 1: Create a User Attribute

  1. On the Whatfix dashboard, click Integrations.
    CLM_Dashboard_integrations

  1. Click Attributes.
    Integrations_attributes

On this page, you can view the list of User Attributes created in your account.

  1. In the User Attributes tab, click + User Attribute.
    Add_user_attribute

  2. Enter the User Attribute Name and select its Variable Type.
    Create_user_attribute

  3. Click Save.

Note
  • User Attribute Name:
    The user attribute name cannot begin with numbers, include spaces, or contain special characters (except underscores).

  • Variable Type:

    • String - Select this option to create a user attribute that matches the string value, such as a user name.
    • Encrypted_string - Same as String Variable Type, but the data is encrypted and stored in the database.
    • Double - Select this option to specify a single number. For example, employee number.
    • Boolean - Select this option to create a user attribute that has either true or false values. For example, whether or not the user had upgraded the plan or visited a specific section of the app.
    • Timestamp - Select this option to specify a single date or time, such as the user’s birth date, signup date, etc.

Step 2: Assign values to the User Attribute

Assigning values (user information) to the User Attribute can be used to create and define Visibility Rules for segmentation.

Use the following steps to assign values to the User Attribute:

  1. On the Whatfix dashboard, click Integrations.
    CLM_Dashboard_integrations

  1. Navigate to the created integration and then click the Edit icon.
    clm_db_edit_integration

  2. Navigate to the Script section and then click Show User Attributes to view all the User Attributes.
    show_user_attribute

your title goes here
  • You can assign values to the User Attribute of your choice.

  • When data is fetched using the GET request, data can be transformed into User Attributes using the following sample code.

    sample_code

Once you finish creating the integration, the GET request values are mapped to the User Attribute.

Note

Depending on the type of values you receive using the GET request, the appropriate Variable Type must be selected for the User Attribute.

Step 3: Add the User Attribute in Visibility Rules

Once the values are mapped to the User Attribute, they can be used in the Widget Visibility Rules for content segmentation.

  1. In the Widget Visibility Rules section, select User Attribute.
    visibility_rules_user_attribute

  2. Select the User Attribute you created.
    select_user_attributes

  3. Select the operator and enter the value.

    user_attribute_values

  4. Configure additional Visibility Rules, if necessary, and finish creating the widget.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.