Read secure cookie and change experience | Community
Skip to main content
Level 2
May 24, 2021
Solved

Read secure cookie and change experience

  • May 24, 2021
  • 2 replies
  • 1153 views

We have a requirement to change customer experience based on presence of a secure cookie (just yes/no). How to achieve this using experience targeting?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ryanr7

You need to pass the cookie value to Target as a custom parameter. Using the targetPageParams() function is a great way to do this for a client-side at.js implementation of Target. Then you can setup an audience rule that checks against the custom parameter you are passing into Target.

2 replies

Charles_Thirupathi
Level 4
May 24, 2021

@aem-explorer If you're going to deliver Experience via Custom Code then inside custom code you can put condition to check cookie value and based on cookie value you can deliver the content. If you're going to Deliver Experience via VEC composer then pass the cookie value as MBOX parameter and then using that MBOX parameter you can able to create the New Audience.

ryanr7Adobe EmployeeAccepted solution
Adobe Employee
May 24, 2021

You need to pass the cookie value to Target as a custom parameter. Using the targetPageParams() function is a great way to do this for a client-side at.js implementation of Target. Then you can setup an audience rule that checks against the custom parameter you are passing into Target.