Top
Create a User Segment using custom properties
  • 15 May 2024
  • 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.
    dashboard_select_app

  2. In the navigation panel, click User Segments.
    mobile_click user segments

  1. Click + Create Segment.
    mobile_new segment

  2. Click Create user segment.
    mobile_click create user segment

  3. Enter a name for the User Segment.
    mobile_enter name

  4. Click Add Rules.
    mobile_user segment_add rules

  5. To create a custom property, click + New.
    mobile_us_new

  6. Enter the Property Name, choose a Value Type, and add the Description.
    Mobile_custom properties

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_user seg_create

  2. Click Done.
    mobile_user seg_done

your title goes here

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

  1. Choose the User Property you have created.
    Mobile_custom user segments

  2. Choose a condition and add a value as required.
    mobile_user segement conditions

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.