I'm trying to capture the an anchor link's text and href and pass them into an evar. I've successfully created the event to capture when a visitor clicks a link, however I'm having trouble setting the values in the Analytics call. The s.linkType and s.linkName fire correctly but my props, events and evars are not applied to the s.tl() request.
Set Launch Var Code
var turl = this.href.toLowerCase();
var ttext = this.text.trim().toLowerCase();
var tsection = 'body';
s.linkTrackEvents = "event15";
s.linkTrackVars = "prop6,eVar16";
s.eVar16 = s.prop6 = [tsection, ttext, turl].join('|');
s.events = "event15";
The console shows that s.eVar16 contains the value I want to see (e.g., 'body|add to cart|/shop/parts.html') but when I look in the Experience Cloud Debugger none of the props, evars or events have been assigned to the link click.
What am I missing?