From: Guillaume Pellerin Date: Wed, 30 Sep 2015 00:02:40 +0000 (+0200) Subject: add analytics X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c3d875d9db3c52e0655c7f0624e80b15e0e6f152;p=diggersdigest.git add analytics --- 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