npm install --save @optimizely/optimizely-sdk
yarn add @optimizely/optimizely-sdk
We do not recommend using the unpkg script tag installation method in production as it introduces a third-party performance dependency, and will not be explicitly version-locked by default
Promise. To run in environments that don't support
Promise, you can use promise-polyfill.
After installing, you need to intialize the SDK.
The full source code is at index.ts.
Updated over 1 year ago