Query parameters

It is possible to use URL parameters to modify the execution of Optimizely on your page. Below is a list of all the supported URL parameters you can use.

Disable

?optimizely_disable=true

Disables Optimizely on the page.

Impersonate Audiences

?optimizely_x_audiences={{audience_ids}}

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

Override Variations

?optimizely_x={{variation_ids}}

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.

Opt Out

?optimizely_opt_out=true

Opts visitor out of Optimizely tracking (sets cookie to persist).

Force Tracking

?optimizely_force_tracking=true

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

Log

?optimizely_log=info

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