Skip to main content

Overview

The Analytics Dashboard (/analytics) provides comprehensive insights into your learning journey. Track course progress, monitor time spent across different pages, view quiz results, and access completion certificates—all in one centralized location.

Dashboard Overview

The dashboard features a tabbed interface with three main sections:

Activity Tab

Time tracking and usage analytics

My Courses Tab

Enrolled courses with progress bars

Quizzes Tab

Quiz history and performance

Activity Tab

The Activity tab displays detailed time-tracking analytics:

Summary Cards

Three key metrics displayed prominently:
1

Total Time

Aggregate time across all pages
Shows lifetime platform engagement
2

Active Days

Number of days with activity in last 7 days
Measures learning consistency
3

Most Time Spent

Page with highest total duration
Identifies primary learning focus

Time by Topic

Horizontal bar chart showing duration per page/topic:
Page Icons & Colors:
Icon: ▶️Color: bg-teal-500Tracks video watching time

Last 7 Days Chart

Vertical bar chart showing daily activity: Chart Features:
  • 7 bars - One per day (Mon-Sun)
  • Height - Proportional to time spent
  • Color - Today highlighted in teal, past days lighter
  • Labels - Day abbreviation below each bar
  • Tooltips - Hover shows exact time
  • Weekly total - Sum displayed below chart
Implementation:

Course Breakdown

Detailed per-course and per-chapter analytics: Course-level Metrics:
  • Course thumbnail (clickable → player)
  • Course title
  • Total watch time
  • Number of learning sessions
  • Total quiz time across all chapters
Chapter-level Metrics:
  • Chapter title
  • Quiz duration for that chapter
  • Number of quiz attempts
  • Horizontal progress bar
Structure:

Empty State

When no activity exists:

My Courses Tab

Displays all enrolled courses with detailed progress tracking:

Summary Cards

Enrolled

Total number of enrolled courses

In Progress

Courses with partial completion

Completed

Courses with 100% completion

Course Cards

Each enrolled course displayed as a card: Card Contents:
  1. Thumbnail - 16:9 aspect ratio course image
  2. Course Title - Truncated to 2 lines
  3. Progress Information:
    • “X / Y lectures” label
    • Percentage (e.g., “67%”)
    • Animated progress bar
  4. Course Duration - Total length formatted
  5. Action Buttons:
    • “Done” badge if 100% complete
    • “Continue” or “Review” button
Progress calculation:
Progress bar styling:

Loading State

While fetching progress data:

Empty State

When no courses enrolled:

Quizzes Tab

Comprehensive quiz history and performance tracking:

Quiz Result Cards

Each quiz attempt displayed chronologically: Card Structure:

Performance Groups

Quizzes categorized by performance level:
76-100% correctBadge: Green with trophy icon 🏆Indicates strong understanding

Quiz Statistics

Aggregate metrics at top of tab:

Empty State

When no quizzes taken:

Certificate Access

Students can download completion certificates from multiple locations:

Certificate in Player

When course reaches 100%, certificate button appears in player sidebar:

Certificate API

Responsive Design

Mobile Optimizations

Stack vertically on mobile:

Performance Considerations

Each tab fetches its data only when activated:
Course progress data fetched in parallel:
Expensive calculations cached:

Authentication Guard

Dashboard requires authentication: