# Google is watching me (even more than I thought they were).

**URL:** <https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411>\
**Category:** Miscellaneous and Personal Stuff I Must Share\
**Created:** [June 11, 2009, 3:19am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411 "2009-06-11T03:19:15Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![cardinal\_fang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cardinal_fang/32/15316_2.png) [@cardinal\_fang](https://boards.straightdope.com/u/cardinal_fang)\
**Post date:** [June 11, 2009, 3:19am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/1 "2009-06-11T03:19:15Z")

</div>

Huh. I can’t believe I never noticed this before.

Scenario:  
[ol]  
[li]Search Google with your favourite keyword(s).[/li][li]Hover over one of the search result links.[/li][li]Note the target URL in the status bar at the bottom of the browser.[/li][li]While looking at the URL, click and hold on the search result (click, but do not release), or right click on it.[/li][li]Does the URL change?[/li][/ol]  
I can reproduce this in UNIX versions of Firefox (Solaris and Linux), but not on Windows in either IE or Firefox.

Google is using JavaScript wrappers to track click-throughs, even if you are not logged in or accepting cookies.

Not surprising, I suppose, and maybe not even very interesting unless you’re a privacy- or tech-type person, but at the very least, mundane and pointless.

---

<div class="post-metadata">

**Author:** ![Hunter\_Hawk](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@Hunter\_Hawk](https://boards.straightdope.com/u/Hunter_Hawk)\
**Post date:** [June 11, 2009, 6:20am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/2 "2009-06-11T06:20:24Z")

</div>

> [@cardinal\_fang](#):
>
> I can reproduce this in UNIX versions of Firefox (Solaris and Linux), but not on Windows in either IE or Firefox.

Well, whaddaya know…I never noticed that. It repros for me on XP using FF.

OTOH, Bing (the Microsoft search engine) doesn’t seem to do this.

---

<div class="post-metadata">

**Author:** ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)\
**Post date:** [June 11, 2009, 7:21am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/3 "2009-06-11T07:21:33Z")

</div>

I’m not sure I understand you…the status bar shows the exact url of the site that the link I’m hovering over leads to. Nothing changes when I hold click on it.

I’m using Safari and Chrome on Mac.

---

<div class="post-metadata">

**Author:** ![cardinal\_fang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cardinal_fang/32/15316_2.png) [@cardinal\_fang](https://boards.straightdope.com/u/cardinal_fang)\
**Post date:** [June 11, 2009, 11:24am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/4 "2009-06-11T11:24:45Z")

</div>

> [@Red\_Barchetta](#):
>
> I’m not sure I understand you…the status bar shows the exact url of the site that the link I’m hovering over leads to. Nothing changes when I hold click on it.
> 
> I’m using Safari and Chrome on Mac.

I just tried it using Safari on a Mac and could not reproduce it either, but was able to do so using Firefox.

The address tags in the search results include a mousedown event handler that looks something like this\*:

onmousedown=“return rwt(this,‘’,‘’,‘res’,‘1’,‘AIFHJdiwoUyhgt9SKSKObD8DJNZA5oDId’,‘’)”

The derived URL ends up looking like this\*:

> **[Redirect Notice](http://www.google.com/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFlapjack&ei=IGbdiEjKLDIraHNkiFDl&rct=j&q=flapjacks&usg=AIFHJdiwoUyhgt9SKSKObD8DJNZA5oDId)**

The long string argument (encoded as the “usg” parameter in the tracking URL) differs for each search result. The search query (“flapjacks”) and various other bits are added, as is a “global” string (“ei”) which remains consistent across all results (but changes for each search).

A cursory review of the JavaScript is interesting; function a(), for example, is invoked from the click callbacks, and calls various timer-related methods (I suspect that Google not only knows which link you clicked on, but how long you dithered before doing so).

I may dig deeper if a bundle of spare time falls from space and lands on me. I presume others have already reverse-engineered the JS, but I have not found anything after a quick search.

The bothersome thing is that, as **Red Barchetta** mentions, hovering over the links shows the target URL, leading one to believe that clicking on it loads the destination site directly (instead of redirecting you to Google via JavaScript gymnastics). A little too wily for me.

- I changed the strings in case any identifying information is encoded in them and someone understands the secret soup. Am I paranoid? Why, yes. Yes I am.

---

<div class="post-metadata">

**Author:** ![cardinal\_fang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cardinal_fang/32/15316_2.png) [@cardinal\_fang](https://boards.straightdope.com/u/cardinal_fang)\
**Post date:** [June 11, 2009, 11:31am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/5 "2009-06-11T11:31:09Z")

</div>

“Grammer.” Nice. :smack:

---

<div class="post-metadata">

**Author:** ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)\
**Post date:** [June 11, 2009, 5:28pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/6 "2009-06-11T17:28:34Z")

</div>

Well, I just tried it on my work computer with Chrome and IE 6, and neither exhibited the behavior you saw…is there anything else on your computer perhaps causing it? Google Toolbar? Spyware, maybe?

---

<div class="post-metadata">

**Author:** ![cardinal\_fang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cardinal_fang/32/15316_2.png) [@cardinal\_fang](https://boards.straightdope.com/u/cardinal_fang)\
**Post date:** [June 11, 2009, 6:00pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/7 "2009-06-11T18:00:18Z")

</div>

> [@Red\_Barchetta](#):
>
> Well, I just tried it on my work computer with Chrome and IE 6, and neither exhibited the behavior you saw…is there anything else on your computer perhaps causing it? Google Toolbar? Spyware, maybe?

Definitely not spyware on Solaris. I do not have Google toolbar installed.

I was unable to reproduce on IE as well (I don’t have Chrome). Do you have access to Firefox by any chance? I _was_ able to reproduce on FF in Windows after all (like **Hunter Hawk** ) by searching from Google’s front page (vs. the search box on my browser toolbar).

The JavaScript more or less confirms why I am seeing it. Probably a browser artifact on whether the status bar is updated on onmousedown events.

---

<div class="post-metadata">

**Author:** ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)\
**Post date:** [June 11, 2009, 6:23pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/8 "2009-06-11T18:23:52Z")

</div>

Just tried Firefox too–nothing.

---

<div class="post-metadata">

**Author:** ![Dragwyr](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dragwyr/32/2855_2.png) [@Dragwyr](https://boards.straightdope.com/u/Dragwyr)\
**Post date:** [June 11, 2009, 6:38pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/9 "2009-06-11T18:38:33Z")

</div>

I’m not getting it here on my XP/Firefox 3 system either.

---

<div class="post-metadata">

**Author:** ![cardinal\_fang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cardinal_fang/32/15316_2.png) [@cardinal\_fang](https://boards.straightdope.com/u/cardinal_fang)\
**Post date:** [June 11, 2009, 8:20pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/10 "2009-06-11T20:20:34Z")

</div>

Hmm. Weird. Only thing I can think of is that (for me at least) it does not work if the initial search is performed from the browser search box, only from the Google home page. Did you search directly from [http://www.google.com/](http://www.google.com/) ?

All of my FF versions are 3.10, FWIW.

---

<div class="post-metadata">

**Author:** ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)\
**Post date:** [June 11, 2009, 8:34pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/11 "2009-06-11T20:34:58Z")

</div>

> [@cardinal\_fang](#):
>
> Hmm. Weird. Only thing I can think of is that (for me at least) it does not work if the initial search is performed from the browser search box, only from the Google home page. Did you search directly from [http://www.google.com/](http://www.google.com/) ?

All of my searches were from their homepage.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [June 11, 2009, 8:38pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/12 "2009-06-11T20:38:22Z")

</div>

Well, I’m getting it, anyway. Firefox on Windows XP.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [June 12, 2009, 3:00am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/13 "2009-06-12T03:00:39Z")

</div>

Well, they could make it where the JavaScript only kicks in if you don’t accept cookies. It wouldn’t be hard. Just send a cookie, check for that self-same cookie, and if it isn’t there, offer search results with JavaScript.

But they don’t. Tracking you isn’t the primary purpose. I’m pretty sure collecting the information you are pointing out has something to do with how the search algorithm works. If more people searching for a particular subject click on a particular link, it gets moved up.

Oh, and it is there on every browser. It’s just that some don’t note the URL change. On every computer I’ve had, trying to copy-and-paste the URL by right-clicking produces a link-through, instead of the URL I want.

[SquiggleSR](https://addons.mozilla.org/en-US/firefox/addon/5986), an add-on for Firefox, helps diffuse the privacy concerns, if you are interested. There might be other add-ons that might help, too.

---

<div class="post-metadata">

**Author:** ![Sunspace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sunspace/32/1250_2.png) [@Sunspace](https://boards.straightdope.com/u/Sunspace)\
**Post date:** [June 12, 2009, 3:08am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/14 "2009-06-12T03:08:53Z")

</div>

I’m getting this behaviour from the browser search field. I’m using Firefox on Unix (Mac OS X 10.5 on Intel hardware).

Have you enabled Javascript from Google? Mine was enabled (from google.ca), and I just disabled it and tried it again and it didn’t do it this time.

---

<div class="post-metadata">

**Author:** ![74westy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/74westy/32/3950_2.png) [@74westy](https://boards.straightdope.com/u/74westy)\
**Post date:** [June 12, 2009, 4:55pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/15 "2009-06-12T16:55:03Z")

</div>

I can’t reproduce this on my computer. Firefox on XP. The source for google results contains onmousedown=“return clk(this.href,’’,’’,‘res’,‘1’,’’)” (empty string instead of long random looking string)

---

<div class="post-metadata">

**Author:** ![Gus\_Gusterson](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@Gus\_Gusterson](https://boards.straightdope.com/u/Gus_Gusterson)\
**Post date:** [June 12, 2009, 5:03pm UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/16 "2009-06-12T17:03:25Z")

</div>

Google made this change because they are moving toward being an Ajax-based site. When they’re done, they will be able to update just the portion of the page showing the search results while leaving everything else the same. This change to the way links in the results work was necessary to keep the referrer information available to the site you visit through the link.

You can read about it [here](http://analytics.blogspot.com/2009/04/upcoming-change-to-googlecom-search.html). The stuff about why is found in the comments, specifically this one:

> [@](#):
>
> Google has been experimenting with Ajax (JavaScript) based search results. The problem with this initially was that no referrer information was passed, “breaking” the ability of Web Analytics tools to track search referrals.
> 
> Google has since found a work-around, which results in the new referrer Url.
> 
> One nice enhancement is to pass the search results position, the cd= parameter.
> 
> Google’s Matt Cutts says the move from basic html to JavaScript is to improve the speed of search results rendering.

---

<div class="post-metadata">

**Author:** ![cardinal\_fang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cardinal_fang/32/15316_2.png) [@cardinal\_fang](https://boards.straightdope.com/u/cardinal_fang)\
**Post date:** [June 13, 2009, 3:31am UTC](https://boards.straightdope.com/t/google-is-watching-me-even-more-than-i-thought-they-were/499411/17 "2009-06-13T03:31:20Z")

</div>

> [@Gus\_Gusterson](#):
>
> Google made this change because they are moving toward being an Ajax-based site. When they’re done, they will be able to update just the portion of the page showing the search results while leaving everything else the same. This change to the way links in the results work was necessary to keep the referrer information available to the site you visit through the link.
> 
> You can read about it [here](http://analytics.blogspot.com/2009/04/upcoming-change-to-googlecom-search.html). The stuff about why is found in the comments, specifically this one:

Thanks, **Gus**. I think you nailed it. I have referrers turned off. I tried turning them on and did _not_ see the behaviour. Anyone else? Explains why I have not noticed it before.

**BigT** , I am sure you are right. Search result optimisation is a key component of their voodoo. I concur that it is every browser – the JS is there. Thanks for the link.

I am not overly-concerned from a privacy perspective. The fact that they are obscuring this behaviour is kind of odd, though. They can just make the href parameter the frankenlink and be done with it. The loss of right-click-copy-and-paste is a pain, though.
