From c3d875d9db3c52e0655c7f0624e80b15e0e6f152 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 30 Sep 2015 02:02:40 +0200 Subject: [PATCH] add analytics --- app/diggersdigest/settings.py | 1 + app/templates/base.html | 8 +++++++- requirements-dev.txt | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/diggersdigest/settings.py b/app/diggersdigest/settings.py index 7da74bd..6c854a5 100644 --- a/app/diggersdigest/settings.py +++ b/app/diggersdigest/settings.py @@ -368,6 +368,7 @@ INSTALLED_APPS = ( "payments.multipayments", 'paypal.standard.ipn', "records", + "googletools", ) # List of processors used by RequestContext to populate the context. diff --git a/app/templates/base.html b/app/templates/base.html index 06b0277..d105bfe 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,7 +1,7 @@ {% load pages_tags mezzanine_tags i18n staticfiles %} - +{% load googletools %} @@ -11,6 +11,12 @@ +{% block analytics %} +{% site_verification_code %} +{% analytics_code %} +{% endif %} +{% endblock analytics %} + {% ifinstalled mezzanine.blog %} diff --git a/requirements-dev.txt b/requirements-dev.txt index 1787476..b33b886 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,3 +2,4 @@ -e git+https://github.com/Parisson/cartridge-payments.git#egg=cartridge-payments -e git+https://github.com/Parisson/django-paypal.git#egg=django-paypal-0.2.5 django-countries +django-google-tools -- 2.39.5