diff --git a/app/templates/admin/analytics.jade b/app/templates/admin/analytics.jade index bc9dc1ff9..a5377e902 100644 --- a/app/templates/admin/analytics.jade +++ b/app/templates/admin/analytics.jade @@ -27,6 +27,7 @@ block content .kpi-chart.line-chart-container h3 Active Classes 90 days + .small Active class: 12+ students in a classroom, with 6+ who played in last 30 days. .active-classes-chart.line-chart-container h3 Recurring Revenue 90 days diff --git a/scripts/analytics/mongodb/queries/insertAnalyticsActiveClasses.js b/scripts/analytics/mongodb/queries/insertAnalyticsActiveClasses.js index bc22c10ef..75a857cf3 100644 --- a/scripts/analytics/mongodb/queries/insertAnalyticsActiveClasses.js +++ b/scripts/analytics/mongodb/queries/insertAnalyticsActiveClasses.js @@ -1,31 +1,42 @@ +/* global db */ +/* global Mongo */ +/* global ISODate */ // Insert per-day active class counts into analytics.perdays collection // Usage: // mongo
:/