-1

我做了很多挖掘,但仍然无法弄清楚如何让我的访问者“网络”。

在 Google 分析中,我可以很容易地看到这些数据(在受众 > 技术下),但我想用 PHP 来获得它。

任何人都可以分享您关于如何获取这些数据的经验吗?谢谢

4

2 回答 2

1

Google Analytic gives you a javascript code so everything that google analytics has is collected client side (browser version, screen size, etc...)

G/A detects client's ip address when browser loads the G/A given javascript code. after that google looks into the ip database and gives you possible location and network name

if you wanna do same in php use ip address and rich IP database

于 2013-01-27T20:33:50.430 回答
0

Are you talking about browser info, etc?

echo $_SERVER['HTTP_USER_AGENT'];

Other $_SERVER indices.

Also see get_browser

于 2013-01-27T20:31:48.130 回答