Target groups of users with rules

portrait de l'auteur Julie Trenque

Written by Julie Trenque

Updated on 02/21/2023

1 min

Advanced

Was this content useful?

For any type of rule that you select, the first step you see is a Targeting section that allows you to select an existing segment or create a new one.  

By default, the target is set to All users, but you can choose from a drop-down of existing segments or create a new one by clicking the button below it. 

The next step is to choose the exposure rate for this rule i.e what percentage of your chosen segment will be exposed while the flag is turned on. 
In the example above, 50% of Power users will be evaluated for this rule.

Technical note: you’ll need to call the addData() method of our SDK to associate custom data or attributes like the device type, subscription plan, etc, to your users. You can then build segments by using any of those data. We also provide native integrations with Mixpanel, Segment or GA4 to retrieve external cohorts and use them in Kameleoon segments. You’ll need to call the retrieveDataFromRemoteSource() method in your source code to automatically retrieve external segments associated with the user.