Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getLinkerUrl(url, hash){
- var tracker = _gat._getTrackerByName(''); // TODO: update this for your tracker config
- return tracker._getLinkerUrl(url, hash);
- }
- _gaq.push(function(){
- var tracker = _gat._getTrackerByName(''), // get default tracker
- a = document.getElementsByTagName('a'), l = a.length;
- while(l--){
- if(a[l].hostname != document.domain) // it's an external link; TODO: add other conditions
- a[l].href = tracker._getLinkerUrl(a[l].href);
- }
- });
Add Comment
Please, Sign In to add comment