Can someone tell me the best way to track outgoing links from my site?
var trackImg = new Image()
trackImg.src = "/record_stat?id="+id;
And the link calls the following:
" onmousedown="return clk('1')">Link</a>
Now this works fine on my local host but when I put it live on server it only works the odd time.
Must be something to do with the page following the href location before creating the JS image (I think) but what is the best way to do it? (I think this is even the way Google tracks links)
Thanks for your help.