Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

How to set Analytics cookie to secure flag

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Level 8

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

View solution in original post

5 Replies

Avatar

Correct answer by
Level 8

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

Avatar

Level 8
It's wherever you're instantiating your Visitor ID Service.

Avatar

Level 6
Thanks- Is there way to make http option also secure ?

Avatar

Level 2

After adding the same code with my organisation Id, AMCV cookie is still not set as secure. What could be the reason ?