Expand my Community achievements bar.

Check out the 3rd Edition of the AEP Community Lens for all the latest releases, resources, and Community updates

Unable to get text out of the clickable event

Avatar

Level 5

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