Merge pull request #34 from faulteh/master

Added analytics script
This commit is contained in:
Christopher Neugebauer 2016-07-01 10:45:40 +10:00 committed by GitHub
commit 5abf9ad3ab
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-80204707-1', 'auto');
ga('send', 'pageview');
</script>

View file

@ -116,7 +116,9 @@
{% block extra_script %}{% endblock %} {% block extra_script %}{% endblock %}
{% endblock %} {% endblock %}
{% block extra_body_base %} {% block extra_body_base %}
{% analytics %} {% block analytics %}
{% include "analytics.html" %}
{% endblock %}
{% block extra_body %}{% endblock %} {% block extra_body %}{% endblock %}
{% endblock %} {% endblock %}
</body> </body>