Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to set Analytics cookie to secure flag

pradeep_07
Level 4
Level 4

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
Brian_Johnson_
Correct answer by
Community Advisor
Community Advisor

@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

4 Replies
Brian_Johnson_
Correct answer by
Community Advisor
Community Advisor

@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

Brian_Johnson_
Community Advisor
Community Advisor
It's wherever you're instantiating your Visitor ID Service.
pradeep_07
Level 4
Level 4
Thanks- Is there way to make http option also secure ?
Pranithakat
Level 2
Level 2

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