From 28baf880b107e256edad104302b5d2dea4555690 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 7 Nov 2016 16:56:12 +0100 Subject: [PATCH] Add DEBUG filter for analytics --- app/templates/includes/footer_scripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/includes/footer_scripts.html b/app/templates/includes/footer_scripts.html index 83ad8646..d8603f1f 100644 --- a/app/templates/includes/footer_scripts.html +++ b/app/templates/includes/footer_scripts.html @@ -18,7 +18,7 @@ {% editable_loader %} {% endcompress %} -{% if settings.GOOGLE_ANALYTICS_ID and not request.user.is_staff %} +{% if settings.GOOGLE_ANALYTICS_ID and not request.user.is_staff and not settings.DEBUG %}