From c10e10e047c06769e705323daf0975e542628fc5 Mon Sep 17 00:00:00 2001 From: Eric Light Date: Wed, 20 Sep 2017 21:09:42 +1200 Subject: [PATCH] Changes to move Google Tag Manager into tag, while leaving the noscript section in the tag. --- templates/base.html | 5 ++++- templates/partial/gtm.html | 3 --- templates/partial/gtm_noscript.html | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 templates/partial/gtm_noscript.html diff --git a/templates/base.html b/templates/base.html index 02db623..a13baa6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -79,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 %}