Permalink
Browse files

Added Google Analytics tracking code

  • Loading branch information...
1 parent fb05908 commit 34615b5a207602b10a00e99df5b7dfcca6f7b510 @gnarea gnarea committed Apr 11, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 docs/source/_templates/layout.html
@@ -0,0 +1,18 @@
+{% extends "!layout.html" %}
+
+{%- block extrahead %}
+{{ super() }}
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22669445-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>
+{% endblock %}

0 comments on commit 34615b5

Please sign in to comment.