Forward to GA4 Target activity click data in Web SDK | Community
Skip to main content
Michael_Soprano
Level 10
February 9, 2026
Question

Forward to GA4 Target activity click data in Web SDK

  • February 9, 2026
  • 1 reply
  • 6 views
  1. I use the functionality in Web SDK extension “On before event send callback” and put there in order to catch when specific Target experience was clicked. I want to forward this data to Google Analytics 4:

if (content.xdm && content.xdm.eventType === 'decisioning.propositionInteract') {
  const proposition = content.xdm._experience.decisioning.propositions;
  console.log('propozycja', proposition)
}

  1. Something like that is logged after specific experiences is clicked on the website to the console: 
  1. Unfortunately there is only “Activity ID” available. Not the “Activity Name”, even though I turned on specific response tokens. 

Any ideas? 

1 reply

Gokul_Agiwal
Community Advisor
Community Advisor
February 9, 2026

Hi ​@Michael_Soprano  

Target response tokens (including activity.name) are delivered in the personalization response, and in Web SDK they are exposed on the returned propositions/items, typically under item.meta 

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

As you’ve enabled the response token for activity name then you can cross check whether its working properly in network call or log in console. 


alloy("sendEvent", { renderDecisions: true }).then((result) => {
console.log("propositions", result.propositions);
});

Hope this helps.