Adding analytics to docs part of website

This commit is contained in:
Richard Green 2016-11-23 11:46:13 +00:00
parent 033a525001
commit 7a9ec487f3

View File

@ -1,6 +1,20 @@
{% extends "!layout.html" %}
{% block sidebartitle %}
{{ super() }}
<br>
<a href="api/index.html">API reference</a>
<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-87760032-1', 'auto');
ga('send', 'pageview');
</script>
{% endblock %}