Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

Unable to get text out of the clickable event

Avatar

Community Advisor

I am facing a problem where I am trying to extract the text out of a clickable event. In adobe DTM I have a CSS selector (.cb-bar red) for my on click event rule and I have a prop associated with that event to capture the text out of that clickable link. This is a piece of code for which I wanted to capture text Exercise for every click on exercise link before it navigates to its final page <"/a/b/exercise">

 

code snippet.PNG

 

 

However, in adobe cloud debugger for every click, the triggered event is capturing the same value "Exercise" for all other different links names. Why this is happening. I have tried assigning my prop all the below js scripts but the problem still persists.

 

%this.innerHTML% 

%this.@text%

%target.innerHTML%

 

Any suggestions on this?

0 Replies