secureCookie

An optional Boolean flag that adds a “Secure” attribute to the AMCV cookie.

This configuration attribute is available in the visitorAPI, version 3.3.0.

NOTE

The SecureCookie configuration will not work on unsecured domains and could result in you not receiving the MID values for visits that use an unsecured protocol. The secureCookie configuration should be set to true only when you are sure that all pages and sub-domains are using a secure protocol at all times.

Syntax: secureCookie: true | false (default)

Code Sample

var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ID-HERE",{ 
 
        //Set secure cookie property 
        secureCookie: true 
 });

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now