diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index f2e7fba5e1..52332d78a9 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -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()}), diff --git a/lms/static/coffee/src/instructor_dashboard/analytics.coffee b/lms/static/coffee/src/instructor_dashboard/instructor_analytics.coffee similarity index 99% rename from lms/static/coffee/src/instructor_dashboard/analytics.coffee rename to lms/static/coffee/src/instructor_dashboard/instructor_analytics.coffee index 86d7dec1ff..7bab6838af 100644 --- a/lms/static/coffee/src/instructor_dashboard/analytics.coffee +++ b/lms/static/coffee/src/instructor_dashboard/instructor_analytics.coffee @@ -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 diff --git a/lms/static/coffee/src/instructor_dashboard/instructor_dashboard.coffee b/lms/static/coffee/src/instructor_dashboard/instructor_dashboard.coffee index 1235feaceb..dec365f6ae 100644 --- a/lms/static/coffee/src/instructor_dashboard/instructor_dashboard.coffee +++ b/lms/static/coffee/src/instructor_dashboard/instructor_dashboard.coffee @@ -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" diff --git a/lms/static/coffee/src/instructor_dashboard_tracking.coffee b/lms/static/coffee/src/instructor_dashboard_tracking.coffee deleted file mode 100644 index e32f5f57bd..0000000000 --- a/lms/static/coffee/src/instructor_dashboard_tracking.coffee +++ /dev/null @@ -1,5 +0,0 @@ -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() diff --git a/lms/templates/instructor/instructor_dashboard_2/analytics.html b/lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html similarity index 100% rename from lms/templates/instructor/instructor_dashboard_2/analytics.html rename to lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html diff --git a/lms/templates/widgets/segment-io.html b/lms/templates/widgets/segment-io.html index df8f9e0a3f..e3fec19206 100644 --- a/lms/templates/widgets/segment-io.html +++ b/lms/templates/widgets/segment-io.html @@ -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 }); }