Wild Pockets provides developers with an analytics page to see how popular your games are. You can access this page from:
After entering the name of the game that you would like to track you'll be presented with a page where you can graph 1 or 2 statistics at a time. These statistics include:
- Page Loads - The number of times a page that includes your embedded game is loaded in a browser.
- Page Activations - The number of times that a user clicked the play button, or the game automatically started
- Game Starts - The number of times that the engine started to load. Note: If this number is less than the page activations, this might be an indication that the user did not have the wild pockets plugin installed.
- Minutes in Game - How long the user was in the game since the engine started to load.
Each of these different stats can be looked at in terms of Unique views or Total views. Unique simply means that if the same user looks at the page twice it only counts as once. In addition you can specify a statistic to divide by. One example is to view "Game Starts" per "Page Loads" in order to see the percent of people who actually started your game after they loaded the page. Another example is to view "Minutes In Game" per "Game Starts" to see the average amount of time spent in game.
Wild Pockets also allows you to track specific points in your game. At any point in your lua code you can call:
Now on the analytics page you can select Custom and type in "Killed Ogre" to view how many players reached that point in your game. In addition you can specify a number in your recordCheckpoint call. For example if the player spends 32 minutes playing your first level, when he does beat it you can record:
Player.recordCheckpoint("Time Spent In Level 1",32)
Now you can view the total time spent in level one from the analytics page. One nifty thing you could do is to graph "Time Spent In Level 1" per "Game Started" in order to see the average amount of time your players are spending on the first level.