From: yomguy Date: Mon, 9 Jul 2012 11:46:15 +0000 (+0200) Subject: add google analytics tools X-Git-Tag: 0.7-dev~29 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=75513ace744e379875fcc4168629ac2f371b8bca;p=teleforma.git add google analytics tools --- diff --git a/example/settings.py b/example/settings.py index c2a1d270..c6c41505 100644 --- a/example/settings.py +++ b/example/settings.py @@ -145,6 +145,7 @@ INSTALLED_APPS = ( 'timezones', 'jqchat', # 'follow', + 'googletools', ) TEMPLATE_CONTEXT_PROCESSORS = ( diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html index a533dfe0..66e1aa8f 100644 --- a/teleforma/templates/telemeta/base.html +++ b/teleforma/templates/telemeta/base.html @@ -2,6 +2,7 @@ {% load i18n %} {% load telemeta_utils %} {% load teleforma_tags %} +{% ifloaded "googletools" %}{% load googletools %}{% endifloaded %} {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} @@ -171,8 +172,12 @@ alt="logo" /> {% endblock layout %} {% block analytics %} +{% ifloaded "googletools" %} +{% analytics_code %} +{% endifloaded %} {% endblock analytics %} +