Course, Module, and Lesson Metrics

Course, Module, and Lesson Metrics

These VQL examples include only charts and metrics for parent objects, either in total or individually. Each of the widgets represents either out-of-the-box (OOTB) metrics built-in to the LRS, or practical metrics our customers asked for. You can find the OOTB metrics in the Activity Overview dashboard of your LRS. For some of these examples, you can often use the regular Chart Builder to assemble an approximately similar widget.
Notes
We've collapsed some of the whitespace in the JSON in this article, to make it easier to read.

Total Statements, for a Single Course

This is one of several widgets that a customer keeps in a row in a dashboard to show the status of a course. The number of statements for a course is like an odometer; it measures the overall maturity of the data flowing into the store. More statements offer more data, trends, and patterns. This number becomes “statistically significant” at different thresholds for different metrics: e.g., traffic patterns might not appear until after a full week (~100,000 statements).
Notes
The LRS has some “bookkeeping” deviation for statement totals, so this metric may not match exactly with the store’s count elsewhere.



{   "title": "Total Statements",
"subtitle": "Data Science",
"filter": {
"meta.relatedActivities": "https://www.coursera.org/specializations/jhu-data-science",
"$source": "statements"},
"process": [{
"$count": "value"}, {
"$notice": {
"subtitle": "Total xAPI statements",
"title": "${value.value.toLocaleString()}",
"valuePath": "$",
"precision": 2}}]}

Activity over Time, for a Single Course

This widget is like the OOTB widget in the LRS Overview or Activity Overview, except this version allows the LRS user to show a permanently-configured version instead of forcing the viewer to manually configure it themselves. This widget lets you zoom in on a period to see total duration scaled to recent activity. This widget is good for spotting unusual delays in traffic. Many short sessions can add-up, like when testing a new course.



{   "title": "Activity over time",
"subtitle": "Data Science",
"filter": {
"meta.relatedActivities": "https://www.coursera.org/specializations/jhu-data-science"},
"process": [{
"$timeSeries": {
"path": "timestamp",
"span": "daily"}}, {
"$serialChart": {}}]}





Notes
We're constantly receiving requests for new charts and metrics: check back often. Or, click the Follow button in the right menu to get email alerts when we update this article.