Add active class definitions to analytics dashboard

This commit is contained in:
Matt Lott 2016-02-05 09:40:05 -08:00
parent bc8476bff7
commit e75bca2b43
2 changed files with 6 additions and 1 deletions
app/templates/admin
scripts/analytics/mongodb/queries

View file

@ -28,6 +28,11 @@ block content
h3 Active Classes 90 days
.small Active class: 12+ students in a classroom, with 6+ who played in last 30 days.
.small Paid student: user.coursePrepaidID set and prepaid.properties.trialRequestID NOT set
.small Trial student: user.coursePrepaidID set and prepaid.properties.trialRequestID set
.small Paid class: at least one paid student in the classroom
.small Trial class: not paid, at least one trial student in classroom
.small Free class: not paid, not trial
.active-classes-chart.line-chart-container
h3 Recurring Revenue 90 days

View file

@ -58,7 +58,7 @@ function getActiveClassCounts(startDay) {
// Classrooms
// paid: at least one paid member
// free trial: not paid, at least one trial member
// trial: not paid, at least one trial member
// free: not paid, not free trial
// user.coursePrepaidID set means access to paid courses
// prepaid.properties.trialRequestID means access was via trial