The Full Stack Developer Guide Developer Hub

Welcome to the Full Stack Developer Guide developer hub. You'll find comprehensive guides and documentation to help you start working with the Full Stack Developer Guide as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Opt a visitor out of Optimizely tracking.

Syntax

window["optimizely"].push(optOut);
Parameters
Parameter and Type
Child Attribute
Description

optOut
OptOutObject

-

An object with the type field set to optOut. The other fields are the function arguments. Required.

type
string

Child attribute of type OptOutObject

The argument indicating that you are using the optOut function. Required.

isOptOut
Boolean

Child attribute of type OptOutObject

It's possible to opt in a previously opted-out visitor.

Example Call

window["optimizely"].push({
  "type": "optOut",
  "isOptOut": false
});

Description

Opt a visitor out of Optimizely tracking. For example, you may want to opt visitors out of Optimizely tracking as part of your site's broader opt-out preferences.

Updated about a year ago


Opt out


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.