Affected: All SDKs, Experimentation
Overview
When an experiment is in progress, you have the option to stop the experiment and select a specific variation to serve targets. The chosen variation will be delivered to all targets that match the experiment's audience targeting rule. However, stopping an experiment will also cease the collection of user behavior data for that experiment.
Solution
If you wish to discontinue the addition of new user
contexts to an experiment but continue serving the same variation to all participants already in the experiment, consider one of the following approaches:
Utilize user attributes
- Assign a specific attribute to users who are already part of the experiment.
- Then, target this attribute in the flag settings to ensure the designated variation is shown to these users.
Create a user segment
- Group the users already participating in the experiment into a dedicated segment.
- Use this segment as a targeting criterion to ensure they receive the desired variation.
- Additionally, make sure to set up targeting for all other users (new users) before the experiment begins to ensure that the experiment doesn't receive any traffic from them while it continues to run for the existing participants.