Skip to content
Snippets Groups Projects
Commit a01f74e6 authored by alecbrooks's avatar alecbrooks
Browse files

Add Google Analytics tracking code from the template Not My Idea.

parent efe78737
No related branches found
No related tags found
No related merge requests found
{% if GOOGLE_ANALYTICS %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
pageTracker._trackPageview();
} catch(err) {}</script>
{% endif %}
\ No newline at end of file
......@@ -17,6 +17,8 @@
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css" />
</head>
<body>
{% if SITENAME -%}
......@@ -58,5 +60,6 @@
</div>
<div class="clear"></div>
</div>
{% include 'analytics.html' %}
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment