Adding Rules
Learn how to add targeting rules to dynamic configs to control which users receive specific configurations
Add a rule to a dynamic config
To add new user targeting rules to a dynamic config,
Log into the Statsig console at https://console.statsig.com
On the left-hand navigation panel, select Dynamic Configs
Select the dynamic config where you want to add a rule
Click the Add Targeting button
Click the Add New Rule button
Select the criteria for identifying the users you want to target:
- You can target users based on common attributes such as their operating system as shown below.

- You can target users in a defined segment as shown below.

- You can target users who are eligible for a specific feature gate as shown below; this ensures Statsig activates the dynamic config only for users exposed to the target feature gate.

To complete the dynamic config, select the Edit link to open the JSON configuration editor. Type the configuration parameters and values that your application should receive, then select Confirm.

Was this helpful?