mirror of
https://github.com/corda/corda.git
synced 2024-12-24 15:16:45 +00:00
Adding analytics to foote
Now has two layouts - one for normal access, the other for usage on public docsite
This commit is contained in:
parent
7a9ec487f3
commit
2673ebdfcf
docs/source/_templates
@ -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 %}
|
||||
|
21
docs/source/_templates/layout_for_doc_website.html
Normal file
21
docs/source/_templates/layout_for_doc_website.html
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user