Create a Leaderboard Layout
A leaderboard layout defines what users see when they view the leaderboard. This includes the leaderboard's name, filters, and value format.
There are different methods of creating a leaderboard layout depending on your program.
-
Impact block - use the Layouts tab in the Leaderboards view
-
Custom user experience - use the GET /leaderboards/{leaderboardId}/leaders API
The following steps detail how to create or edit a leaderboard layout for the Impact block.
-
Before creating a layout, create the leaderboard structure to define what you want the leaderboard to track.
-
Open Nitro Studio > Motivate > Leaderboards > Layouts tab.
-
Click New or click Edit (
) to update an existing layout.
-
Enter the layout settings:
- Count - Returns leaders with the highest number of actions logged.
- Sum - Returns leaders with the highest cumulative action values logged.
- Minimum - Returns leaders with the lowest action value logged. Shows leaders in ascending order.
- Maximum - Returns leaders with the highest action value logged.
- Average - Returns leaders with the highest average of the action values logged.
- Lifetime Balance - Returns leaders with the highest balance after calculating point credits plus debits.
- Credit Balance - Returns leaders who have the highest number of point credits.
- Debit Balance - Returns leaders who have the highest number of point debits.
- Completion Count - Returns leaders who have the highest number of missions completed.
Field |
Description |
---|---|
Leaderboard Name |
Select the leaderboard data you want to display with the layout. |
Name |
The layout name. This name will appear to end users in the leaderboard dropdown list. |
Group Class |
Filters the leaderboard by the specified group class(es). The selected group class must be a segment. If no group class is specified, all groups are shown.
Note: The leaderboard displays the points/missions/actions based on the user's current group membership, not their historical group membership. |
Value Format |
The format for the values in a non-points leaderboard. Points leaderboards show values with a comma followed by the point category icon, short name, or name (in that order). Use "%d" to represent the number precision and optionally, add a prefix or suffix. For example, $%d.dd shows values as $56.00. Or %d courses shows values as 10 courses. |
Criteria |
Select how to calculate the leaders based on the leaderboard type. For Actions leaderboards: For Points leaderboards: For Missions leaderboards: |
-
Click Save.
-
Add the layout(s) to the Impact block.
See also