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

Query parameters

You can use URL parameters to modify the execution of Optimizely Web Experimentation on your page.

Below is a list of all the supported URL parameters available.

Disable

Disables Optimizely on the page.

?optimizely_disable=true

Impersonate audiences

Comma-separated list of audience IDs to "impersonate".

?optimizely_x_audiences={{audience_ids}}

Override variations

Comma-separated list of variation IDs to bucket. If set overrides any variations, the visitor is in "naturally". If this parameter is set, it disables tracking events.

?optimizely_x={{variation_ids}}

Opt out

Removes a visitor from Optimizely Web Experimentation tracking (sets cookie to persist).

?optimizely_opt_out=true

Force tracking

Sends tracking events even if client is in preview or forcevariations/force_audiences are present. Does _not override disable tracking API.

?optimizely_force_tracking=true

Log

Prints execution info to your browser console. The possible values (case-insensitive) for the parameter are:

OFF/FALSE: No logs
ERROR: Errors only
WARN: Warning and above
INFO/TRUE: Info and above
DEBUG: Debug and above
ALL: All logs

?optimizely_log=info

View draft or paused experiments

Allows anyone to view draft or paused experiments for QA.

?optimizely_token=PUBLIC