WEBSDK: Add xdm.web.webInteraction.name to automatic web.webInteraction.linkClicks | Community
Skip to main content
November 16, 2023
Question

WEBSDK: Add xdm.web.webInteraction.name to automatic web.webInteraction.linkClicks

  • November 16, 2023
  • 4 replies
  • 1169 views

Hello everyone,

 

We are currently using "Click data collection" to track links automatically. However, we would like to add the page name and a custom dimension, which are available as data elements, to the network call. I have attempted to add them using this code in "On before link click send callback," but haven't succeeded.

 

Can someone help me out here? Am I in the right place for this? 

 

Thank you.

 

 

 

 

 

if (content.clickedElement /* add any other conditions you need */) { content.xdm.web.webInteraction.name = _satellite.getVar('pageName'); content.xdm.CustomDimensions.Evars.eVar1 = _satellite.getVar('pageName'); }

 

 

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

4 replies

mikipkAuthor
November 19, 2023

Any good samaritan? 🙂

Adobe Employee
January 30, 2024

Unfortunatly this is not possible, look here:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-data/can-you-manually-set-analytics-events-evars-in-sdk-event/m-p/609895#M6205

 

in any case, it should be

content.xdm._experience.analytics.customDimensions.eVars.eVar1

but it's not available

samhollingshead
February 19, 2024

Hello @mikipk is this still an issue for you?

samhollingshead
February 20, 2024

@mikipk @mauriziocoroadobe I have posted a solution to this on another post, hopefully you find it useful, you can find this within the comments section🙂

 

Solved: Re: Can you manually set Analytics events/eVars in... - Adobe Experience League Community - 609895