Added analytics script
This commit is contained in:
parent
3c41f1083f
commit
c2e4b04027
2 changed files with 17 additions and 1 deletions
14
pinaxcon/templates/analytics.html
Normal file
14
pinaxcon/templates/analytics.html
Normal 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>
|
|
@ -116,7 +116,9 @@
|
|||
{% block extra_script %}{% endblock %}
|
||||
{% endblock %}
|
||||
{% block extra_body_base %}
|
||||
{% analytics %}
|
||||
{% block analytics %}
|
||||
{% include "analytics.html" %}
|
||||
{% endblock %}
|
||||
{% block extra_body %}{% endblock %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue