Debugging custom attribute returned value into experience

Avatar

Avatar
Level 1
sam_at_conversion
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
sam_at_conversion
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
sam_at_conversion
Level 1

17-03-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 100
Level 7
rush_pawan
Level 7

Likes

123 likes

Total Posts

192 posts

Correct reply

79 solutions
Top badges earned
Boost 100
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Boost 100
Level 7
rush_pawan
Level 7

Likes

123 likes

Total Posts

192 posts

Correct reply

79 solutions
Top badges earned
Boost 100
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
rush_pawan
Level 7

23-03-2021

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

Answers (2)

Answers (2)

Avatar

Avatar
Contributor
Level 4
rajneesh_gautam
Level 4

Likes

65 likes

Total Posts

68 posts

Correct reply

12 solutions
Top badges earned
Contributor
Ignite 5
Ignite 3
Ignite 1
Validate 1
View profile

Avatar
Contributor
Level 4
rajneesh_gautam
Level 4

Likes

65 likes

Total Posts

68 posts

Correct reply

12 solutions
Top badges earned
Contributor
Ignite 5
Ignite 3
Ignite 1
Validate 1
View profile
rajneesh_gautam
Level 4

26-03-2021

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

Avatar

Avatar
Springboard
Level 8
gaureshk3014423
Level 8

Likes

198 likes

Total Posts

168 posts

Correct reply

33 solutions
Top badges earned
Springboard
Validate 1
Contributor
Coach
Shape 10
View profile

Avatar
Springboard
Level 8
gaureshk3014423
Level 8

Likes

198 likes

Total Posts

168 posts

Correct reply

33 solutions
Top badges earned
Springboard
Validate 1
Contributor
Coach
Shape 10
View profile
gaureshk3014423
Level 8

25-03-2021

I guess

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

{ //Do something }

Else{do nothing}

would work.