Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3aee8a29
Commit
3aee8a29
authored
Aug 19, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4876 from edx/web-analytics/noninteraction-events
Mark calls to track() on pageload as noninteraction events
parents
b9eaf329
326deb37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lms/templates/widgets/segment-io.html
+8
-4
No files found.
lms/templates/widgets/segment-io.html
View file @
3aee8a29
...
@@ -32,23 +32,27 @@
...
@@ -32,23 +32,27 @@
if
(
url
.
indexOf
(
"/register"
)
>
-
1
)
{
if
(
url
.
indexOf
(
"/register"
)
>
-
1
)
{
// Registration page viewed
// Registration page viewed
analytics
.
track
(
"edx.bi.page.register.viewed"
,
{
analytics
.
track
(
"edx.bi.page.register.viewed"
,
{
category
:
"pageview"
category
:
"pageview"
,
noninteraction
:
1
});
});
}
else
if
(
url
.
indexOf
(
"/login"
)
>
-
1
)
{
}
else
if
(
url
.
indexOf
(
"/login"
)
>
-
1
)
{
// Login page viewed
// Login page viewed
analytics
.
track
(
"edx.bi.page.login.viewed"
,
{
analytics
.
track
(
"edx.bi.page.login.viewed"
,
{
category
:
"pageview"
category
:
"pageview"
,
noninteraction
:
1
});
});
}
else
if
(
url
.
indexOf
(
"/dashboard"
)
>
-
1
)
{
}
else
if
(
url
.
indexOf
(
"/dashboard"
)
>
-
1
)
{
// Dashboard viewed
// Dashboard viewed
analytics
.
track
(
"edx.bi.page.dashboard.viewed"
,
{
analytics
.
track
(
"edx.bi.page.dashboard.viewed"
,
{
category
:
"pageview"
category
:
"pageview"
,
noninteraction
:
1
});
});
}
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
analytics
.
track
(
"edx.bi.page.other.viewed"
,
{
analytics
.
track
(
"edx.bi.page.other.viewed"
,
{
category
:
"pageview"
,
category
:
"pageview"
,
url
:
location
.
host
+
location
.
pathname
+
location
.
search
url
:
location
.
host
+
location
.
pathname
+
location
.
search
,
noninteraction
:
1
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment