Disable Optimizely Web Experimentation entirely.
Syntax
window["optimizely"].push("disable");
Parameters
Parameter and Type | Child Attribute | Description |
---|---|---|
disable DisableObject | N/A | An object with the |
type | Child attribute of type DisableObject | The argument indicating that you're using the disable function. Required. |
scope | Child attribute of type DisableObject | You can disable just Optimizely Web Experimentation tracking calls from being made using the parameter scope "tracking". |
Example Call
// Ensures the optimizely object is defined globally
window['optimizely'] = window['optimizely'] || [];
// API call
window["optimizely"].push({
"type": "disable"
});
Description
Disable Optimizely Web Experimentation entirely. You must call disable
prior to loading the Optimizely Web Experimentation snippet.
You can also disable just Optimizely Web Experimentation tracking calls from being made using the parameter scope tracking
.
ImportantYou must define the Optimizely object before calling the Disable API.