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

Use Response Token inside Profile Script

Avatar

Avatar
Boost 3
Level 1
CorralesD
Level 1

Likes

4 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Boost 1
View profile

Avatar
Boost 3
Level 1
CorralesD
Level 1

Likes

4 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Boost 1
View profile
CorralesD
Level 1

14-07-2020

Hello, I would like to be able to use response token data inside a profile script. 

 

My task is to use "activity.name" as a profile script value so that I can count the amount of time this activity was seen and apply frequency capping.

 

for example, if activity views are < x, display activity, otherwise don't.

 

return activity.name;

 

simply using this is not returning anything.

 

 

Profile Script Response Token

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
ryanr701
Employee

Likes

188 likes

Total Posts

193 posts

Correct Reply

77 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Employee
ryanr701
Employee

Likes

188 likes

Total Posts

193 posts

Correct Reply

77 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
ryanr701
Employee

14-07-2020

Response tokens are not available for profile scripts. Profile scripts run before response tokens are generated. However, to achieve your use case, one option I can think of would be including a trackEvent in your activity to trigger a second call back to Target to tell a profile script an activity view happened. For example, you could add this trackEvent to your experiences as a custom modification:

 

<script>
adobe.target.trackEvent({"mbox":"activityViewNotify", "params":{"activityName":"${activity.name}"}});
</script>

 

Then you could have the profile script look for the activityViewNotify mbox and the value of the activityName parameter to determine the count.

Note the ${activity.name} token is not a response token but has the same value. It's dynamic data in an offer as used here.

Answers (0)