Funnels and retention
Funnels and retention are built in the dashboard from the events you already send. Nothing extra goes in your code.
Days, weeks and months are cut in the project's time zone (Settings), so everyone on the team sees the same numbers. To read them in your own time zone instead, choose Mine under Report time zone in Account settings. Daylight saving changes are handled: such a day has 23 or 25 hours.
Funnels
A funnel is a list of up to 6 steps, such as viewed pricing, clicked upgrade, checkout completed. datacub counts how many users get from one step to the next within a time you choose (5 minutes to 90 days) and shows where the rest stopped.
A step can be:
| Step | Comes from |
|---|---|
| a page visited | automatic page views (or screens in apps) |
| a click | automatic clicks; named ones read best (data-datacub-name) |
| an event from your product | datacub.track(...) |
Build one in Funnels: pick a starting point, and datacub shows what most users did next. If you add an event datacub has not seen yet, the dashboard shows the datacub.track line to add.
Make funnels reliable
- End funnels on outcomes your code confirmed (
checkout_completed), not on clicks. Clicks happen whether or not the payment worked. - Name the buttons that matter, so a step reads Clicked "upgrade_plan" and survives a redesign:
<button data-datacub-name="upgrade_plan">Upgrade</button>- Call
identifyat login. A user who starts on their phone and finishes on their laptop then counts once, as one user.
Retention
Engagement answers do people come back?: of the users who first used your product on a given day or week, how many were active again the next day, after 7 days and after 30 days.
Activity is a page view, a screen view or an event your product sends. Leaving a page is not activity, and the mobile SDK sends nothing when the app goes to the background, so retention is not inflated by people who only opened the app.
Make retention reliable
- Identify signed in users, so returning on another device counts as coming back, not as a new user.
- Track the action that means real use (
report_viewed,order_placed), so you can tell visiting from using. - Keep calling
reset()at logout: otherwise two people on one device look like one loyal user.