Account report template
A ready-made dashboard for B2B accounts: active users per company, events by company, top accounts, new and dormant accounts, and feature adoption.
The Account report is a built-in dashboard template (builtin:account-report). It shows how each customer company uses your product, using group analytics.
Before you use it
Send events with a group, so every later event is attributed to a company:
lucida.group("company", "acme-inc", { name: "Acme Inc", seats: 25 }); // type, key, propertiesThe template reads the group type named company. If your project calls it something else, edit each tile and change the group type there. A name that the project does not define fails with an error that lists the group types it does define.
Create the dashboard
In Dashboards, choose Templates, then Account report, and create it. Or over the API:
curl -X POST https://lucidace.com/v1/projects/$LUCIDA_PROJECT_ID/dashboard-templates/builtin:account-report/instantiate \
-H "Authorization: Bearer $LUCIDA_SECRET_KEY" -H "Content-Type: application/json" -d '{}'The new dashboard holds copies of the insights, so you can edit them freely. The template itself does not change.
Tiles
Tile | What it shows | Query |
|---|---|---|
Active users per company | Distinct users per week, one line per company (top 10) | trends, |
Events by company over time | Event count per day, one line per company (top 10) | trends, breakdown by group |
Top accounts by activity | The 25 busiest companies in the period | trends, breakdown by group |
Active accounts per week | How many different companies were active, over 90 days | trends, |
New, returning, resurrecting and dormant accounts | New accounts, accounts that came back, accounts that returned after a gap, and accounts that went quiet (your churn signal), per week | lifecycle, aggregated by group |
Feature adoption (% of active accounts) | Companies that saw the feature divided by companies that were active, times 100 | trends with a formula over |
Feature use by company | Which companies use the feature, top 10 | trends, breakdown by group |
Everything is built from query kinds that already exist (trends and lifecycle). No new query type is involved.
Make it yours
Activity event. Tiles count
$pageviewas activity. Replace it with an event that means real use in your product (for examplereport_created).Feature event. The two feature tiles count
$feature_view, which the ReactFeaturecomponent sends. Replace it with the event for the feature you track.Dormant is not cancelled. An account counts as dormant in the week it went quiet. Pair this with your billing data (see Stripe MRR, churn and LTV) before you call it churn.
More on queries and dashboards: Query and insights API and Insights, dashboards and notebooks.