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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Read secure cookie and change experience

aem-explorer
Level 2
Level 2

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?

cookies
1 Accepted Solution
ryanr701
Correct answer by
Employee
Employee

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.

View solution in original post

2 Replies
Charles_Thirupathi
Level 3
Level 3

@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.

ryanr701
Correct answer by
Employee
Employee

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.

View solution in original post