How can developers use a similar tracking link to Google's results page?

Posted by Peter Jones on Stack Overflow See other posts from Stack Overflow or by Peter Jones
Published on 2010-12-28T02:34:07Z Indexed on 2010/12/28 2:53 UTC
Read the original article Hit count: 304

I've read heaps of pages of people trying to implement some kind of tracking system similar to the way Google reroutes search link.

Eg: Search "Facebook" in Google, open in a new window, and the link changes to something like: "http://www.google.com.au/url?sa=t&source=web&cd=1&ved=0CBkQFjAA&url=http%3A%2F%2Fwww.facebook.com%2F&rct=j&q=Facebook&ei=sksZTZexJobJccXnxZYK&usg=AFQjCNHTTNi-O4Qgrg6kvGVfKJuRqbuOKw&cad=rja"

I'm guessing Google tracks that click and then redirects to the actual site by reading the url parameter.

What I wanted to know is if there was a simple way that you can make this kind of functionality work using an onclick event - just change the link href after being clicked to redirect?

There's a few threads, but from what I could find, nobody has actually succeeded without problems or limitations.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google