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 GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Optimizely Web Experimentation

Run experiments on your site using the Optimizely Web Experimentation JavaScript API.

The Optimizely JavaScript API lets developers modify the default behavior of Optimizely Web Experimentation on web pages.

The Optimizely Web Experimentation snippet is a JavaScript file that contains the logic needed to run experiments on a web page. Using the JavaScript API, you can modify the snippet's default behavior to target activation based on specific page content or events. You can also query the state of activation, bucketing, or conversion for use in custom analytics packages and force visitors into specific variations, among other capabilities.

Refer to the API functions documentation to see the PUSH and GET capabilities of the JavaScript API.

See the Certification exams for Optimizely Experimentation Strategist and Experimentation Web Platform Expert along with other Optimizely products.

If you have any questions about using the JavaScript API, you can contact Optimizely Support.