Product-health dashboard in four cards
Use this page to show whether a college workspace is activated, used each week, retained, and answered quickly, using only question, answer, workspace, session and role records already kept. No new event, field or tracker is added.
Rules that apply to every card
Calculate inside one college workspace at a time. State college workspace, assistant, channel, start and end dates, and college local time on the dashboard header.
- Test and staff preview sessions are labeled as test, excluded from every numerator and denominator, and the excluded count is shown where the screen can count it
- Unavailable checks are recorded separately only when a question record was created, never counted as not answered and never counted as a source gap
- Every rate shows numerator and denominator counts beside it. Every median shows the count behind it. No rate is read without its counts
- When a denominator is zero, show no questions in this range, no active users in this range, no cohort askers in this range, or no answered questions in this range, as fits the card. Do not show zero percent and do not show zero minutes as a comparison
- In session-only mode, a card that needs kept records states not calculated in session-only mode. Do not estimate a value from headline counts alone
- System view shows totals grouped by college workspace only, never shows question text, and never mixes one college with another
- Confirm table names and column names once in migrations/0002_app.sql in the shipped build, then use those names in the SQL below. Field logic does not change when a name is confirmed
- Each card opens the filtered list behind it with the same workspace, assistant, channel and date range filters. Reading full question text or exporting detail needs the separate detail permission and is audit logged
The four cards in order
Show the cards in this order, below the filter row and above any adoption detail on Reports.
| Card | Exact formula | Numerator | Denominator | Time window |
|---|---|---|---|---|
| 1. Activated workspaces | Workspaces reaching installed status divided by workspaces reaching sign-in in the same cohort | Count of workspaces in the cohort with at least one published assistant, at least one source in approved status linked to that assistant, a named handoff office, and at least one non-test question in the 28 days after sign-in | Count of workspaces whose first account completes MAJIC sign-in in the cohort range | Cohort is the sign-in range in college local time. Follow each cohort for 28 days. A cohort without the full 28 days is labeled as partial and is not compared with a full cohort |
| 2. Weekly active users by role | Distinct signed-in accounts who asked at least one question in the week, grouped by role | Distinct user ids on non-test question records in the week, per role segment | None for the headline count per role. When a rate is shown, the denominator is distinct accounts holding an active role in that workspace at Monday 00:00 at the start of the week | Monday 00:00 to the next Monday 00:00 in college local time. Compare only with the preceding week of the same length, with the same workspace, assistant and channel filters |
| 3. Asker retention at 7 days and at 28 days | Cohort askers who ask again by day 7, and by day 28, divided by cohort askers | Distinct signed-in accounts who asked in the cohort week and asked again in the window from day 1 through day 7 for the 7 day card, and from day 1 through day 28 for the 28 day card | Distinct signed-in accounts who asked at least one non-test question in the cohort week | Cohort week is Monday to Sunday in college local time. The 7 day window ends 7 days after the cohort week ends. The 28 day window ends 28 days after the cohort week ends. Report each card only when its full window is observed |
| 4. Median time to first answer | Median of first sourced answer time minus question submission time, in minutes, across answered questions | Not a rate. The median value, computed from one elapsed value per answered question | Count of answered questions with both times stored, shown beside the median | Selected range by question submission time in college local time. Compare only with the preceding range of the same length |
Weekly active users by role, with the guard that keeps it honest
Role is a segment only when the role stored on the question record is the role at the time of the question. Ship the split only under that condition.
SELECT role, COUNT(DISTINCT user_id) AS weekly_active_users, COUNT(*) AS questions_asked FROM questions WHERE tenant_id = ?1 AND is_test = 0 AND user_id IS NOT NULL AND created_at >= ?2 AND created_at < ?3 GROUP BY role ORDER BY weekly_active_users DESC;
- Bind ?1 to the workspace, ?2 to week start and ?3 to week end in the stored time form, converted from college local time
- When role is not stored on the record, do not run this query as a role trend. A current Team role split may be shown only as a labeled current role view, and it must not be used for retention or for change over time
- System view never shows a role split and never joins people across colleges. Role splits stay inside one college workspace
- Visitors without an account have no signed-in identity. Count them in questions asked by channel only, never in weekly active users
Retention queries for the 7 day and 28 day cards
Run the cohort query once per cohort week, with later bounds set to the 7 day window and the 28 day window in turn. Use the same assistant and channel filters in both parts when those filters are chosen.
WITH cohort AS (SELECT DISTINCT user_id FROM questions WHERE tenant_id = ?1 AND is_test = 0 AND user_id IS NOT NULL AND created_at >= ?2 AND created_at < ?3), later AS (SELECT DISTINCT user_id FROM questions WHERE tenant_id = ?1 AND is_test = 0 AND user_id IS NOT NULL AND created_at >= ?4 AND created_at < ?5) SELECT (SELECT COUNT(*) FROM cohort) AS cohort_askers, COUNT(later.user_id) AS retained_askers FROM cohort LEFT JOIN later ON later.user_id = cohort.user_id;
- Retention at 7 days is retained askers from the 7 day window divided by cohort askers. Retention at 28 days is retained askers from the 28 day window divided by cohort askers
- Show the cohort size beside every retention rate. When the cohort count is zero, show no cohort askers in this range
- Do not report the 7 day card until the 7 day window is fully observed. Do not report the 28 day card until the 28 day window is fully observed
- Asker retention measures return use. Data retention sets how long records are kept. State both on the screen so the two are not confused. In session-only mode, state not calculated in session-only mode
Median time to first answer, without loading every row
Answer with at least one approved source citation. Not-known messages, handoffs with no sourced answer, and unavailable checks are not in the median. Questions with a missing time are excluded and the excluded count is shown.
SELECT COUNT(*) AS n FROM questions WHERE tenant_id = ?1 AND is_test = 0 AND has_citation = 1 AND first_answer_at IS NOT NULL AND created_at >= ?2 AND created_at < ?3;
SELECT created_at, first_answer_at FROM questions WHERE tenant_id = ?1 AND is_test = 0 AND has_citation = 1 AND first_answer_at IS NOT NULL AND created_at >= ?2 AND created_at < ?3 ORDER BY (julianday(first_answer_at) - julianday(created_at)) ASC, id ASC LIMIT 2 OFFSET ?4;
- When n is 0, show no answered questions in this range for the median and run no second query
- When n is greater than 0, compute offset in code as the integer part of n minus 1 divided by 2, and bind that offset as ?4
- When n is odd, the second query returns 1 row and the median is elapsed minutes for that row. When n is even, it returns 2 rows and the median is the average of elapsed minutes for the 2 rows
- Elapsed minutes for a row is first answer time minus submission time, computed in code from the 2 returned timestamps. Show n beside the median
- Ship this card only when both times are stored. When first sourced answer time is not stored, do not ship a median and do not estimate it from headline counts
Activated workspaces from records already kept
Activation is workspace level. Role is not a segment for this card, because the unit is a workspace, not a person. Plan is not applicable, with no plan field documented in this pack, and no plan segment is shown.
- Numerator needs four facts on existing records: published assistant status, approved source status linked to that assistant, a named handoff office on that assistant, and at least one non-test question in the 28 days after sign-in
- Denominator needs one fact: first sign-in completion time for the first account in each workspace in the cohort range
- When any of those facts is not stored, state not calculated for that workspace and state which fact is missing. Do not invent a fact, a date, or a status
- Test and staff preview sessions, demo or sample workspaces, and draft writing never submitted as a question are excluded from both counts
- Drop-off is shown as count reaching a step minus count reaching the next step, with the count behind each step, and median time between steps with its count. Do not average workspace activation with person activation
What the dashboard does not show
- No target or benchmark. No rate without numerator and denominator counts
- No public search to answer conversion. Public search runs in the browser, holds no workspace, assistant or question record, and states not calculated in this pack
- No visitor repeat visit. No fingerprint, address or marketing identifier is used for this count
- No reformulation rate and no follow-up share unless turn index and prior outcome can be linked on the question record. When that link is not stored, those cards are not shown
Layout to ship
- Place the four cards below the filter row for college workspace, assistant, channel and date range, in the order above
- State workspace, assistant, channel, start and end dates, and college local time on the header, not only inside a card
- Show current value, comparison value from the preceding period of the same length, and change in count, percentage points, or minutes as fits the card
- Make each card a link to the filtered list behind it, with the same filters applied
Checks before you ship the dashboard
Run each check in a test college workspace. If a check fails, fix it before you publish.
- Table and column names in the SQL match migrations/0002_app.sql in the shipped build, and every workspace query filters by tenant_id
- Activated workspaces, weekly active users by role, 7 day retention, 28 day retention, and median time to first answer each show numerator and denominator counts, time basis, and session-only handling on screen
- Retention cards are shown only when the full 7 day or 28 day window is observed, and the cohort size is shown beside each rate
- Role split runs only when role is stored on the record. When only current role is stored, the screen labels the split as current role and does not use it for retention or trend
- A zero denominator shows the stated words for that card and does not show zero percent or zero minutes
- Unavailable checks are shown separately and are not counted as not answered. Test sessions are excluded and labeled as excluded
- Each card opens the filtered list behind it with the same workspace, assistant, channel and date range
Follow Read reports for the list behind a number, Metric dictionary for the canonical formulas, Owner dashboard metrics and SQL for workspace trend queries, and Work unanswered questions to assign an owner for unanswered work.
Next guide
Read the numbers, then work the largest gap first.