Skip to main content
Michael_Soprano
Level 10
August 25, 2026
Question

Web SDK - Target activity name in the event " decisioning.propositionDisplay "

  • August 25, 2026
  • 4 replies
  • 21 views

Web SDK sends to AEP such an event automatically:

decisioning.propositionDisplay

What is the easiest way to enrich such an event with Activity Name from Target?

4 replies

Gokul_Agiwal
Community Advisor
Community Advisor
August 25, 2026

Hey ​@Michael_Soprano 

The easiest way is to enable Target Response Tokens   and capture the Activity Name from the proposition metadata before the decisioning.propositionDisplay event is sent. Adobe exposes Target activity information in the proposition's meta object.  

 

In Target, Follow this path to enable response tokens 

Login to Adobe Target - > Click on Administration→ left side -  Click on Response Tokens - > 

From list, chose the response you want to see and activate it. 

 

Here is the example - how to access and sample code example via websdk 

https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/aep/accessing-response-tokens 

Hope this helps. 

Thanks, Gokul
Michael_Soprano
Level 10
August 25, 2026

Ok - I know response tokens 

https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/configure/onbeforeeventsend

And then the code like that in that onbeforeeventsend do you know the way to enrich sent xdm?

if (content.xdm.eventType === 'decisioning.propositionDisplay') {
  xdm enrich with target activity
}

Level 1
August 26, 2026

Yes, you can try this to check in console
 


if (content.xdm?.eventType === 'decisioning.propositionDisplay') {
  console.log('--- Full XDM Object ---', content.xdm);
  
}
if (content.xdm?.eventType === 'decisioning.propositionDisplay') {
  const propositions = content.xdm._experience?.decisioning?.propositions || [];

  propositions.forEach((prop) => {
    const activityId = prop.scopeDetails?.activity?.id;
    const experienceId = prop.scopeDetails?.experience?.id;
    const provider = prop.scopeDetails?.decisionProvider; 
    const scope = prop.scope;

    console.log(`[Target Match] Activity: ${activityId} | Experience: ${experienceId} | Scope: ${scope}`);
   
  });

}