简体   繁体   English

Flurry和Google Analytics(分析)用户位置

[英]Flurry and Google Analytics user location

I'm currently developing a Android game and would like to implement analytics. 我目前正在开发Android游戏,并希望实施分析。 I see that both Flurry and Google Analytics offer the ability to track the users location. 我发现Flurry和Google Analytics(分析)都可以跟踪用户的位置。 I've been playing around with Flurry and see that the users location is continent based (I guess unless I add the permission to access GPS, which user don't like). 我一直在玩Flurry,发现用户位置基于大洲(我想除非我添加了访问GPS的权限,否则用户不喜欢)。 I was wondering if Google Analytics can give me a more precise user location without giving the permission to access the GPS? 我想知道Google Analytics(分析)是否可以在不授予访问GPS权限的情况下为我提供更精确的用户位置?

Without GPS, the challenge with determining location on mobile is that it depends on how the device is connected. 没有GPS,确定移动设备上的位置所面临的挑战在于它取决于设备的连接方式。 If the device is connected over the mobile network (3G, 4G), then network traffic will exit through some mobile operator gateway, and the source IP address will likely point to a very different and very wrong location for the actual user (which many analytics services incorrectly do). 如果设备通过移动网络(3G,4G)连接,则网络流量将通过某个移动运营商网关退出,并且源IP地址可能会指向实际用户非常不同且非常错误的位置 (许多分析服务不正确)。 If the device is connected over WiFi, then the source IP address can be reliably used to identify the metro area location (at least as reliable as fixed broadband connections). 如果设备通过WiFi连接,则可以可靠地使用源IP地址来标识城域区域位置(至少与固定宽带连接一样可靠)。

At Localytics (I work there), we first determine how devices are connected. Localytics (我在工作),我们首先确定设备的连接方式。 If over a mobile network, then location is only reported to country level. 如果通过移动网络,则位置仅报告给国家/地区级别。 But if it's connected over WiFi, then we'll report location down to region or metro area -- this gives you a better representative sample of where your users are. 但是,如果通过WiFi进行连接,那么我们将向下报告区域或城市区域的位置-这样可以为您提供一个更好的代表用户位置的示例。

If you just ping a Google Analytics-enabled web page/server, then yes you should at least be able to get an ip address location even if it misses the mark by 400 miles (as it does for me when I try it from my phone). 如果您只是对支持Google Analytics(分析)的网页/服务器执行ping操作,则是的,即使它错过了400英里的标记,您也应该至少能够获得一个ip地址位置(就像我在通过手机尝试时所做的那样) )。

But there must be a good reason for pinging a web page, users don't generally like useless permissions or useless traffic. 但是对网页进行ping操作肯定有充分的理由,用户通常不喜欢无用的权限或无用的流量。 For instance in your case, you could implement a global scoreboard, either one that you made yourself, or one that you call through an open intent, or one that you added to your apk as a library like OpenFeint. 例如,您可以实施一个全局记分板,既可以自己创建一个记分板,也可以通过开放意图调用一个记分板,也可以像OpenFeint这样的库将其添加到apk中。

You could even ask the user to manually enter their location when they enter their username on the scoreboard, or better yet implement something like Facebook Connect for adding social features and for adding a social scoreboard. 您甚至可以要求用户在记分板上输入用户名时手动输入位置,或者更好地实施Facebook Connect之类的功能来添加社交功能和添加社交记分板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM