I don't know if this is too technical for this forum, but here goes. Would Google see the following link and count it as a backlink for www.xyz.com, assuming the link is on www.zyx.com: <a href="http://www.xyz.com" onclick="window.open('http://www.zyx.com/go.php?u=http://www.xyz.com'); return false;">XYZ.COM</a> Code (markup): In essence, the href is pointing to www.xyz.com, but the javascript tells the browser to open a new window with a page from zyx.com instead. Reason for the question: I'd like to track the clicks, but also give backlink credit to the site I'm linking to.
Yes it would, because Google won't be reading the javascript - and even when it does the others will lag behind. Check out my onclick experiment