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
a57a6280
Commit
a57a6280
authored
Apr 14, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove page view events corresponding to Drupal pages
parent
da511808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
+1
-10
lms/templates/widgets/segment-io.html
+1
-10
No files found.
lms/templates/widgets/segment-io.html
View file @
a57a6280
...
@@ -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"
);
...
...
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