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
fe735e29
Commit
fe735e29
authored
Nov 17, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5972 from edx/will/remove-page-view-events
Remove redundant pageview segment.io events (ECOM-619)
parents
ec74398d
1ebb8ef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
lms/templates/widgets/segment-io.html
+0
-31
No files found.
lms/templates/widgets/segment-io.html
View file @
fe735e29
...
...
@@ -9,37 +9,6 @@
%
if
user
.
is_authenticated
():
window
.
identifyUser
(
"${user.id}"
,
"${user.email}"
,
"${user.username}"
);
%
endif
// Get current page URL
var
url
=
window
.
location
.
href
// Match on the current url and fire the appropriate pageview event
if
(
url
.
indexOf
(
"/register"
)
>
-
1
)
{
// Registration page viewed
analytics
.
track
(
"edx.bi.page.register.viewed"
,
{
category
:
"pageview"
,
noninteraction
:
1
});
}
else
if
(
url
.
indexOf
(
"/login"
)
>
-
1
)
{
// Login page viewed
analytics
.
track
(
"edx.bi.page.login.viewed"
,
{
category
:
"pageview"
,
noninteraction
:
1
});
}
else
if
(
url
.
indexOf
(
"/dashboard"
)
>
-
1
)
{
// Dashboard viewed
analytics
.
track
(
"edx.bi.page.dashboard.viewed"
,
{
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
,
noninteraction
:
1
});
}
</script>
<!-- end Segment.io -->
% else:
...
...
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