How can I measure the retention based on "did the user return within 14 days of the first event?"
Hi Gabriel W., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
To measure retention based on "did the user return within 14 days of the first event?" in Mixpanel, you should use the Retention report with a custom interval.Here's how you can do it: 1. Define your retention behavior:
- Set the "first event" (e.g., "Sign Up Completed" or any event you care about).
- Set the "return event" (e.g., "Any Event" or a specific event you want to track as a return).2. Set the interval:
- In the Retention report, choose a 14-day interval. This will group users who return within 14 days of their first event.3. Use custom retention brackets (if needed):
- If you want to specifically measure users who returned at any point within days 1–14 (not just on a specific day), use the "Custom" option in the time unit drop-down and set a bracket for days 1–14. This will count users who returned at least once in that period as retained for that bracket.4. Interpret the results:
- The resulting retention percentage or count will show you how many users returned within 14 days of their first event.This approach allows you to answer questions like: "What percent of users came back and did [event] within 14 days of signing up?"
For more details on setting custom retention brackets, see the documentation: Custom Retention Brackets.If you are using the API, you can set the interval
parameter to 14 and the unit
to "day" to get this data programmatically. For example: LBKSGET /retention?interval=14&unit=day&born_event=Sign%20Up%20Completed&event=Any%20EventLBKS
Query API - RetentionThis will return the number of users who returned within each day up to 14 days after the first event. To get the total who returned within 14 days, sum the relevant intervals.Summary:
Use a 14-day interval or a custom bracket for days 1–14 in the Retention report to measure users who returned within 14 days of their first event.
Custom Retention Brackets
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.