Skip to main content
Conditional targeting rules assign variants to users based on conditions and percentage allocation.

Create a Conditional Targeting Rule

To create a conditional targeting rule, follow these steps.
1

Go to Confidence and select Flags on the left sidebar

2

Go to the flag you want to add a rule to

3

Click the add rule button in the Rules section

4

Select Create conditional targeting rule

5

Step 1: Add a description (optional)

Describe why you’re adding this rule. This helps others understand the purpose and intended effect.
6

Step 2: Configure the targeting

  • Serve: Select the variant to serve to matching users.
  • To: Set the percentage of traffic that should receive the variant (0-100%).
  • Of: Select the attribute to use for randomization.
  • Matching: Define conditions based on context attributes, or select “Any context” to match all users.
7

Click Create and activate

The rule is created and immediately active. To create without activating, use the dropdown menu next to the button.
Traffic matching your conditions receives the variant according to the percentage you defined.