Skip to main content

Configure Statistics in the Admin Portal - Stat tracking and display - (Unity module)

Last updated on October 24, 2024

About the Statistics configuration

You can manage all player statistics stored in the AccelByte Gaming Services (AGS) Statistics service from the AccelByte Admin Portal. From the Statistic Configurations, you can name and set up statistics with their rules for easier identification.

Configure Statistics in Admin Portal

This section will guide you through setting statistics (stats) in the Admin Portal based on the Byte Wars game modes.

  1. Log in to the AGS Admin Portal and go to your game namespace dashboard.

  2. Go to Progression & Inventory > Statistics > Configuration and click the Add Configuration.

  3. Fill out the form that appears using the configuration below to create a new highest score stat for the Single Player game mode. Once done, click Add.

    • Stat Code: the code used to identify this specific stat. To follow this tutorial, set it to unity-highestscore-singleplayer.
    • Name: a name for human reference (not read in code). To follow this tutorial, set it to Highest Score Single Player.
    • Description (optional): the description of this stat. To follow this tutorial, set it to Highest Score of a player in offline single-player game mode.
    • Min Value (optional): this will use 0 if you leave it empty. It can't be a negative value. To follow this tutorial, leave it empty.
    • Max Value (optional): This will use 1.7976931348623157e+308 if you leave it empty. It can't be a negative value. To follow this tutorial, leave it empty.
    • Default Value: the default value that will be used when adding this stat to a player who doesn't already have it. It can't be a negative value. To follow this tutorial, set it to 0.
    • Increment: enabling this will only allow this stat value to increase, but you will still be able manually reset or decrease the value from the Admin Portal. To follow this tutorial, set it to True.
    • Set As Global: if enabled, the stats is also set as global stats. Global stats is an accumulated value from all contributing players to the stats. You can see the Global Stats value in Progression & Inventory > Statistics > Statistics Value > Global. For this tutorial, set it to True.
    • Aggregation Method: this option is only available if you enable the Set As Global option. This option sets what method to summarize the global stats. For this tutorial, we want to summarize the highest score, hence set it to MAX.
    • Set By: whether to allow a client or a server to set this stat value. For the Single Player game mode, set it to Client.
    • Tag (optional): a tag to make this stat easier to search for and query. To follow this tutorial, leave it empty.
  4. Repeat the steps mentioned above to create a new highest score stat for the Elimination game mode by using the configuration below:

    • Stat Code: set it to the unity-highestscore-elimination.
    • Name: set it to Highest Score Single Player.
    • Description: set it to Highest Score of a player in online Elimination game mode.
    • Min Value: leave it empty.
    • Max Value: leave it empty.
    • Default Value: set it to 0.
    • Increment: set it to True.
    • Set As Global: set it to True.
    • Aggregation Method: set it to MAX.
    • Set By: set it to Server.
    • Tag: leave it empty.
  5. Repeat the steps again using the configuration below for the score stat for the Team Deathmatch game mode.

    • Stat Code: set it to the unity-highestscore-teamdeathmatch.
    • Name: set it to Highest Score Team Deathmatch.
    • Description: set it to Highest Score of a player in online Team Deathmatch game mode.
    • Min Value: leave it empty.
    • Max Value: leave it empty.
    • Default Value: set it to 0.
    • Increment: set it to True.
    • Set As Global: set it to True.
    • Aggregation Method: set it to MAX.
    • Set By: set it to Server.
    • Tag: leave it empty.
  6. Repeat the steps once more to create a new highest score stat for the Killcount by using the configuration below.

    • Stat Code: set it to the unity-killcount.
    • Name: set it to Kill Count.
    • Description: set it to Player kills count of a player in online any game mode..
    • Min Value: leave it empty.
    • Max Value: leave it empty.
    • Default Value: set it to 0.
    • Increment: set it to True.
    • Set As Global: set it to True.
    • Aggregation Method: set it to TOTAL.
    • Set By: set it to Server.
    • Tag: leave it empty.

Edit a stat value in the Admin Portal

You can see and edit all stat items and values of a player of whom you have the Email, Display Name, User Name, or User ID. In this section, you will edit a player's stat value using their User ID.

  1. Log in to the AGS Admin Portal and go to your game namespace dashboard.

  2. Go to Progression & Inventory > Statistics > Statistic Value and click the Player tab.

  3. Click the dropdown above the search box and select by User ID. Paste a player's User ID in the search box and press Enter.

  4. When the desired player appears, click View next to them to open their statistics details menu.

  5. On the new menu, find your desired statistics to edit and click the Pencil icon in the Action column.

  6. On the new pop-up window, update the statistics value and click Update.