- DarkLight
Creating and Editing Segments
- DarkLight
Creating Segments
On the left side of the navigation pane, click Segments. To create a new Segment follow these steps:
Click Add Segment.
The Segment Rules tab is displayed.
Type a name for the Segment in the Segment Name field.
Note:
The Segment name cannot contain spaces and special characters other than hyphens and underscores.
Provide the purpose of the segment in Segment Description.
Set Include and Exclude conditions as required.
To add INCLUDES and EXCLUDES condition:
Expand the +Includes +Excludes section as required.
Select the required Entity from the Select Entity dropdown list.
Select the applicable Attribute from the Select Attribute dropdown list.
Select the preferred operator from the Select Operator dropdown list. Based on the operator you select, the Value text box is populated.
If you select, is anything, is empty, is not empty as operator, the Value text box is not displayed.
For other operators, type the value in the Value text box.
To add multiple conditions, click
.
Note:
To remove the already added row, click X on the right.
AND/OR - You can combine one or more rows together in a group. Each group is combined by either an AND or an OR. If you select AND, then all the rows must be true. If you select OR, then only one of the rows must be true.
To change AND to OR or vice versa, click the operator dropdown list to choose between AND and OR.
To remove the added set of segment rules, click X.
Click Save. The new segment is created successfully.
To add a new set of conditions, click +Add. When you do so, in certain scenarios, Skip condition if the <name of the child entity> has no records checkbox is displayed. Refer to this topic to learn more about Skip Condition.
The Segment details are displayed in a grid format. You can sort the segments alphabetically and use the search option to find specific segments.
Note:
A newly created segment is Active by default.
Logical Operators and Filters
When defining segment rules, you use logical operators like OR and AND to include or exclude profiles based on specific criteria.
Here’s how they work:
OR: If you use OR, only one of the conditions needs to be fulfilled for the rule to apply.
AND: If you use AND, all conditions must be met for the rule to apply.
These logical operators are used between rules within a rule set as well as between multiple rule sets.
For example, if you set a rule for Profiles where Country is equal to India. If you choose AND as the operator, and then add another rule set using OR to specify City is equal to Chennai or City is equal to Bangalore, the final filter will include profiles where the country is India and the city is either Chennai or Bangalore.
To learn more about conditional operators, refer to Conditional Operators.