Share This
//Track Outbound Link Clicks (function trackOutbounds() { var hitCallbackHandler = function(url,win) { if (win) { window.open(url, win); } else { window.location.href = url; } }; var addEvent = function(el, eventName, handler) { if (el.addEventListener) { el.addEventListener(eventName, handler); } else { el.attachEvent('on' + eventName, function(){ handler.call(el); }); } } if (document.getElementsByTagName) { var el = document.getElementsByTagName('a'); var getDomain = document.domain.split('.').reverse()[1] + '.' + document.domain.split('.').reverse()[0]; // Look thru each a element for (var i=0; i