From a57a62807eac6386685ab9aa41f8197c0c7ef2ae Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Mon, 14 Apr 2014 18:20:13 -0400 Subject: [PATCH] Remove page view events corresponding to Drupal pages --- lms/templates/widgets/segment-io.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lms/templates/widgets/segment-io.html b/lms/templates/widgets/segment-io.html index 21825767a7..8d4133c75c 100644 --- a/lms/templates/widgets/segment-io.html +++ b/lms/templates/widgets/segment-io.html @@ -13,10 +13,7 @@ // Get current page URL and pull out the path path = window.location.href.split("/")[3] // Match on the current path and fire the appropriate pageview event - if (path == "") { - // Home page viewed (path empty) - window.analytics.page("Home"); - } else if (path == "register") { + if (path == "register") { // Registration page viewed window.analytics.page("Registration"); } else if (path == "login") { @@ -25,12 +22,6 @@ } else if (path == "dashboard") { // Dashboard viewed window.analytics.page("Dashboard"); - } else if (path == "course-list") { - // Course listing page viewed - window.analytics.page("Course Listing"); - } else if (path == "course") { - // Course about page viewed - window.analytics.page("Course About"); } else { // This event serves as a catch-all, firing when any other page is viewed window.analytics.page("Other");