Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference
GitHubDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

Get

This topic describes optimizely.get API function.

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

Usage

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