Segmentation rules import

This feature is experimental and it is not enabled for all accounts.

If you want to create a segment with multiple rules, you can also import it from a simple TXT file. Currently, we only support the uploading of user properties; meaning you won't be able to upload a TXT file to create a segment based on devices or custom event status at this time. You can import up to 100 rules (100 rows of text).

If you are in our Boost plan, we strongly recommend using the batch users update instead of this feature.


Getting started

Go to the Segments menu of your workspace, create or open a segment and click on Import rules.

The uploaded TXT file should have the following format:

userproperty;operator;value

The userproperty column must contain a property name starting with user. and a technical name of the property. You can find it in Tracked Users.

The operator column contains an operator of the rule. Supported operators are: =, !=, >=, <=, <, >, contains and contains_not.

The last column contains the value of the rule.

An example segment TXT file:

user.username;=;user_no_1
user.username;=;another_username
user.username;=;third_user
user.props.customProperty;>;1234

This file will create a segment that applies to all users who: a. have one of three usernames listed (user_no_1, another_username, third_user) OR b. have a customProperty value of greater than 1234.