Adding analytics to foote

Now has two layouts - one for normal access, the other for usage on public docsite
This commit is contained in:
Richard Green 2016-11-23 11:50:16 +00:00
parent 7a9ec487f3
commit 2673ebdfcf
2 changed files with 21 additions and 14 deletions

View File

@ -1,20 +1,6 @@
{% 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 %}

View File

@ -0,0 +1,21 @@
<!-- -->
{% extends "!layout.html" %}
{% block sidebartitle %}
{{ super() }}
<br>
<a href="api/index.html">API reference</a>
{% endblock %}
{% block footer %}
<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 %}