Hey, @angelad64963316 -
One easy way to do it would be to use the old doPlugins approach. Adding the following block of code to the "Configure Tracker Using Custom Code" section of the Adobe Analytics extension will evaluate every call to see if it is a download tracking call (s.linkType==="d"):
s.usePlugins = true;
s.doPlugins=function(s) {
// custom logic here
if(s.linkType && s.linkType === "d") {
s.eVar1 = s.linkURL.split("/").pop();
s.linkTrackVars += ",eVar1";
}
}
In short, if the call is a download tracking call (triggered automatically based on the file extension OR triggered manually using the "d" identifier in the s.tl() call), we grab the destination URL (s.linkURL), pop off the file info and store it in eVar1, then update s.linkTrackVars to ensure eVar1 is on the call.
That should be all there is to it.