diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-07-15 11:11:59 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-07-15 11:11:59 +0100 |
commit | fcc46472c7abd45cdafd2c3bcb6bc673ebd300b5 (patch) | |
tree | 9dbc150542bbb1160d619bfae2e63baa1cda211f | |
parent | 6e0d2f66af0da08f6748cbfafeeaaa26c5ff076c (diff) | |
parent | b6fb8bad1399db172c0f3231e4a7961d6c58033c (diff) |
Merge branch 'issues/freshdesk/76-gtm'
-rw-r--r-- | templates/web/bathnes/before_wrapper.html | 6 | ||||
-rw-r--r-- | templates/web/bathnes/tracking_code.html | 8 |
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 %] |