Passing Activity name and Experience name as profile parameters | Community
Skip to main content
raag_s
July 16, 2021
Solved

Passing Activity name and Experience name as profile parameters

  • July 16, 2021
  • 1 reply
  • 2163 views

Hi everyone, 

 

We are creating a user Journey through Adobe target, which relies on the visitor's experience. So In essence, if the visitor saw Exp B for a certain activity, he/she should only see Exp B for other activities. We are trying to do this through Profile scripts however I do not see Activity.name or ID as available tokens for profile scripts, This information is available in response tokens however I am not sure if this can be passed as profile parameters to be used later. 

 

Any ideas or pointers on this would be greatly appreciated. 

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav_Singh_02

@raag_s As profile tokens run before response tokens are generated we may not utilize the response tokens for this use case. The options that I can think of is to use "adobe.target.trackEvent()".

 Use adobe.target.trackEvent(): You may try including a custom code within your Experience B and try capturing the activity details through this trackEvent call (Activity Name and Experience Name) :

<script>
adobe.target.trackEvent({"mbox":"NotificationCall", "params":{"activityName":"${activity.name}","activityExperience":"${campaign.recipe.name}","experienceId":"${campaign.id}","receipeId":"${campaign.recipe.id}"}});
</script>

 

Once these values are captured then you may utilize these details in the profile script and achieve your use case. Hope this helps.

1 reply

Gaurav_Singh_02Adobe EmployeeAccepted solution
Adobe Employee
July 19, 2021

@raag_s As profile tokens run before response tokens are generated we may not utilize the response tokens for this use case. The options that I can think of is to use "adobe.target.trackEvent()".

 Use adobe.target.trackEvent(): You may try including a custom code within your Experience B and try capturing the activity details through this trackEvent call (Activity Name and Experience Name) :

<script>
adobe.target.trackEvent({"mbox":"NotificationCall", "params":{"activityName":"${activity.name}","activityExperience":"${campaign.recipe.name}","experienceId":"${campaign.id}","receipeId":"${campaign.recipe.id}"}});
</script>

 

Once these values are captured then you may utilize these details in the profile script and achieve your use case. Hope this helps.

Level 2
November 16, 2021

How would you capture these details in a profile script? I'm unsure on what the syntax would be in the profile script to call each field, wasn't sure if there is some sort of prefix that needs to be assigned in the script to get each field. For example "target.activityName"

Robvienna1982
Level 2
September 5, 2022

Did you ever get a response or any reply to this? I have a similar Use Case and cant figure it out.