From 229ad20d36f093d8a6d4526aa67d22d34812ee02 Mon Sep 17 00:00:00 2001 From: Eric Light Date: Thu, 21 Sep 2017 08:34:36 +1200 Subject: [PATCH] Move Google Analytics import into the section (#138) * Move Google Analytics import into the section * Changes to move Google Tag Manager into tag, while leaving the noscript section in the tag. --- templates/base.html | 13 ++++++++----- templates/partial/gtm.html | 3 --- templates/partial/gtm_noscript.html | 5 +++++ 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 templates/partial/gtm_noscript.html diff --git a/templates/base.html b/templates/base.html index 105a236..a13baa6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -36,6 +36,10 @@ {% endif %} + {% if GOOGLE_ANALYTICS %} + {% include "partial/ga.html" %} + {% endif %} + @@ -75,10 +79,13 @@ }); {% endif %} + {% if GOOGLE_TAG_MANAGER %} + {% include "partial/gtm.html" %} + {% endif %} {% if GOOGLE_TAG_MANAGER %} - {% include "partial/gtm.html" %} + {% include "partial/gtm_noscript.html" %} {% endif %}