Google托管的jquery是否可以帮助Google跟踪访问者? [英] Does google-hosted jquery helps google to track visitors?

查看:95
本文介绍了Google托管的jquery是否可以帮助Google跟踪访问者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在网站上放置了Google的一项服务,例如谷歌分析,谷歌+,+ 1,YouTube嵌入式视频等...基本上,您允许谷歌(或其他公司提供其他服务)跟踪访问者的网站:Google会知道谁访问了您的网站.

If you put, on your web site, one of google's services such that google analytics, google+, +1, youtube embedded video, etc... Basicaly you allow google (or other company for other services) to track the visitor of your website: Google will know who goes on your website.

我的问题是:如果您使用存储在google服务器上的jquery文件(请参见上文),是否还允许google跟踪您的用户?

My question is: if you use the jquery files stored on google's server (see above), do you also allow google to track your users?

<脚本type ="text/javascript" src ="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js">

< script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js">

在这种情况下,我不确定Google是否可以知道查询jquery文件的访问者正在访问您的网站.

In this situation, I am not sure that google can know that the visitor that query the jquery files is visiting your website.

推荐答案

好吧,使用http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js的主要原因之一是由于缓存:

Well, one of the main reasons to use http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js is because of caching:

无论用户访问哪个站点,当浏览器看到对Google托管的jQuery副本的引用时,它都会理解所有这些引用确实引用了完全相同的文件.由于所有站点都具有由Google托管的指向完全相同的URL的引用,因此浏览器可以相信这些文件确实是相同的,并且如果文件已经被缓存,则不会浪费时间重新请求文件.因此,浏览器能够使用磁盘上缓存的单个副本.

No matter what site a user visits, when the browser sees the reference to the google-hosted copy of jQuery, it understands that all of those references do refer to the exact same file. With all sites having google-hosted references pointing to exactly the same URLs, the browser can trust that those files truly are identical and won't waste time re-requesting the file if it's already cached. Thus, the browser is able to use a single copy that's cached on-disk.

还有更多关于此主题的stackoverflow问题,例如 this .

There are more stackoverflow questions about this subject, for example this and this.

关于跟踪,我想是的.当用户浏览器向Google的服务器发送请求时,Google会获取用户浏览器标头,其中可能包含引荐来源网址字段,其IP以及该域的所有剩余跟踪Cookie.但是,正如所说的那样,由于会缓存google CDN内容,因此它对于跟踪目的不是很有效,因为他们只会知道有人第一次下载该库.

About the tracking, I guess so. When the users browser sends a request to google's server, google will get the users browser headers, which probably will contain a referrer field, his IP, and any leftover tracking cookies for that domain. However, as said because the google CDN stuff gets cached, it not very effective for tracking purposes, as they will only know about the first time someone downloads the library.

这篇关于Google托管的jquery是否可以帮助Google跟踪访问者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆