I am building Launch Data Elements and a rule to capture modal-window opens on one of my sites.
I have a event to register the click that opens the modal, and in the Adobe Experience Cloud debugger I see the event, the link_o Link Type, and correct data in the Link Name and Link URL fields.
I'd also like to put the Name and URL into eVars.
I created the eVars in the Report Suite admin, and Data Elements in Launch.
For Link URL, for instance, I have this custom code in the data element:
return(s.linkURL);
and for Link Text (alot of html is coming in there between the <a> and </a>), so I'm trying
return(s.linkName.textContent);
And I use those elements to populate the eVars in the event Rule
However, I don't see this data in the debugger or in Reporting.
I should note that the links are selected based on a class ( there are many on the page) but Link Text and Link URL does populate correctly.
How can I transfer that data to two eVars? Thanks very much.