Question

I'm currently developing a Android game and would like to implement analytics. I see that both Flurry and Google Analytics offer the ability to track the users location. 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). I was wondering if Google Analytics can give me a more precise user location without giving the permission to access the GPS?

Was it helpful?

Solution

Without GPS, the challenge with determining location on mobile is that it depends on how the device is connected. 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). 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).

At Localytics (I work there), we first determine how devices are connected. 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.

OTHER TIPS

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).

But there must be a good reason for pinging a web page, users don't generally like useless permissions or useless traffic. 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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top