add google analytics

This commit is contained in:
ErickSkrauch 2019-05-29 17:37:24 +03:00
parent 381b7a3051
commit f0d7bae0a9
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -3,3 +3,18 @@
{% extends "!layout.html" %} {% extends "!layout.html" %}
{% set css_files = css_files + ['_static/style.css'] %} {% set css_files = css_files + ['_static/style.css'] %}
{% block footer %}
{{ super() }}
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-45299905-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-45299905-2');
</script>
{% endblock %}