How to set Analytics cookie to secure flag | Community
Skip to main content
pradeep_07
Level 4
Jan 6, 2021 6:53 PM UTC
Solved

How to set Analytics cookie to secure flag

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Brian_Johnson_
Brian_Johnson_Accepted solution
Level 8
Jan 6, 2021 10:40 PM UTC

@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.html?lang=en#id-service-api

5 replies

Brian_Johnson_
Brian_Johnson_Accepted solution
Level 8
Jan 6, 2021 10:40 PM UTC

@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.html?lang=en#id-service-api

Translate
pradeep_07
Level 4
Jan 12, 2021 3:00 PM UTC
@brian_johnson_- This should be called in the S-code?
Translate