How to set Analytics cookie to secure flag

Avatar

Avatar

pradeep_07

Avatar

pradeep_07

pradeep_07

06-01-2021

Hi,

 

We have an issue where Analytics cookies are not flagged as secure. Especially AMCV and AMCVS cookies. How can we flag this to secure and justify business that this cookies are safe.

 

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

evolytics_brian

Avatar

evolytics_brian

evolytics_brian

06-01-2021

@pradeep_07 - Try this:

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

https://experienceleague.adobe.com/docs/id-service/using/id-service-api/configurations/securecookie....