aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/bathnes/before_wrapper.html6
-rw-r--r--templates/web/bathnes/tracking_code.html8
2 files changed, 14 insertions, 0 deletions
diff --git a/templates/web/bathnes/before_wrapper.html b/templates/web/bathnes/before_wrapper.html
new file mode 100644
index 000000000..8da680a9f
--- /dev/null
+++ b/templates/web/bathnes/before_wrapper.html
@@ -0,0 +1,6 @@
+[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %]
+<!-- Google Tag Manager (noscript) -->
+<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NTQSP7S"
+height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
+<!-- End Google Tag Manager (noscript) -->
+[% END %]
diff --git a/templates/web/bathnes/tracking_code.html b/templates/web/bathnes/tracking_code.html
index 386b42e0e..a6d832e21 100644
--- a/templates/web/bathnes/tracking_code.html
+++ b/templates/web/bathnes/tracking_code.html
@@ -8,6 +8,14 @@
gtag('config', 'UA-418184-9');
</script>
+<!-- Google Tag Manager -->
+<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
+new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
+j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
+'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
+})(window,document,'script','dataLayer','GTM-NTQSP7S');</script>
+<!-- End Google Tag Manager -->
+
<!-- Hotjar Tracking Code for www.bathnes.gov.uk -->
<script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:909367,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); </script>
[% ELSE %]