- 15 May 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Create a User Segment using custom properties
- Updated On 15 May 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
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,
-
On the Whatfix Mobile Dashboard, select an app.
-
In the navigation panel, click User Segments.
-
Click + Create Segment.
-
Click Create user segment.
-
Enter a name for the User Segment.
-
Click Add Rules.
-
To create a custom property, click + New.
-
Enter the Property Name, choose a Value Type, and add the Description.
- 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.
-
Click Create.
-
Click Done.
A code snippet is generated that can be added to your code base for reference.
-
Choose the User Property you have created.
-
Choose a condition and add a value as required.
- 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.
- Click Create Segment.
- 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.