Expand my Community achievements bar.

SOLVED

How to set Analytics cookie to secure flag

Avatar

Level 7

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 7
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 ?