Being able to check out how many players play your game, from what countries, for how long, on which levels they have problems, even do they ever visit your precious Credits screen – that sounds incredibly useful, doesn’t it? Fortunately, in web browser games, there’s a way to get such informations. In this post I’m going to describe the process for Flash (ActionScript 3).
And there are even many ways. First, some time ago you could use Playtomic.com – however they had notorious problems with reliability, and are now out of bussiness. Then, the second try could be Mochimedia – they have many services, and one of them is statistics. Unfortunately, it is very simple and unable to give you such detailed data as in the first paragraph. You could also google and find few other services… and among few smaller ones, Google Analytics for Flash project (later shortened to GAF).
That’s true – you can use the well known, very powerfull, complex, free, reliable and spied service from Google to process the statistics from your own Flash games. And it’s actually pretty easy to use. Sadly, the documentation is rather cryptic, sparse, ambigous and hard to follow. So, here goes a quick, practical tutorial for you + code samples :)