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

# Create a User Segment

User Segments enable you to group users and deliver contextual in-app experiences. These segments can be easily created by defining the appropriate rules using User Properties. For example, show a Pop-up only to users who installed the app 30 days ago.

The advantage of using segments is that they are reusable across any number of campaigns, and are updated automatically over a period of time as users interact with your app.

Whatfix provides you predefined user segments which can be added to your content. ![Mobile\_predefined\_user\_segment.png](/images/b5/Mobile_predefined_user_segment-b55fcb08.png)

Create your own user segments, and then add them to your content.

The following are the two ways to create a User Segment:

    Use the Whatfix Mobile Dashboard to create a User Segment
   
   

Use the following steps to create a User Segment from your Dashboard:

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. Choose the required **User Properties** from the default properties. ![User\_Properties\_App\_Version\_iOS.png](/images/53/User_Properties_App_Version_iOS-5375786c.png)

         your title goes here

         

For more information on default and custom user properties, see [What is a User Property?](/mobile/what-is-a-user-property).

1. Choose a condition and add a value as required.

![Segment\_rules\_app\_version\_ios.png](/images/15/Segment_rules_app_version_ios-15445896.png)

         your title goes here

         

Ensure that you enter the correct value type for the user property to work.

1. Click **Create Segment**.

![Mobile\_Create\_segment](/images/15/Mobile_Create_segment-158c1de4.png)

         your title goes here

         

To create a User Segment using custom properties, see [Create a User Segment using custom properties](/mobile/create-a-user-segment-using-custom-properties)

    Upload a Spreadsheet or CSV file to create a User Segment
   
   

The CSV Upload feature enables content to be delivered to specific list of users specified in a CSV file. For instance, this can be used to do a Beta release to small set of users.

The following is how a sample CSV file containing a list of user IDs looks like in a text editor:

![csv\_file\_user\_segments.png](/images/eb/csv_file_user_segments-eb18471b.png)

This CSV file can be used to deliver content to only the users with the listed User IDs.

         your title goes here

         

- The CSV file's name should be less than 50 characters and free of whitespaces and trailing whitespaces.
- The values (User IDs) in the CSV file should be comma-delimited and without any spaces in between them. In case you generated the CSV by exporting data from a Database Management Service, verify that the CSV follows the required format by opening it in a text editor.
- Ensure that you add only User IDs in a single column without a header row. There shouldn't be any empty rows in the list of User IDs.    \* Upload up to 1000 User IDs to create a segment. If you upload a CSV with more than 1000 users, only the first 1000 in the list will be considered for creating that segment.
- The following is a sample CSV file containing User IDs:

[csv\_sample\_upload.csv](/mobile/create-a-user-segment)

Use the following steps to create a User Segment from a CSV file:

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 **Upload spreadsheet or CSV file**. ![Click\_upload\_spreadsheet\_or\_csv\_file.png](/images/4c/Click_upload_spreadsheet_or_csv_file-4ce0f7c1.png)

5. Enter a name for the User Segment. ![Enter\_title\_upload\_spreadsheet\_or CSV\_file.png](/images/90/Enter_title_upload_spreadsheet_or-CSV_file-90d98d45.png)

6. Click **Upload file**. ![Mobile\_click\_upload\_file.png](/images/9f/Mobile_click_upload_file-9f581bb1.png)

7. To select the csv file from your local drive or library, click **Browse**. ![Upload\_CSV\_file\_Browse.png](/images/fb/Upload_CSV_file_Browse-fb8a8e29.png)

8. Click **Upload**. ![Mobile\_CSV\_File\_Upload.png](/images/79/Mobile_CSV_File_Upload-794c21fd.png)

         your title goes here

         

To know how to use User Segments while publishing your content, see [Publish projects directly](/mobile/publish-projects-directly).
