TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How Google tracks clicks for backpropagation

44 点作者 angilly超过 15 年前

6 条评论

monological超过 15 年前
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 未加载
gphil超过 15 年前
Anyone want to fill in a non-web programmer on what pixel-tagging is?
评论 #1081021 未加载
评论 #1080959 未加载
评论 #1081000 未加载
评论 #1080969 未加载
mikexstudios超过 15 年前
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>
agbell超过 15 年前
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')
goodness超过 15 年前
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.
nostrademons超过 15 年前
With HTML5 this can all go away with &#60;a ping=url ...&#62;. :-)
评论 #1082116 未加载