# Learning Platform Analytics

<Badge tone="info">Live data · Updated 5 min ago</Badge>

<Card title="Key metrics" subtitle="This week vs. last week">
<Columns>
<Stat label="Active learners" value="1,284" change="+8.2%" tone="success" icon="users" note="vs. 1,186 last week" />
<Stat label="Course completion rate" value="72%" change="+3.1%" tone="success" icon="graduation-cap" note="vs. 69% last week" />
<Stat label="Average quiz score" value="81%" change="-1.4%" tone="warning" icon="chart-line" note="vs. 82% last week" />
</Columns>
</Card>

<Card title="Engagement — last 8 weeks" subtitle="Active learners per week">
<Chart type="area" x="Week" y="Learners">
| Week | Learners |
|---|---|
| 8 weeks ago | 940 |
| 7 weeks ago | 1,020 |
| 6 weeks ago | 1,150 |
| 5 weeks ago | 1,090 |
| 4 weeks ago | 1,240 |
| 3 weeks ago | 1,180 |
| 2 weeks ago | 1,310 |
| Last week | 1,186 |
| This week | 1,284 |
</Chart>
</Card>

<Card title="Narrow to a cohort">
<Form name="cohort-filter">
<Select label="Cohort" placeholder="All cohorts" options="All cohorts | Data Science — Spring 2025 | Web Dev — Fall 2024 | UX Design — Winter 2025 | Marketing — Summer 2025" />
<Button>Apply filter</Button>
</Form>
</Card>

<Card title="Courses ranked by enrollment" subtitle="All cohorts">
<Chart type="bar" x="Course" y="Enrolled">
| Course | Enrolled |
|---|---|
| Python for Data Science | 842 |
| Web Development Bootcamp | 731 |
| UX Design Fundamentals | 508 |
| Digital Marketing 101 | 394 |
| SQL & Databases | 287 |
</Chart>
</Card>

<Card title="Learners at risk of dropping out" subtitle="Low activity or low scores in the last 14 days">
| Learner | Course | Last active | Quiz avg | Risk |
|---|---|---|---|---|
| Maya Chen | Python for Data Science | 12 days ago | 54% | <Badge tone="danger">High</Badge> |
| Jordan Smith | Web Development Bootcamp | 10 days ago | 61% | <Badge tone="danger">High</Badge> |
| Priya Patel | UX Design Fundamentals | 9 days ago | 58% | <Badge tone="warning">Medium</Badge> |
| Alex Kim | SQL & Databases | 7 days ago | 66% | <Badge tone="warning">Medium</Badge> |
| Sam Rodriguez | Digital Marketing 101 | 5 days ago | 70% | <Badge tone="neutral">Low</Badge> |
</Card>

<Card title="Message a cohort" subtitle="Send a note to everyone in the selected cohort">
<Form name="cohort-message">
<Select label="Send to" placeholder="Choose a cohort" options="All cohorts | Data Science — Spring 2025 | Web Dev — Fall 2024 | UX Design — Winter 2025 | Marketing — Summer 2025" />
<Select label="Template" placeholder="Choose or write your own" options="At-risk check-in | Course reminder | Encouragement | Custom message" />
<TextArea label="Message" placeholder="Hi team, just a reminder that your next assignment is due Friday…" rows="4" hint="Personalized with each learner's name" />
<Button>Send message</Button>
<Button variant="secondary">Preview</Button>
</Form>
</Card>

<Card title="Cohort breakdown — Data Science · Spring 2025" subtitle="Example after applying the filter">
<Columns>
<Stat label="Learners" value="312" change="+4%" tone="info" icon="users" />
<Stat label="Completion rate" value="68%" change="+2%" tone="success" icon="graduation-cap" />
<Stat label="Avg quiz score" value="79%" change="-0.8%" tone="warning" icon="chart-line" />
</Columns>
</Card>

<FollowUps>
- Show me which courses have the highest dropout risk
- Compare completion rates between two cohorts
- Draft a message for at-risk learners
- Export this report as PDF or CSV
</FollowUps>