Updated methods in Feature Experimentation
Introduces the SDK methods to retrieve decisions for your flags in Optimizely Feature Experimentation.
Feature Experimentation has released two primary methods: Decide
and Track Event
. All existing Full Stack Experimentation (Legacy) methods and implementation are still supported, but Optimizely Experimentation recommends updating to the new Feature Experimentation methods.
Decide method
The new decide()
methods eliminate the need to know when to use .activate()
, .isFeatureEnabled()
and other methods by combining the logic into one, easy-to-use .decide()
method.
It is a non-breaking change that extends and builds on the existing functionality of isFeatureEnabled()
, which is still a supported method for retrieving both legacy feature and new flag decisions.
Refer to your specific SDK's decide method reference documentation:
- Android SDK
- C# SDK
- Flutter SDK
- Go SDK
- Java SDK
- JavaScript (Browser) SDK
- JavaScript (Node) SDK
- PHP SDK
- Python SDK
- React SDK
- React Native SDK
- Ruby SDK
- Swift SDK
Track event method
The new track event method tracks a conversion event (in other words, an action a user takes) for a user.
Refer to your specific SDK's track event method documentation:
- Android SDK
- C# SDK
- Flutter SDK
- Go SDK
- Java SDK
- JavaScript (Browser) SDK
- JavaScript (Node) SDK
- PHP SDK
- Python SDK
- React SDK
- React Native SDK
- Ruby SDK
- Swift SDK
Update to the new methods
For information on how to update to the new methods, refer to your SDK's documentation:
Updated 11 months ago