HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Disable

Disable Optimizely Web Experimentation entirely.

Syntax

window["optimizely"].push("disable");

Parameters

Parameter and TypeChild AttributeDescription
disable
DisableObject
N/AAn object with the type field set to disable. The other fields are the function arguments. Required.
type
string
Child attribute of type DisableObjectThe argument indicating that you're using the disable function. Required.
scope
string
Child attribute of type DisableObjectYou can disable just Optimizely Web Experimentation tracking calls from being made using the parameter scope "tracking".

Example 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.