Merge pull request #824 from MITx/feature/tomg/google-analytics
added google analytics to all pages without a course object
This commit is contained in:
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user