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
41b0eb9d
Commit
41b0eb9d
authored
Oct 04, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #824 from MITx/feature/tomg/google-analytics
added google analytics to all pages without a course object
parents
b182b6e4
33378bba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
lms/templates/main.html
+17
-1
No files found.
lms/templates/main.html
View file @
41b0eb9d
...
...
@@ -11,7 +11,6 @@
<
%
static:js
group=
'main_vendor'
/>
<
%
block
name=
"headextra"
/>
<!--[if lt IE 9]>
<script src="${static.url('js/html5shiv.js')}"></script>
<![endif]-->
...
...
@@ -20,9 +19,26 @@
<%static:css group='ie-fixes'/>
<![endif]-->
<meta
name=
"path_prefix"
content=
"${MITX_ROOT_URL}"
>
% if course == false:
<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>
% endif
</head>
<body
class=
"<%block name='bodyclass'/>"
>
<
%
include
file=
"navigation.html"
/>
<section
class=
"content-wrapper"
>
${self.body()}
...
...
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