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 create custom audience in Target?

vijayselvaraj_9
Level 2
Level 2

Hi All,

I have a requirement to show the content, based on user's type/category. So, I'm planning to go with cookie approach and achieve this. But, can someone help me on the approach which I'm gong to follow and correct me if something will not works here!

1) My application has login option. so, when user logged in I will set a cookie whether the user category is A, B or C. (CookieName=UserCategory & CookieValue=categoryA/B/C).

2) Once the cookie has been set and I will trigger the mbox/At.js and In Target I will check the cookie (UserCategory) whether if it is A, B or C? Based on that I'm planning to show the content.

Now, I had a doubts on how to set the cookie first (before calling mbox/at.js) and how to pass the cookie value to Target. And, where should I write the JS/JAVA code to fetch the cookies?

Whether this cookie approach will works or not?

Or, is there any other approach I can use it from OOTB?

I using AEM 6.4 and integrate Target within that.

Can you please suggest/help  me here. Thanks in Advance.

arunpatidar26Adobe TargetAmy_Wongameliaw92894318arunpatidar26AmeliaWang924

Regards,

Vijay

1 Accepted Solution
Shruthi_N
Correct answer by
Employee
Employee

vijayselvaraj_90​ Instead of using a cookie the easier approach would be to store the category value in the user's visitor profile or pass it as an mbox parameter and then use that build the audience to show your content. Information on the same can be found at Methods

View solution in original post

3 Replies
Shruthi_N
Correct answer by
Employee
Employee

vijayselvaraj_90​ Instead of using a cookie the easier approach would be to store the category value in the user's visitor profile or pass it as an mbox parameter and then use that build the audience to show your content. Information on the same can be found at Methods

View solution in original post

skandg43264764
Employee
Employee

Hi vijayselvaraj_90

You can go as per Shruthi' suggestion

Or if you want to set cookie and that too before firing target then you have to on the webpage with the help of web developers and should set set cookie when user logs in and once that is set then you can create a profile script and read the cookie value and then same profile script you can use in your custom audience.

Hope this helps !

Regards

Skand Gupt

gaureshk3014423
Level 9
Level 9

Hi Vijay,

 

you can capture cookie value using launch data element.

I've written article on how to create audience based on cookie value. but I'm not sure whether it's allowed to share external link here.

 

https://www.thecoderwall.com/2019/06/how-to-create-audience-in-adobe-target.html

 

Read above article to understand it better.

@Shruthi_N  Kindly inform if it's not allowed to share external links here.