Filter Google Analytics affiliate / outbound links tracking

Since SEOPress 2.6

function sp_gtag_outbound_tracking_ev($html) {
return "jQuery(document).ready(function() {
 jQuery('a').filter(function() {
 return this.href.match(/(?:\/".seopress_google_analytics_affiliate_tracking_option()."\/)/gi);
 }).click(function(e) {
 gtag('event', 'click', {'event_category': 'outbound/affiliate','event_label' : this.href});
 });
});
";
}
add_filter('seopress_gtag_outbound_tracking_ev', 'sp_gtag_outbound_tracking_ev');