Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
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 ?