You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/basic-features/segments.md
+3-12Lines changed: 3 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,24 +109,15 @@ Context values can be used to control your targeting more precisely:
109
109
### Gradual rollout across tenants
110
110
111
111
Suppose your application supports users who can belong to multiple organisations. Now imagine you want to roll out a new
112
-
feature to 50% of your total user base — but instead of targeting users randomly, you'd like to gradually release the
113
-
feature based on the organisations they belong to.
112
+
feature to 20% of your organisations, ensuring that users only have access to the feature when they are part of an organisation included in that 20%. If they switch to an organisation outside this group, they will no longer have access to the feature.
114
113
115
114
Here's how you might define a segment to achieve this:
1. Check whether the user falls within the first 50% of your overall user base.
125
-
2. If they do, check whether the organisation they belong to is within 20% of all organisations.
126
-
127
-
As you gradually increase the percentage in Rule 2, the number of users with access to the feature grows — but it will
128
-
never exceed 50% of your total user base. If a user switches to an organisation that isn’t included in Rule 2, they’ll
129
-
lose access to the feature.
120
+
This setup, along with a segment override, instructs the evaluation engine to enable the feature if the user's current organisation belongs to consistent 20% of all organisations.
0 commit comments