add in basic analytics

This commit is contained in:
Oly 2017-03-01 09:01:26 +00:00
parent c1f806e436
commit 3882979af0
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
rm -R /app/staticfiles/*
python /app/manage.py collectstatic --noinput
python /app/manage.py compilescss

View File

@ -169,7 +169,12 @@
{% compress js %}
<script src="{% static 'js/project.js' %}"></script>
{% endcompress %}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};
ga('create', 'UA-63373181-1', 'auto');
ga('set', 'transport', 'beacon');
ga('send', 'pageview');
</script>
{% endblock javascript %}
</body>
</html>