Cookie domain
Instruct Optimizely to set its cookies on a specific subdomain instead of the default domain.
Syntax
window["optimizely"].push(cookieDomain);
Parameters
Parameter and Type | Child Attribute | Description |
---|---|---|
cookieDomain | An object with the | |
type | Child attribute of type CookieDomainObject | The argument indicating that you are using the cookieExpiration function. Required. |
cookieDomain | Child attribute of type CookieDomainObject | The cookie domain. |
Example Call
window["optimizely"].push({
"type": "cookieDomain",
"cookieDomain": "www.example.com"
});
Description
Instruct Optimizely to set its cookies on a specific subdomain instead of the default domain. You must call "setCookieDomain" prior to loading the Optimizely snippet. By default, Optimizely sets its cookies on the domain to work across subdomains.
Updated about 3 years ago