Contact Us


Pendo Help CenterInstallationHow to use custom data when defining a Mobile Segment

How to use custom data when defining a Mobile Segment

Pendo provides various default filters to use when defining a Pendo Mobile Segment. These filters require no coding or integration with customer systems. For example, Pendo provides a codeless way to segment users based on in-app activity (screens viewed or not viewed, elements tapped or not tapped).

In addition to these default options, it is possible to use your own data (i.e. data from CRMs, data from other analytics systems, etc.) when defining a mobile Segment. To use your own data in this manner, you must define the attributes you want to use and ensure that your app code properly sets the value of those attributes.

To add custom attributes, follow two simple steps:

Step 1: Define User Attributes in the Pendo Console

To use custom data when creating an segment, you must first define User Attributes in the Web Console. To do this, go to the Subscription Settings page, click on the relevant app Settings, and then go to the User Data tab in the top menu. Next, click the + Add User Data button and then define your new attribute. When defining an attribute, you will provide both a name and type (String, Number, Boolean, or Choice). If you select Choice as the attribute type, you will also provide a list of possible values.


Once your User Data are defined, you can use them as filters when defining a mobile segment in the Pendo Console. The attributes appear in the User Data section of the segment definition dialog as shown below.


Now that you have defined the attributes in the Pendo Console, it is time to update your code to properly set the value of these attributes.

Step 2: Set user attributes using the Pendo Mobile SDK

The Pendo SDK includes an API to set user attributes. There are two ways to set user attributes: (a) set user data during initialization (initSDK method) (b) Set user data anywhere in your code. The API for setting user attribute can be found on the SDK Integration instructions within the Pendo Console.

© 2019 Pendo  |  Terms of Service  |  Privacy Policy