Achievements
Learn how to use Achievements in a gamified product experience with Trophy.
What Are Achievements?
Achievements are rewards that users can unlock as they use your platform. They can be used to reward users for making continued progress along core user journeys, or to motivate users to explore more nascent features.
No matter the type of achievement, they work best when designed to incentivize users to take actions that are likely to lead to increased retention. So before jumping in, have a think about what those actions might be in your context.
Here we’ll have a look of the types of achievements you can build with Trophy, the different ways to use them, and how to integrate them into your platform.
Watch Charlie run walk through using achievements in a NextJS application:
Achievement Types
Trophy offers three types of achievements, Metric, Standalone and Streak achievements, detailed below.
Metric Achievements
Metric achievements are tied to Metrics and are best used when you want to incentivize users to take the same action over and over again.
Let’s take the example of a book-writing platform that uses Trophy to encourage users to write more often with metric achievements as follows:
- 1,000 words
- 2,500 words
- 5,000 words
- 10,000 words
- 25,000 words
- 50,000 words
In this case you would create a metric called Words Written and create achievements against the metric for each milestone.
Since these achievements are directly tied to the Words Written metric, Trophy will automatically track when users unlock these achievements as they increment the metric.
When achievements are unlocked, Trophy includes information about the unlocked achievements in the Event API response, and automatically triggers Achievement Emails if configured.
Standalone Achievements
Standalone achievements can only be completed once and are useful for rewarding users for taking specific actions.
Common examples include:
- A user completing their profile after signing up
- A user linking their social account to a platform
- A user sharing their product experience on social media
Standalone achievements serve as an easy way to reward users for completing any action that you think is important for retention.
Just like metric achievements, standalone achievements can also trigger automated Achievement Emails if configured.
Streak Achievements
Streak achievements are directly tied to a user’s Streak and are automatically unlocked when users reach a particular streak length.
You can create as many streak achievements as you like for increasing lengths of streak, for example 7 days, 30 days and 365 days to motivate users to use your app more and more.
Just like metric and standalone achievements, you can add a custom name and assign a badge to streak achievements.
Creating Achievements
To create new achievements, head to the achievements page in the Trophy dashboard and hit the New Achievement button:
Enter a name
Enter a name for the achievement. This will be returned from APIs and made available for use in emails and other areas of Trophy where appropriate.
Choose a trigger type
Choose how you want this achievement to be unlocked.
-
Choosing Metric will mean the achievement will be automatically unlocked when the user’s total reaches the achievement trigger value.
-
Choosing Streak will mean the achievement will be automatically unlocked when the user’s streak length reaches the achievement trigger value.
-
Choosing API Call will mean the achievement will only be unlocked when explicitly marked as completed by your code through an API call.
Set up trigger
Once you’ve chosen the trigger type for the achievement, you need to set up the trigger settings.
-
If you chose the Metric trigger, you’ll need to choose the metric and the user’s total value that should unlock the achievement when reached.
-
If you chose the Streak trigger, you’ll need to set the streak length that should unlock the achievement.
-
If you chose the API Call trigger, you’ll need to choose a unique reference
key
you’ll use the complete the achievement via the API.
Upload a badge _Optional_
You can upload and assign a badge to the achievement that will be returned in API responses and made available in emails and other areas of Trophy where appropriate.
Hit save
Save the new achievement.
Completing Achievements
If you’re using metric achievements, there’s no need to explicitly complete achievements. Once you’ve set up metric tracking in your code, all achievements linked to the metric will be automatically tracked.
Similarly, if you’re using streak achievements, all achievements related to the user’s streak will automatically be unlocked when a user reaches the respective streak length.
However if you’re using any standalone achievements, you will have to mark them as completed for each user as appropriate. To do this, you can use the Complete Achievement API using the key
of the achievement you want to complete.
This will return back a response that contains details of the achievement that was completed that can be used in any post-completion workflows, like showing an in-app notification.
Using Badges
A badge can be uploaded and assigned to any achievement in Trophy. Trophy will host the image for you and return the URL back to you in relevant API responses to be used as the src
property in <img>
tags.
Achievement Analytics
If you have multi-stage acheivements set up for any of your Metrics, then the metric analytics page displays a chart that shows you the current progress of all Users as follows:

Frequently Asked Questions
Get Support
Want to get in touch with the Trophy team? Reach out to us via email. We’re here to help!