Beta feature self opt-in
Creating a page where users can opt into certain beta/experimental features is straight forward with Bucket and the Bucket React SDK.
The basic concept is to set an attribute on the user/company which denotes that the user has self opted into a specific feature, for example optin-<featureKey> = true.
Updating an attribute is very simple from the SDK. Then use that attribute to control who has access to the feature by updating the feature access rules such that users/companies with the attribute optin-<featureKey>=true
will have access to the feature.
Step by step guide
Here's a step by step guide:
Select a feature to let people self opt-into.
Add the rule:
optin-<featureKey> IS TRUE
to the rules section for all the environments. Replace<featureKey>
with the actual feature key of the feature.Use the following React component to let users self opt-in to specific features:
How it works
The React component above uses remote attributes to ensure that any feature you've enabled stays enabled between sessions.
Next steps
Learn how to manage who has access, modify the Targeting rules in the UI.
Last updated