Template:Gatracker
From Documentation
$(function () {
function handleOutboundLinkClicks(event) { ga('send', 'event', { eventCategory: 'Outbound Link', eventAction: 'click', eventLabel: event.target.href }); }
$('.galink').each(function(each){each.find('a').click(function(event){handleOutboundLinkClicks(event)}); }());