Skip to main content

Targeting Rules

Targeting rules let you control which users receive which flag variation based on user attributes or percentage-based rollouts.

Rules are evaluated in order. Each rule can match users by attributes (such as email, country, or any custom attribute) using operators like equals, contains, startsWith, and in. When a user matches a rule, they receive the variation assigned to that rule.

Percentage rollouts distribute users across variations based on a consistent hash of the user key, ensuring the same user always sees the same variation. You can roll out a feature to 10% of users, then gradually increase to 50% and 100%.

If no rules match, the user receives the flag's default value for the current environment.