The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Sneaky Google Link Tracking

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Obie Fernandez

Posts: 608
Nickname: obie
Registered: Aug, 2005

Obie Fernandez is a Technologist for ThoughtWorks
Sneaky Google Link Tracking Posted: Aug 18, 2005 8:02 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Obie Fernandez.
Original Post: Sneaky Google Link Tracking
Feed Title: Obie On Rails (Has It Been 9 Years Already?)
Feed URL: http://jroller.com/obie/feed/entries/rss
Feed Description: Obie Fernandez talks about life as a technologist, mostly as ramblings about software development and consulting. Nowadays it's pretty much all about Ruby and Ruby on Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Obie Fernandez
Latest Posts From Obie On Rails (Has It Been 9 Years Already?)

Advertisement

Anyone else noticed that Google is tracking when you click on search results? The sneakiness is in how their anchors behave. They have the normal HREF attribute, so when you mouse over the link you see the target URL normally in the status bar. However, those anchors also have a mousedown event handler that invokes the following Javascript function:

function rwt(el,cd,sg) {
   el.href="/url?sa=U&start="+escape(cd)+"&q="+escape(el.href).replace(/\+/g,"%2B")+"&ei=JMbcQta2DtCYQbWzqLII"+sg;
   el.onmousedown="";
   return true;
}

I don't think it is bad that they do that and I'm even thinking that a similar scheme could enable tracking outbound links in other web applications. For example, in Rails all URLs can/should be generated dynamically and a simple parameter could tag the links to be rewritten with a similar scheme that hit a redirect action, recording the user's outbound traversal.

Read: Sneaky Google Link Tracking

Topic: Web RSS Reader? Previous Topic   Next Topic Topic: #ChezTa_Mere

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use