var trackInternalLink = function(url, linkid) { ga('send', 'event', 'Intern', 'click', linkid, { 'hitCallback': function(){document.location = url;} }); } var trackOutboundLink = function(url, linkid) { ga('send', 'event', 'Extern', 'click', linkid, { 'transport': 'beacon', 'hitCallback': function(){document.location = url;} }); } /files/js/gaLinkTracking.js