Tracking links is a form of tracking dinosaurs, because these days the numbers are hardly accurate unless you put analytics before starting to work with the user. I donβt understand why you are not measuring this on the next page instead of the link if you do not have control over the next step?
As for your question: the previous examples of how to prevent communication after the event execution are strong enough, but remember, if you have other JS code, be sure not to break it. As for the syntax, you can pass all variables to the s.tl function as an object without setting linkTrackVars and linkTrackEvents for the s-object, which can have negative consequences for events if you use the code on dynamic pages.
eg.
... var data = { linkTrackVars="prop11,events", linkTrackEvents="event6", prop11=keyword, events="event6" }; s.tl(this, "o", "Search", data, "navigate"); ...
Note. In fact, you cannot use details and events in standard reporting. According to the code that you insert in the comments on Crayon, I see that you are using eVars, so I assume that the example was not so accurate.
source share