EduShade
Auth Module

User Analytics

User growth statistics, registration trends, and quick overview dashboards

User Analytics

EduShade provides user analytics and statistics to help administrators understand user growth, activity patterns, and platform health.

Accessing Analytics

  • Navigate to Admin → User Management (requires user.view permission)
  • Analytics are available through dedicated stats endpoints and dashboard widgets

Quick Statistics

The quick stats panel provides at-a-glance metrics:

Overview Metrics

MetricDescription
Total UsersTotal number of registered users (excluding deleted)
Active UsersUsers with active status
Inactive UsersUsers with inactive status
Suspended UsersUsers with suspended status
Pending VerificationUsers awaiting email/phone verification

By User Type

MetricDescription
Total AdminsUsers with is_admin = true
Total InstructorsUsers with is_instructor = true
Total LearnersUsers with is_learner = true

Recent Activity

MetricDescription
Registrations TodayNew users registered today
Registrations This WeekNew users registered this week
Registrations This MonthNew users registered this month
Last 7 DaysTotal registrations in the past 7 days

User Growth Analytics

Track how your user base is growing over time.

Available granularity levels:

GranularityData PointsDescription
DailyDay-by-dayNew registrations and active users per day
WeeklyWeek-by-weekWeekly user growth totals
MonthlyMonth-by-monthMonthly user growth totals

Growth Data Includes

  • New registrations per time period
  • Active user count per time period
  • Trend direction (increasing, decreasing, stable)
  • Data for building dashboard charts and reports

Analytics Overview

The analytics overview provides period-over-period comparisons:

PeriodCurrentPreviousComparison
TodayRegistrations todayYesterdayUp/Down
This WeekThis week's registrationsLast weekUp/Down
This MonthThis month's registrationsLast monthUp/Down

This helps administrators quickly see whether user growth is accelerating or slowing.

Materialized View for Performance

For quick dashboard loading, user statistics are computed via a materialized view (mv_user_quick_stats):

MetricDescription
Total LearnersAll-time learner count
Current Month LearnersLearners registered this month
Previous Month LearnersLearners registered last month
Total InstructorsAll-time instructor count
Current Month InstructorsInstructors registered this month
Previous Month InstructorsInstructors registered last month

This view is indexed per tenant for fast lookups.

User Filtering for Analytics

Combine the user list filters with analytics to answer questions like:

  • "How many learners registered from Bangladesh this month?"
  • "How many users have enrolled in Course X?"
  • "How many users have completed quizzes?"
  • "What's the breakdown of users by country?"

Available Analytics Filters

FilterDescription
StatusFilter by account status
User TypeFilter by admin/instructor/learner
Date RangeRegistration date or last login date
CountryGeographic distribution
TimezoneTime zone distribution
Cross-ServiceHas enrollment, certificate, quiz attempts

Export Analytics Data

Export user data for external analysis:

  1. Apply desired filters
  2. Click Export (requires user.export permission)
  3. Download CSV with all user fields
  4. Import into spreadsheet or BI tool for further analysis

Troubleshooting

IssueSolution
Stats not loadingEnsure you have user.view or user.stats permission
Numbers seem offStats may use cached materialized views. Refresh may be needed
Growth chart emptyEnsure the selected time range has data
Export failingCheck user.export permission and try with fewer filters

On this page