Google Analytics如何知道我们使用的是哪种互联网连接?

时间:2022-09-09 15:14:45

In Google Analytics there is one option to know the connection information about the client access. I think everyone knows about this, but my question is how the Javascript knows these details?

在Google Analytics中,有一个选项可以了解有关客户端访问的连接信息。我想每个人都知道这一点,但我的问题是Javascript如何知道这些细节?

Am not talking about the IP or http/https suppose am using TATA Indicom, or cable connection for the use of Internet.

我不是在谈论IP或http / https,假设我正在使用TATA Indicom或使用Internet连接电缆。

how google know about this??

谷歌怎么知道这个?

3 个解决方案

#1


Javascript doesn't. Javascript can't provide Google your IP address.

Javascript没有。 Javascript无法向Google提供您的IP地址。

Google then uses your IP address to analyze the network you're on and then provide the details to the Analytics users (of course, it's not always 100% accurate...but that's a given).

然后,Google会使用您的IP地址来分析您所在的网络,然后向Google Analytics用户提供详细信息(当然,它并非总是100%准确......但这是给定的)。

#2


Javascript doesn't. That's done at google's end. It looks up who the requester's IP is registered to.

Javascript没有。这是在谷歌结束时完成的。它查找请求者的IP注册者。

#3


When you load the javascript from google's server, then they have your external IP address. If you are at work and all the traffic most likely goes through a firewall, then they have the IP of the firewall and not the IP address that the internal network hands out.

当您从谷歌的服务器加载JavaScript时,他们有您的外部IP地址。如果您在工作并且所有流量最有可能通过防火墙,那么它们具有防火墙的IP而不是内部网络发布的IP地址。

There's a sysytem on how IP addresses are allocated which is partly how they can do rudimentary geolocation for you stats.

有一个关于如何分配IP地址的系统,这部分是他们如何为你的统计数据做基本的地理定位。

#1


Javascript doesn't. Javascript can't provide Google your IP address.

Javascript没有。 Javascript无法向Google提供您的IP地址。

Google then uses your IP address to analyze the network you're on and then provide the details to the Analytics users (of course, it's not always 100% accurate...but that's a given).

然后,Google会使用您的IP地址来分析您所在的网络,然后向Google Analytics用户提供详细信息(当然,它并非总是100%准确......但这是给定的)。

#2


Javascript doesn't. That's done at google's end. It looks up who the requester's IP is registered to.

Javascript没有。这是在谷歌结束时完成的。它查找请求者的IP注册者。

#3


When you load the javascript from google's server, then they have your external IP address. If you are at work and all the traffic most likely goes through a firewall, then they have the IP of the firewall and not the IP address that the internal network hands out.

当您从谷歌的服务器加载JavaScript时,他们有您的外部IP地址。如果您在工作并且所有流量最有可能通过防火墙,那么它们具有防火墙的IP而不是内部网络发布的IP地址。

There's a sysytem on how IP addresses are allocated which is partly how they can do rudimentary geolocation for you stats.

有一个关于如何分配IP地址的系统,这部分是他们如何为你的统计数据做基本的地理定位。