Updated methods in Feature Experimentation
Feature Experimentation has released two primary methods: `Decide``Decide` and `Track Event``Track Event`. All existing Full Stack Experimentation (Legacy)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 SDKAndroid SDK
- C# SDKC# SDK
- Flutter SDKFlutter SDK
- Go SDKGo SDK
- Java SDKJava SDK
- JavaScript SDKJavaScript SDK – SDK versions 6.0.0 and later.
- JavaScript (Browser) SDKJavaScript (Browser) SDK – SDK versions 5.3.5 and earlier.
- JavaScript (Node) SDKJavaScript (Node) SDK – SDK versions 5.3.5 and earlier.
- PHP SDKPHP SDK
- Python SDKPython SDK
- React SDKReact SDK
- React Native SDKReact Native SDK
- Ruby SDKRuby SDK
- Swift SDKSwift 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 SDKAndroid SDK
- C# SDKC# SDK
- Flutter SDKFlutter SDK
- Go SDKGo SDK
- Java SDKJava SDK
- JavaScript SDKJavaScript SDK – SDK versions 6.0.0 and later.
- JavaScript (Browser) SDKJavaScript (Browser) SDK – SDK versions 5.3.5 and earlier.
- JavaScript (Node) SDKJavaScript (Node) SDK – SDK versions 5.3.5 and earlier.
- PHP SDKPHP SDK
- Python SDKPython SDK
- React SDKReact SDK
- React Native SDKReact Native SDK
- Ruby SDKRuby SDK
- Swift SDKSwift SDK
Update to the new methods
For information on how to update to the new methods, refer to your SDK's documentation:
- Android SDKAndroid SDK
- C# SDKC# SDK
- Go SDKGo SDK
- Java SDKJava SDK
- JavaScript (Browser) SDKJavaScript (Browser) SDK
- JavaScript (Node) SDKJavaScript (Node) SDK
- PHP SDKPHP SDK
- Python SDKPython SDK
- React SDKReact SDK
- React Native SDKReact Native SDK
- Ruby SDKRuby SDK
- Swift SDKSwift SDK