From 563a607998b97ac2845f9eb7fd81f832416b3fa8 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Thu, 7 Feb 2013 10:51:20 -0500 Subject: [PATCH] Analytics. --- .../templates/blogs/themes/default/base.html | 14 ---- .../blogs/themes/pro-adams/base.html | 31 +++++++- templates/base.html | 78 ++++++++++++------- 3 files changed, 80 insertions(+), 43 deletions(-) diff --git a/blogs/templates/blogs/themes/default/base.html b/blogs/templates/blogs/themes/default/base.html index 5141705..8b92053 100644 --- a/blogs/templates/blogs/themes/default/base.html +++ b/blogs/templates/blogs/themes/default/base.html @@ -77,17 +77,3 @@ {% endif %} {% endblock %} -{% block analytics %} - {% if blog_user.profile.google_analytics_tracking_id %} - - {% endif %} -{% endblock %} diff --git a/blogs/templates/blogs/themes/pro-adams/base.html b/blogs/templates/blogs/themes/pro-adams/base.html index 5cff562..46444c8 100644 --- a/blogs/templates/blogs/themes/pro-adams/base.html +++ b/blogs/templates/blogs/themes/pro-adams/base.html @@ -121,11 +121,9 @@ s.parentNode.insertBefore(t, s); })(); - {% endif %} - {% if blog_user.profile.google_analytics_tracking_id %} + {% if blog_user.profile.google_analytics_tracking_id %} + + {% endif %} + {% if blog_user.profile.gauges_site_id %} + + {% endif %} {% endif %} diff --git a/templates/base.html b/templates/base.html index 3239772..16bc6b1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -373,31 +373,6 @@ {% include 'snipts/snipt-js-template.html' %} {% include 'snipts/snipt-edit-js-template.html' %} - {% if not debug %} - - - {% endif %} {% if request.user.is_authenticated %} {% if not debug %} {% block intercom %} @@ -436,7 +411,58 @@ {% endif %} {% endif %} - {% block analytics %}{% endblock %} + {% if not debug %} + + + {% if blog_user.profile.google_analytics_tracking_id %} + + {% endif %} + {% if blog_user.profile.gauges_site_id %} + + {% endif %} + {% endif %}