All Collections
Portal Pages
Design | Statistics Rules | Global Statistics
Design | Statistics Rules | Global Statistics
Jason Liang avatar
Written by Jason Liang
Updated over a week ago

Global [or App] Statistics are similar to Player Stats, except that they are stored centrally across all of an app's users.

Since global statistics are global to your app, they can be used to track sales, the number of total users completing certain tasks, global milestones, or the number of users joined a tournament, etc.

Creating a global statistic

  • Advance to the Design | Statistics Rules | Global Statistics page, click the [+] button at the right up corner of the Global Statistics list.

  • With the Edit Global Statistic Rule window pop up, fill out the fields that make sense to your app (Refer to the User Statistics page for the descriptions of each field.), then click Save.

As same as the User Statistics, you can set your app to generate the Global Statistics dynamically at runtime from calling APIs of GlobalGameStatistics service.

  • Just simply select "Generate App Statistic Rule Enabled" on the Design | Core App Info | Advanced Settings page, and then call IncrementGlobalStats or ProcessStatistics to add new or update existing global statistics. For the details of these APIs, visit our APIRef docs here.

(Note: For the usage of the Statistics special operations, such as INC, DEC, etc., you can refer to our APIRef here)

Implementing global statistics

Once your app global statistics are created, you can use them associated with the gamification section, such as XP level, Achievements, Milestones and Quests, for thresholds or rewards purposes.

And also as mentioned at the beginning, take advantage of the concurrency safe incrementGlobalStats API, you can set your global statistics as counters to get the number of players for some type of event in your app.

Did this answer your question?