HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Get

This topic describes optimizely.get API function.

The API has an optimizely.get function that gives you access to the data you've saved in your project (campaigns, experiments, pages, events and audiences). With this function, you can also get information about the current state of Optimizely in the browser.

Usage

// Get the state of Optimizely campaigns and experiments
window["optimizely"].get("state");