Include google analytics in online version of docs. See #1892

This commit is contained in:
Peter Vlugter 2012-05-10 11:03:43 +12:00
parent 6e22fe7ea7
commit d0e498ca16
5 changed files with 39 additions and 7 deletions

View file

@ -21,6 +21,23 @@
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}
{% block extrahead %}
{%- if include_analytics %}
<!--Google Analytics-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21117439-1']);
_gaq.push(['_setDomainName', 'akka.io']);
_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 %}
{% endblock %}
{% block content %}
{%- block akkaheader %}
<div class="navbar">