Response Tokens with Web SDK | Community
Skip to main content
Michael_Soprano
Level 10
February 1, 2026
Solved

Response Tokens with Web SDK

  • February 1, 2026
  • 1 reply
  • 20 views

In the documentation its explained that we can use response tokens like that:

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

alloy("sendEvent", {
renderDecisions: true,
xdm: {}
}).then(function(result) {
if (result.propositions) {
// Manually render propositions
}
});
  1. I want to use Response Tokens to sent them to GA4 about Target activity
  2. My rule with Page View looks as follows and the Activities created using VEC editor and rendered automatically 
  1. Sending Event with XDM structure
  1. How to apply propositions using Actions not the custom code? 
  1. Or I am supposed to use separate rule with Send Event complete? 
Best answer by bjoern__koth

Do you have Launch Server-side?

You can automatically collect clicks in your Target activities if they show “data-AEP-click-label” attributes which resembles the classic Adobe Analytics activity map, respectively A4T interaction tracking. 
If you have Launch SSF, you can hook up to that click event  if you don't, you will have to implement clicks on the elements yourself.

 

https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/configure/autocollectpropositioninteractions#:~:text=The%20autoCollectPropositionInteractions%20property%20is%20an,%22:%20%22never%22%7D%20.&text=Adobe%20Journey%20Optimizer.&text=Adobe%20Target.&text=Always%20automatically%20collect%20interact%20events%20for%20any%20elements%20associated%20with%20a%20proposition.&text=Never%20automatically%20collect%20interact%20events%20for%20elements%20associated%20with%20a%20proposition.&text=decoratedElementsOnly-,Automatically%20collect%20interact%20events%20for%20elements%20associated%20with%20a%20proposition,specifying%20a%20label%20or%20token.

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 2, 2026

The send event complete only works with the send event extension action, and not with custom code.

if you want to use custom code, you will need to apply the propositions via code as well as documented in your link

Cheers from Switzerland!
Michael_Soprano
Level 10
February 2, 2026

@bjoern__koth thanks!

Send event complete works when VEC activity was rendered. Then I can sent response tokens to GA4.

However how would you approach case like that:

  1. VEC Activity is automatically rendered
  2. User clicked personalized activity 
  3. How to forward that click with Web SDK to GA4
bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 3, 2026

Do you have Launch Server-side?

You can automatically collect clicks in your Target activities if they show “data-AEP-click-label” attributes which resembles the classic Adobe Analytics activity map, respectively A4T interaction tracking. 
If you have Launch SSF, you can hook up to that click event  if you don't, you will have to implement clicks on the elements yourself.

 

https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/configure/autocollectpropositioninteractions#:~:text=The%20autoCollectPropositionInteractions%20property%20is%20an,%22:%20%22never%22%7D%20.&text=Adobe%20Journey%20Optimizer.&text=Adobe%20Target.&text=Always%20automatically%20collect%20interact%20events%20for%20any%20elements%20associated%20with%20a%20proposition.&text=Never%20automatically%20collect%20interact%20events%20for%20elements%20associated%20with%20a%20proposition.&text=decoratedElementsOnly-,Automatically%20collect%20interact%20events%20for%20elements%20associated%20with%20a%20proposition,specifying%20a%20label%20or%20token.

Cheers from Switzerland!