What are Streaks?
A streak is a period of consecutive days, weeks or months that a user has performed a key action on your platform. Streaks have been shown to meaningfully increase retention, particularly when the user action being tracked aligns with the core value of your product.Streak Frequency
Streaks in Trophy can be daily, weekly or monthly. This means that a user must meet their streak conditions at least once every calendar day, week or month to maintain their streak. If you’ve configured time zones for your users, Trophy will automatically track each user’s streak in their local time zone (including taking into account when users change time zones) and keep streaks in tact.Trophy automatically computes streak data for every streak frequency, meaning you can switch at any time.
Streak Conditions
In Trophy you can set the thresholds that a user must meet in order to extend their streak based on your configured Metrics. You can choose which metrics should be part of your streak, and for those that you chose, you can set a custom threshold that users must meet.
ALLmeans a user must meet every metric threshold to extend their streakORmeans a user only has to meet one of your metric thresholds to extend their streak
Streak Freezes
Streak freezes help users keep their streaks for longer by allowing them to miss periods without it resetting to zero. This helps keep streaks motivating even if users don’t maintain a perfect usage habit.
Granting Initial Freezes
You can configure any number of arbitrary freezes to grant to new users when you first identify them with Trophy.Freeze Accumulation
As users use up streak freezes, they’ll need a continuous supply of new ones to keep them going. To facilitate this, Trophy can automatically grant streak freezes to users over time. You can choose an arbitrary number of days over which to grant an arbitrary number of freezes to each user. If you’ve configured time zones for your users, Trophy will automatically consume freezes at midnight in the user’s time zone when necessary to extend their streak, and if any new freezes are due to be granted to a user, they will be granted up to ten minutes later.Maximum Freeze Count
In Trophy you also configure the maximum number of freezes that each user can have, up to a limit of 100. Freeze accumulation will only ever grant freezes up to this limit.Tracking Streaks
Trophy automatically calculates streaks for all users based on the metric events you report to Trophy. There’s no extra work required to track streaks, and you can start using them right away. Just make sure that streaks are enabled in the Trophy dashboard.Managing Streaks
This section outlines some of the operations you can perform to manage user’s streaks in your application.Restoring A Users Streak
To restore a user’s streak, head to the user details page and use the ‘Restore Streak’ action. Restoring a user’s streak sets it to the length it was when they last lost it.Displaying Streaks
Trophy exposes streak data in two ways, which can be used to build UI elements within your applications and display streaks to users.Metric Event Response
When you increment a metric for a user, the metric API response will include the user’s current streak.Response
- Showing in-app pop-ups
- Playing sound effects
User Streaks API
The user streaks API returns the current streak for a single user, along with their recent streak history. Use thehistoryPeriods query parameter to control how many periods to return.
Response
