Commit ab067046 by Renzo Lucioni

Fully rename instructor dashboard analytics app

parent 3599e2ee
......@@ -285,7 +285,7 @@ def _section_send_email(course_key, access, course):
def _section_analytics(course_key, access):
""" Provide data for the corresponding dashboard section """
section_data = {
'section_key': 'analytics',
'section_key': 'instructor_analytics',
'section_display_name': _('Analytics'),
'access': access,
'get_distribution_url': reverse('get_distribution', kwargs={'course_id': course_key.to_deprecated_string()}),
......
......@@ -204,7 +204,7 @@ class GradeDistributionDisplay
# Analytics Section
class Analytics
class InstructorAnalytics
constructor: (@$section) ->
@$section.data 'wrapper', @
......@@ -239,4 +239,4 @@ class Analytics
_.defaults window, InstructorDashboard: {}
_.defaults window.InstructorDashboard, sections: {}
_.defaults window.InstructorDashboard.sections,
Analytics: Analytics
InstructorAnalytics: InstructorAnalytics
......@@ -168,8 +168,8 @@ setup_instructor_dashboard_sections = (idash_content) ->
constructor: window.InstructorDashboard.sections.Email
$element: idash_content.find ".#{CSS_IDASH_SECTION}#send_email"
,
constructor: window.InstructorDashboard.sections.Analytics
$element: idash_content.find ".#{CSS_IDASH_SECTION}#analytics"
constructor: window.InstructorDashboard.sections.InstructorAnalytics
$element: idash_content.find ".#{CSS_IDASH_SECTION}#instructor_analytics"
,
constructor: window.InstructorDashboard.sections.Metrics
$element: idash_content.find ".#{CSS_IDASH_SECTION}#metrics"
......
if $('.instructor-dashboard-wrapper').length == 1
analytics.track "edx.bi.course.legacy_instructor_dashboard.loaded",
category: "courseware"
location: window.location.pathname
dashboard_page: $('.navbar .selectedmode').text()
......@@ -47,7 +47,8 @@
} else {
// This event serves as a catch-all, firing when any other page is viewed
analytics.track("edx.bi.page.other.viewed", {
category: "pageview"
category: "pageview",
url: location.host + location.pathname + location.search
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment