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

Debugging custom attribute returned value into experience

sam_at_conversion
Level 1
Level 1

Hi, 

 

I'm looking to get the value of a custom attribute dynamically logged into one experience. We have a custom attribute set up as 'Customer Attributes.lifestage'. I know that this is server side data by is there a way I can return this value straight into the custom code area of an A/B experience. 

 

I do not want to set this up as an audience as we want to dynamically change the copy based on the customer attribute value. For example, something like:

if (CustomerAttr.lifestage === "Retired") {
console.log('User is retired');
} else {
console.log('User is not retired');
}

Any help is appreciated! 

Thanks

Sam

Adobe Target Customer Attributes
1 Accepted Solution
rush_pawan
Correct answer by
Community Advisor
Community Advisor

Audiences are better options as it has wide range for similar implementation via ContentHub or mbox parameter etc...

but if you dont want to go that route then

 

There are other approaches i can suggest (going on more level deeper not handling at audience rather through offer)

1. via passing setting and getting through contexthub and using that attribute in your HTML offer

2. or create client side object and use those in HTML offer

 

or 

even you can handle it through globalmbox if this scenario spreaded across site.

 

hope it helps!!

View solution in original post

3 Replies
rush_pawan
Correct answer by
Community Advisor
Community Advisor

Audiences are better options as it has wide range for similar implementation via ContentHub or mbox parameter etc...

but if you dont want to go that route then

 

There are other approaches i can suggest (going on more level deeper not handling at audience rather through offer)

1. via passing setting and getting through contexthub and using that attribute in your HTML offer

2. or create client side object and use those in HTML offer

 

or 

even you can handle it through globalmbox if this scenario spreaded across site.

 

hope it helps!!

View solution in original post

gaureshk3014423
Level 8
Level 8

I guess

if(${crs.aliasid.columnname} == 'somevalue')

{ //Do something }

Else{do nothing}

would work.

rajneesh_gautam
Level 5
Level 5

Did you try ResponseTokens? Customer Attributes are available under Response Tokens so you can view value under Preview of Adobe Target response under Developer Tools.

 

Regards,

Rajneesh