Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Tracking links without confusing Google

Can JavaScript redirect?

         

StuffOfInterest

3:08 pm on Mar 31, 2005 (gmt 0)

10+ Year Member



I would like to start tracking outbound link clicks on a website. From everything I've read, the old method of doing it with something like

href="/jump.php?http://somesite.com"

can foul up Google's tracking of outbound links. How about using a bit of JavaScript to redirect the click through another page which would do the counting before doing a redirect to the original URL? On the outbound URL side, all this should take is adding in

onClick="this.href=LinkTrack(this.href);"

to the link tag.

By my figuring, spiders and those with JavaScript disabled will be taken straight through to the URL. Those with JavaScript will end up at the listing URL after a transparent detour through the link tracker.

Does anyone think Google (and other search engines) will notice this and penalize it? By the broadest definition it seems this could be considered cloaking links, but I hope not.