]> git.parisson.com Git - diggersdigest.git/commitdiff
add analytics
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 30 Sep 2015 00:02:40 +0000 (02:02 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 30 Sep 2015 00:02:40 +0000 (02:02 +0200)
app/diggersdigest/settings.py
app/templates/base.html
requirements-dev.txt

index 7da74bdb4a1aee61ed71ab15bb853da22ac17406..6c854a5d57c8635ed27a3dfc90d774eb35d09e23 100644 (file)
@@ -368,6 +368,7 @@ INSTALLED_APPS = (
     "payments.multipayments",
     'paypal.standard.ipn',
     "records",
+    "googletools",
 )
 
 # List of processors used by RequestContext to populate the context.
index 06b027715b2f88bf5ed9346f4979fb819382e2ae..d105bfeb27304e12df74db44bcd6f4416b99dd6e 100644 (file)
@@ -1,7 +1,7 @@
 <!doctype html>
 <html lang="{{ LANGUAGE_CODE }}"{% if LANGUAGE_BIDI %} dir="rtl"{% endif %}>
 {% load pages_tags mezzanine_tags i18n staticfiles %}
-
+{% load googletools %}
 <head>
 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <link rel="shortcut icon" href="{% static "img/favicon.ico" %}">
 <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
 
+{% block analytics %}
+{% site_verification_code %}
+{% analytics_code %}
+{% endif %}
+{% endblock analytics %}
+
 {% ifinstalled mezzanine.blog %}
 <link rel="alternate" type="application/rss+xml" title="RSS" href="{% url "blog_post_feed" "rss" %}">
 <link rel="alternate" type="application/atom+xml" title="Atom" href="{% url "blog_post_feed" "atom" %}">
index 1787476ba44ef9f348454a31546a8bc716cdbb6d..b33b8861b7e096a870d22c81504c686ba145bd6c 100644 (file)
@@ -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