Skip to main content

NC State News

/** * Function that tracks a click on an outbound link in Google Analytics. * This function takes a category, name, and valid URL string as an argument, * and uses the name as the event label. */ var trackOutboundLink = function(category, name, url) { ga('send', 'event', category, 'click', name, {'hitCallback': function () { document.location = url; } }); }