Skip to content
Snippets Groups Projects
Commit 0585396e authored by william light's avatar william light
Browse files

Merge pull request #2 from alecbrooks/master

Add Google Analytics tracking code
parents 13ca805e a01f74e6
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 @@ ...@@ -17,6 +17,8 @@
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" /> <link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css" /> <link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css" />
</head> </head>
<body> <body>
{% if SITENAME -%} {% if SITENAME -%}
...@@ -58,5 +60,6 @@ ...@@ -58,5 +60,6 @@
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{% include 'analytics.html' %}
</body> </body>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment