I'm trying to find the most exhaustive / compatible solution to track some links inside my website.
Actually, I've this code:
$(".article-content a").each(function() {
$(this).click(function() {
// Tracking code here
});
});
Is there any recommandations regarding real user redirection handling ? I think we have to firstly exclude right-click ? And also be sure that Ctrl-Click, MouseWheel-Click, Touch events, Navigation by keyboard, etc... are properly handled to fire, for example a GA event ?