Guides
Submit Documentation FeedbackJoin Developer CommunityLog In

Query parameters

You can use URL parameters to modify the execution of Optimizely 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

Opts visitor out of Optimizely 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

Did this page help you?