Skip to content
Browse files

Added Google Analytics to <head>

  • Loading branch information...
1 parent 3de07ad commit 14e23344e54660d0a64fc99c5b307e9c1a0cdeda @whiteinge whiteinge committed
Showing with 14 additions and 0 deletions.
  1. +14 −0 doc/_templates/layout.html
View
14 doc/_templates/layout.html
@@ -120,6 +120,20 @@
{%- endblock %}
{%- block extrahead %} {% endblock %}
+
+ {%- block analytics %}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-26984928-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 %}
</head>
<body id="saltstack.org"><div class="container">
{% block header %}

0 comments on commit 14e2334

Please sign in to comment.
Something went wrong with that request. Please try again.