From 326deb37c2f5385e176a70082e83b87aac8e8801 Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Mon, 18 Aug 2014 14:51:16 -0400 Subject: [PATCH] Mark calls to track() on pageload as noninteraction events --- lms/templates/widgets/segment-io.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lms/templates/widgets/segment-io.html b/lms/templates/widgets/segment-io.html index e3fec19206..5909ad64e3 100644 --- a/lms/templates/widgets/segment-io.html +++ b/lms/templates/widgets/segment-io.html @@ -32,23 +32,27 @@ if (url.indexOf("/register") > -1) { // Registration page viewed analytics.track("edx.bi.page.register.viewed", { - category: "pageview" + category: "pageview", + noninteraction: 1 }); } else if (url.indexOf("/login") > -1) { // Login page viewed analytics.track("edx.bi.page.login.viewed", { - category: "pageview" + category: "pageview", + noninteraction: 1 }); } else if (url.indexOf("/dashboard") > -1) { // Dashboard viewed analytics.track("edx.bi.page.dashboard.viewed", { - category: "pageview" + category: "pageview", + noninteraction: 1 }); } else { // This event serves as a catch-all, firing when any other page is viewed analytics.track("edx.bi.page.other.viewed", { category: "pageview", - url: location.host + location.pathname + location.search + url: location.host + location.pathname + location.search, + noninteraction: 1 }); }