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

Preview each variation

Describes how to preview a variation.

URL parameters called "force parameters" let you force a specific variation to render in the browser. Append the query parameter to any URL on your site to skip all targeting conditions (such as audiences) and force Optimizely Performance Edge to execute the variation code when the page loads. Use force parameters to show a variation to yourself for QA.

Experiment statusForce parameter syntax
Published and running?optimizely_x=VARIATIONID
(Here's where to find the variationID.)

Force parameters can only be used on published and running experiments with Optimizely Performance Edge.

To ensure account privacy, force parameters are disabled by default. Here's how to change that setting).

📘

Note

If you are using force parameters in a production environment, you should combine this method with a test query parameter to avoid showing the experiment to your visitors before testing is complete.