Top
Create a User Segment using custom properties
  • 11 Mar 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Create a User Segment using custom properties

  • Dark
    Light
  • PDF

Article summary

Sometimes, you might require user properties specific to your app to create user segments. In such cases, Whatfix Mobile enables you to create your own custom properties defined by you which can then be added to a user segment.

Use the following steps to create a User Segment using custom properties,

  1. On the Whatfix Mobile Dashboard, select an app.
    Mobile_Db_Select_App.png

  2. In the navigation panel, click User Segments.
    Mobile_click_user_segments.png

  1. Click + Create Segment.
    Mobile_plus_create_segment.png

  2. Click Create user segment.
    Mobile_click_create_user_segment.png

  3. Enter a name for the User Segment.
    Enter_name_user_segment.png

  4. Click Add Rules.
    Mobile_Add_rules.png

  5. To create a custom property, click + New.
    User_property_click_new.png

  6. Enter the Property Name, choose a Value Type, and add the Description.
    Enter_Propert_name_value_type_Description.png

your title goes here
  • Property Name is the name given by you to the property.
  • Following are the 3 value types you can select,
    a. Integer (whole number)
    b. String (characters, strings, float, double, boolean values)
    c. Time (timestamp)
  • Adding a short Description helps you refer to the property.
  1. Click Create.
    Mobile_click_create.png

  2. Click Done.
    Mobile_Click_done.png

your title goes here

A code snippet is generated that can be added to your code base for reference.
Mobile_User_segment_code.png

  1. Choose the User Property you have created.
    Mobile_Click_custom_segment.png

  2. Choose a condition and add a value as required.
    Mobile_Add value_segment_rules.png

your title goes here
  • You must enter the correct value type for the user property to work.
  • You can add more conditions to your user segment using AND or OR operations.
  1. Click Create Segment.
    Mobile_Create_segment
your title goes here
  • Once the custom property is created, ensure that the reference is added to your code before using the user segment.
  • To know how to use User Segments while publishing your content, see Publish projects directly.

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.