Commit 3aee8a29 by Renzo Lucioni

Merge pull request #4876 from edx/web-analytics/noninteraction-events

Mark calls to track() on pageload as noninteraction events
parents b9eaf329 326deb37
......@@ -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
});
}
......
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