Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

javascript - 为什么Google +1会记录我的鼠标动作? [关闭](Why does Google +1 record my mouse movements? [closed])

This is only on pages with a Google +1 box on my website:(这仅适用于我网站上包含Google +1信箱的网页:)

在此输入图像描述

It seems to be firing off an event on every mouse move.(它似乎是在每次移动鼠标时触发事件。)

Anyone know what it is doing?(有谁知道它在做什么?) I searched on Google (perhaps I should try Bing for once on this one!) but no one seems to have written about it.(我在Google上搜索过(也许我应该在这个上尝试过Bing一次!)但似乎没有人写过这篇文章。) Is it recording information about my visitors browsing habits?(它是否记录了我的访客浏览习惯的信息?) Is it some sort of CAPTCHA to detect human like behviour?(是否有某种类型的CAPTCHA来检测像人类一样的人类?)

Example URL, press F12 in chrome, go to timeline and press record, then move your mouse around this page (it plus ones this question, don't worry):(示例URL,在chrome中按F12,转到时间轴并按下记录,然后在此页面上移动鼠标(加上这个问题,不用担心):)

https://plusone.google.com/u/0/_/+1/button?hl=en-US&jsh=r%3Bgc%2F22224365-adc8a19e#url=https://stackoverflow.com/questions/6667544/google-1-recording-mouse-move&size=tall&count=true&id=I1_1310488711647&parent=https://plusone.google.com/u/0/_/+1/button?hl=en-US&jsh=r%3Bgc%2F22224365-adc8a19e#url=https://stackoverflow.com/questions/6667544/google-1-recording-mouse-move&size=tall&count=true&id=I1_1310488711647(https://plusone.google.com/u/0/_/+1/button?hl=en-US&jsh=r%3Bgc%2F22224365-adc8a19e#url=https://stackoverflow.com/questions/6667544/google -1录音的鼠标移动和大小=身高&计数=真&ID = I1_1310488711647与父= HTTPS://plusone.google.com/u/0/_/+1/button HL = EN-US&JSH = R%3Bgc%2F22224365-adc8a19e# URL = HTTPS://stackoverflow.com/questions/6667544/google-1-recording-mouse-move&size=tall&count=true&id=I1_1310488711647)

For what it's worth (I can see this is going to be a popular question), I don't think there is anything sinister behind it, it might even be a useless artifact/bug, but if it is doing some sort of tracking, well, it seems a little deceptive to me.(对于它的价值(我可以看到这将是一个流行的问题),我不认为它背后有什么阴险,它甚至可能是一个无用的工件/错误,但如果它正在进行某种跟踪,好吧,这似乎有点欺骗我。)

Google +1 privacy policy(Google +1隐私政策)

http://www.google.com/intl/en/privacy/plusone/(http://www.google.com/intl/en/privacy/plusone/)

Google +1 Button Privacy Policy(Google +1按钮隐私权政策)

June 28, 2011(2011年6月28日)

The Google Privacy Policy describes how we treat personal information when you use Google's products and services, including information provided when you use the Google +1 button.(Google隐私权政策介绍了在您使用Google的产品和服务时我们如何处理个人信息,包括您在使用Google +1按钮时提供的信息。)

In addition, the following describes our additional privacy practices specific to your use of the +1 button.(此外,以下内容介绍了我们针对您使用+1按钮的其他隐私惯例。)

Information we collect and how it is shared(我们收集的信息以及如何共享)

The Google +1 button is a way for you to share information publicly with the world.(Google +1按钮是您与全世界公开分享信息的一种方式。)

The Google +1 button helps you and others receive personalized content from Google and our partners.(Google +1按钮可帮助您和其他人从Google及其合作伙伴处获得个性化内容。) The fact that you +1'd something will be recorded by Google, along with information about the page you were viewing when you clicked on the +1 button.(Google会记录您为+1记录的事实,以及您点击+1按钮时所查看的页面的相关信息。) Your +1's may appear to others as an annotation with your profile name and photo in Google services (such as in search results or on your Google Profile) or elsewhere on websites and ads on the Internet.(您的+ 1可能会在其他人看来是在Google服务中使用您的个人资料名称和照片(例如搜索结果或Google个人资料)或互联网上的网站和广告上的其他地方。)

We will record information about your +1 activity in order to provide you and other users with a better experience on Google services.(我们会记录您的+1活动信息,以便为您和其他用户提供更好的Google服务体验。)

In order to use the Google +1 button, you need to have a public Google Profile visible to the world, which at a minimum includes the name you chose for the profile.(要使用Google +1按钮,您需要向全世界展示公开的Google个人资料,其中至少包含您为个人资料选择的名称。)

That name will be used across Google services and in some cases it may replace another name you've used when sharing content under your Google Account.(该名称将在Google服务中使用,在某些情况下,它可能会替换您在Google帐户下共享内容时使用的其他名称。) We may display your Google Profile identity to people who have your email address or other identifying information.(我们可能会向拥有您的电子邮件地址或其他识别信息的人显示您的Google个人资料身份。)

Use of the collected information(使用收集的信息)

In addition to the above-described uses, the information you provide to us is used subject to our main Google Privacy Policy.(除上述用途外,您提供给我们的信息均受我们的主要Google隐私权政策的约束。)

We may share aggregate statistics related to users' +1 activity with the public, our users, and partners, such as publishers, advertisers, or connected sites.(我们可能会与公众,我们的用户和合作伙伴(如发布商,广告客户或关联网站)共享与用户+1活动相关的汇总统计信息。)

For example, we may tell a publisher that “10% of the people who +1'd this page are in Tacoma, Washington.”(例如,我们可能会告诉发布商“在本页面上为此页面添加1%的人中有10%位于华盛顿州塔科马市。”)

Your choices(你的选择)

You may view the list of items you have +1'd on the +1 tab on your Profile.(您可以在个人资料的+1标签上查看自己拥有的项目列表+ 1。)

You can remove individual items from that list.(您可以从该列表中删除单个项目。)

You may opt out of seeing +1 recommendations on third-party websites (including on ads on third-party sites) from people you know.(您可以选择不从您认识的人那里看到第三方网站上的+1推荐(包括第三方网站上的广告)。)

We will store data (such as your recent +1's) locally in your browser.(我们将在您的浏览器中本地存储数据(例如您最近的+1)。)

You may be able to access and clear this information in your browser settings.(您可以在浏览器设置中访问和清除此信息。)

More information(更多信息)

Google adheres to the US Safe Harbor privacy principles.(Google遵守美国安全港隐私权原则。)

For more information about the Safe Harbor framework or our registration, see the Department of Commerce's website.(有关安全港框架或我们的注册的更多信息,请访问美国商务部的网站。)
  ask by Tom Gullen translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It appears to be seeding a random number generator with your mouse movements.(它似乎是用鼠标移动播种随机数生成器。)

The mouse move handler itself does something along the lines of the following:(鼠标移动处理程序本身可以执行以下操作:)

var b = ((event.X << 16) + event.Y) * (new Date().getTime() % 1000000);
c = c * b % d;
if (previousMouseMoveHandler) previousMouseMoveHandler.call(arguments);

d is (screen.width * screen.width + screen.height) * 1000000 , and c is a variable that starts out as 1.(d(screen.width * screen.width + screen.height) * 1000000c是一个以1开头的变量。)

All of this is wrapped in the scope of an anonymous function, which itself is immediately evaluated to return a function that is assigned to a property named "random".(所有这些都包含在匿名函数的范围内,该函数本身立即被评估以返回分配给名为“random”的属性的函数。)

That returned function looks something like this:(返回的函数看起来像这样:)
var b = c;
b += parseInt(hash.substr(0,20), 16);
hash = MD5(hash);
return b / (d + Math.pow(16, 20));

hash , BTW, is a variable that starts out as the MD5 hash of the page's cookies, location, the new Date().getTime() , and Math.random() .(hash ,BTW,是一个变量,以页面的cookie,位置, new Date().getTime()Math.random()的MD5哈希开始。)

(Note, of course, that Google may change the script returned at any time and hence invalidate this analysis)((请注意,Google当然可以随时更改返回的脚本,从而使此分析无效))


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...