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
1 changed files with 16 additions and 1 deletions

View File

@ -2,4 +2,19 @@
{# Import the theme's layout. #}
{% 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 %}