Commit a57a6280 by Renzo Lucioni

Remove page view events corresponding to Drupal pages

parent da511808
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
// Get current page URL and pull out the path // Get current page URL and pull out the path
path = window.location.href.split("/")[3] path = window.location.href.split("/")[3]
// Match on the current path and fire the appropriate pageview event // Match on the current path and fire the appropriate pageview event
if (path == "") { if (path == "register") {
// Home page viewed (path empty)
window.analytics.page("Home");
} else if (path == "register") {
// Registration page viewed // Registration page viewed
window.analytics.page("Registration"); window.analytics.page("Registration");
} else if (path == "login") { } else if (path == "login") {
...@@ -25,12 +22,6 @@ ...@@ -25,12 +22,6 @@
} else if (path == "dashboard") { } else if (path == "dashboard") {
// Dashboard viewed // Dashboard viewed
window.analytics.page("Dashboard"); 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 { } else {
// This event serves as a catch-all, firing when any other page is viewed // This event serves as a catch-all, firing when any other page is viewed
window.analytics.page("Other"); window.analytics.page("Other");
......
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