TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How Google tracks clicks for backpropagation

44 pointsby angillyover 15 years ago

6 comments

monologicalover 15 years ago
HN does something similar. When you up/down vote something, it creates a new js Image object and sets the src to the HN site, which then pings the server. No need for ajax.<p>&#60;code&#62; var score = byId('score_' + item); var newscore = parseInt(score.innerHTML) + (v[0] == 'up' ? 1 : -1); score.innerHTML = newscore + (newscore == 1 ? ' point' : ' points');<p><pre><code> // hide arrows byId('up_' + item).style.visibility = 'hidden'; byId('down_' + item).style.visibility = 'hidden'; // ping server var ping = new Image(); ping.src = node.href;</code></pre> &#60;/code&#62;
评论 #1082019 未加载
gphilover 15 years ago
Anyone want to fill in a non-web programmer on what pixel-tagging is?
评论 #1081021 未加载
评论 #1080959 未加载
评论 #1081000 未加载
评论 #1080969 未加载
mikexstudiosover 15 years ago
Here's another blog post with even more information on what parameters are being sent to Google during the click: <a href="http://www.razzed.com/2009/02/12/analysis-of-google-outbound-link-tracking/" rel="nofollow">http://www.razzed.com/2009/02/12/analysis-of-google-outbound...</a>
agbellover 15 years ago
If you are logged into Google, it sends more info using a different function<p>For Example: return rwt(this,'','','res','1','AFQjCNEdw7LJgOmjlxPAZ-jF7e3aPy1bbQ','&#38;sig2=D3Wg-V0MDjmRS-gqjk66rA','0CAkQFjAA')
goodnessover 15 years ago
Did this just change or something? Earlier today I did a search and copied the URL and it was something like <a href="http://www.google.com/url?url=http%3A%2F%2F.." rel="nofollow">http://www.google.com/url?url=http%3A%2F%2F..</a>. But just now when I tried to duplicate it, I didn't get that. Weird.
nostrademonsover 15 years ago
With HTML5 this can all go away with &#60;a ping=url ...&#62;. :-)
评论 #1082116 未加载