Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a57a6280
Commit
a57a6280
authored
10 years ago
by
Renzo Lucioni
Browse files
Options
Downloads
Patches
Plain Diff
Remove page view events corresponding to Drupal pages
parent
da511808
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/templates/widgets/segment-io.html
+1
-10
1 addition, 10 deletions
lms/templates/widgets/segment-io.html
with
1 addition
and
10 deletions
lms/templates/widgets/segment-io.html
+
1
−
10
View file @
a57a6280
...
...
@@ -13,10 +13,7 @@
// Get current page URL and pull out the path
path
=
window
.
location
.
href
.
split
(
"
/
"
)[
3
]
// Match on the current path and fire the appropriate pageview event
if
(
path
==
""
)
{
// Home page viewed (path empty)
window
.
analytics
.
page
(
"
Home
"
);
}
else
if
(
path
==
"
register
"
)
{
if
(
path
==
"
register
"
)
{
// Registration page viewed
window
.
analytics
.
page
(
"
Registration
"
);
}
else
if
(
path
==
"
login
"
)
{
...
...
@@ -25,12 +22,6 @@
}
else
if
(
path
==
"
dashboard
"
)
{
// Dashboard viewed
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
{
// This event serves as a catch-all, firing when any other page is viewed
window
.
analytics
.
page
(
"
Other
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment