diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-07 10:19:43 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-08 09:31:56 +0000 |
commit | e72eac5840832a0292e0cfd5e3ea8ac218608502 (patch) | |
tree | 2daa35b366d49e2e8872a683df975e823d81c1f5 /templates | |
parent | f90c524fb9f633f706f9e06262cf415382b5f650 (diff) |
[Buckinghamshire] New tracking code.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/buckinghamshire/before_wrapper.html | 6 | ||||
-rw-r--r-- | templates/web/buckinghamshire/footer.html | 10 | ||||
-rw-r--r-- | templates/web/buckinghamshire/header_extra.html | 1 | ||||
-rw-r--r-- | templates/web/buckinghamshire/tracking_code.html | 13 | ||||
-rw-r--r-- | templates/web/lincolnshire/before_wrapper.html | 6 | ||||
-rw-r--r-- | templates/web/lincolnshire/tracking_code.html | 4 |
6 files changed, 26 insertions, 14 deletions
diff --git a/templates/web/buckinghamshire/before_wrapper.html b/templates/web/buckinghamshire/before_wrapper.html new file mode 100644 index 000000000..18c7ae51e --- /dev/null +++ b/templates/web/buckinghamshire/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-N6KL83F" +height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> +<!-- End Google Tag Manager (noscript) --> +[% END %] diff --git a/templates/web/buckinghamshire/footer.html b/templates/web/buckinghamshire/footer.html index adeb2e983..81553e00e 100644 --- a/templates/web/buckinghamshire/footer.html +++ b/templates/web/buckinghamshire/footer.html @@ -19,15 +19,5 @@ [% INCLUDE 'common_footer_tags.html' %] -<script nonce="[% csp_nonce %]"> -/*<![CDATA[*/ -(function() { -var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; -sz.src = '//siteimproveanalytics.com/js/siteanalyze_300776.js'; -var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); -})(); -/*]]>*/ -</script> - </body> </html> diff --git a/templates/web/buckinghamshire/header_extra.html b/templates/web/buckinghamshire/header_extra.html new file mode 100644 index 000000000..8a977495f --- /dev/null +++ b/templates/web/buckinghamshire/header_extra.html @@ -0,0 +1 @@ +[% INCLUDE 'tracking_code.html' %] diff --git a/templates/web/buckinghamshire/tracking_code.html b/templates/web/buckinghamshire/tracking_code.html new file mode 100644 index 000000000..2af08af09 --- /dev/null +++ b/templates/web/buckinghamshire/tracking_code.html @@ -0,0 +1,13 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] + +<!-- 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-N6KL83F');</script> +<!-- End Google Tag Manager --> + +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] diff --git a/templates/web/lincolnshire/before_wrapper.html b/templates/web/lincolnshire/before_wrapper.html new file mode 100644 index 000000000..d85c3a87a --- /dev/null +++ b/templates/web/lincolnshire/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-MP7MF9" +height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> +<!-- End Google Tag Manager (noscript) --> +[% END %] diff --git a/templates/web/lincolnshire/tracking_code.html b/templates/web/lincolnshire/tracking_code.html index 42d88a817..ec19eba44 100644 --- a/templates/web/lincolnshire/tracking_code.html +++ b/templates/web/lincolnshire/tracking_code.html @@ -8,10 +8,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= })(window,document,'script','dataLayer','GTM-MP7MF9');</script> <!-- End Google Tag Manager --> -<!-- Google Tag Manager (noscript) --> -<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MP7MF9" -height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> -<!-- End Google Tag Manager (noscript) --> [% ELSE %] <!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> [% END %] |