Source: https://nishanth-fern-test.docs-staging.pageloop.ai/mobile/create-a-user-segment-using-custom-properties

# Create a User Segment using Custom Properties

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](/images/cb/Mobile_Db_Select_App-cbf7a180.png)

2. In the navigation panel, click **User Segments**. ![Mobile\_click\_user\_segments.png](/images/f6/Mobile_click_user_segments-f6cdc120.png)

3. Click **+ Create Segment**. ![Mobile\_plus\_create\_segment.png](/images/f5/Mobile_plus_create_segment-f5591a4f.png)

4. Click **Create user segment**. ![Mobile\_click\_create\_user\_segment.png](/images/70/Mobile_click_create_user_segment-7056378c.png)

5. Enter a name for the User Segment. ![Enter\_name\_user\_segment.png](/images/82/Enter_name_user_segment-825c0ef3.png)

6. Click **Add Rules**. ![Mobile\_Add\_rules.png](/images/d3/Mobile_Add_rules-d39b950f.png)

7. To create a custom property, click **+ New**. ![User\_property\_click\_new.png](/images/b6/User_property_click_new-b6d7353c.png)

8. Enter the **Property Name**, choose a **Value Type**, and add the **Description**. ![Enter\_Propert\_name\_value\_type\_Description.png](/images/a6/Enter_Propert_name_value_type_Description-a6244839.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](/images/8a/Mobile_click_create-8a0a408c.png)
2. Click **Done**. ![Mobile\_Click\_done.png](/images/51/Mobile_Click_done-5138e309.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](/images/ea/Mobile_User_segment_code-eaa3aac7.png)

1. Choose the User Property you have created. ![Mobile\_Click\_custom\_segment.png](/images/3a/Mobile_Click_custom_segment-3a5c0c52.png)
2. Choose a condition and add a value as required. ![Mobile\_Add value\_segment\_rules.png](/images/01/Mobile_Add-value_segment_rules-012c6e94.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](/images/15/Mobile_Create_segment-158c1de4.png)

         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](/mobile/publish-projects-directly).
