Migrating from Classic

Migrating from Optimizely Classic to Optimizely X

Optimizely X comes with a brand-new JavaScript API. The API offers improved performance and added features. We also incorporated all the new features that Optimizely X offers into the new JavaScript API (like Pages).

There are two components to migrating your JavaScript code from Optimizely Classic to Optimizely X:

  1. Reading data from the Optimizely object on the page
  2. Controlling the execution of Optimizely with functions

Both components are similar in Optimizely X and Optimizely Classic, but some details have changed. In cases where it was possible, we implemented a legacy function so that your application will continue to work. In some cases, a small change will be required if you migrate from Optimizely Classic to Optimizely X due to new features that were added.

When your Optimizely snippet is in "Bundled" mode, it means that Optimizely Classic is active as well as Optimizely X. The functions that work in both platforms will execute for both Optimizely Classic as well as Optimizely X in a bundled state.