function trackOutboundClick(e) { var $link = $(e.currentTarget); var url = $link.attr('href'); var target = $link.attr('target'); ga('send', 'event', 'outbound', 'click', url, { 'hitCallback': function() { if (target !== '_blank') { document.location = url; } } }); }

Books

Books