Enable analytics in production

This commit is contained in:
Danielle McLean 2017-11-01 16:18:48 +11:00
parent 06278935b6
commit 4b4ab324cc
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
5 changed files with 32 additions and 15 deletions

View file

@ -69,6 +69,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'analytical',
'annoying',
'compressor',
'debug_toolbar',

View file

@ -23,3 +23,5 @@ STATIC_URL = 'https://cdn.00dani.me/'
MEDIA_URL = STATIC_URL + 'media/'
META_SITE_DOMAIN = '00dani.me'
META_FB_APPID = '145311792869199'
GOOGLE_ANALYTICS_PROPERTY_ID = 'UA-109060843-1'

View file

@ -1,6 +1,7 @@
{% load compress favtags lemoncurry_tags meta static theme_colour %}<!doctype html>
{% load analytical compress favtags lemoncurry_tags meta static theme_colour %}<!doctype html>
<html lang="en" class="{% block html_class %}{% endblock %}">
<head{% meta_namespaces %}>{% site_name as site_name %}{% request_uri request as uri %}{% request_origin request as origin %}
{% analytical_head_top %}
<base href="{{ origin }}" />
<title class="p-name">{% if title %}{{ title }} ~ {% endif %}{{ site_name }}</title>
<meta charset="utf-8" />
@ -34,8 +35,10 @@
{% block styles %}{% endblock %}
{% endcompress %}
<script type="text/javascript" src="https://use.fontawesome.com/4fbab4ae27.js"></script>
{% analytical_head_bottom %}
</head>
<body>
{% analytical_body_top %}
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<a class="navbar-brand" rel="home" href="{% url 'home:index' %}">{% site_name %}</a>
@ -74,5 +77,6 @@
<script src="{% static 'tippy.js/tippy.standalone.js' %}"></script>
{% block foot %}{% endblock %}
{% endcompress %}
{% analytical_body_bottom %}
</body>
</html>