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
8ec2c34e
Commit
8ec2c34e
authored
Oct 30, 2012
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add google analytics to course info pages
parent
f82f4f53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
lms/templates/google_analytics.html
+11
-0
lms/templates/main.html
+2
-13
lms/templates/portal/course_about.html
+5
-0
No files found.
lms/templates/google_analytics.html
0 → 100644
View file @
8ec2c34e
<script
type=
"text/javascript"
>
var
_gaq
=
_gaq
||
[];
_gaq
.
push
([
'_setAccount'
,
'UA-35248639-1'
]);
_gaq
.
push
([
'_trackPageview'
]);
(
function
()
{
var
ga
=
document
.
createElement
(
'script'
);
ga
.
type
=
'text/javascript'
;
ga
.
async
=
true
;
ga
.
src
=
(
'https:'
==
document
.
location
.
protocol
?
'https://ssl'
:
'http://www'
)
+
'.google-analytics.com/ga.js'
;
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
s
.
parentNode
.
insertBefore
(
ga
,
s
);
})();
</script>
lms/templates/main.html
View file @
8ec2c34e
...
...
@@ -21,20 +21,9 @@
<meta
name=
"path_prefix"
content=
"${MITX_ROOT_URL}"
>
% if not course:
<script
type=
"text/javascript"
>
var
_gaq
=
_gaq
||
[];
_gaq
.
push
([
'_setAccount'
,
'UA-35248639-1'
]);
_gaq
.
push
([
'_trackPageview'
]);
(
function
()
{
var
ga
=
document
.
createElement
(
'script'
);
ga
.
type
=
'text/javascript'
;
ga
.
async
=
true
;
ga
.
src
=
(
'https:'
==
document
.
location
.
protocol
?
'https://ssl'
:
'http://www'
)
+
'.google-analytics.com/ga.js'
;
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
s
.
parentNode
.
insertBefore
(
ga
,
s
);
})();
</script>
<
%
include
file=
"google_analytics.html"
/>
% endif
</head>
<body
class=
"<%block name='bodyclass'/>"
>
...
...
lms/templates/portal/course_about.html
View file @
8ec2c34e
...
...
@@ -7,7 +7,12 @@
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"headextra"
>
<
%
include
file=
"../google_analytics.html"
/>
</
%
block>
<
%
block
name=
"js_extra"
>
% if not registered:
%if user.is_authenticated():
## If the user is authenticated, clicking the enroll button just submits a form
...
...
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