diff options
-rw-r--r-- | templates/web/peterborough/before_wrapper.html | 6 | ||||
-rw-r--r-- | templates/web/peterborough/header_extra.html | 1 | ||||
-rw-r--r-- | templates/web/peterborough/tracking_code.html | 15 |
3 files changed, 22 insertions, 0 deletions
diff --git a/templates/web/peterborough/before_wrapper.html b/templates/web/peterborough/before_wrapper.html new file mode 100644 index 000000000..506eafae4 --- /dev/null +++ b/templates/web/peterborough/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=UA-144500283-1" +height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> +<!-- End Google Tag Manager (noscript) --> +[% END %] diff --git a/templates/web/peterborough/header_extra.html b/templates/web/peterborough/header_extra.html index a008676e5..4aa99dd3c 100644 --- a/templates/web/peterborough/header_extra.html +++ b/templates/web/peterborough/header_extra.html @@ -1 +1,2 @@ +[% INCLUDE 'tracking_code.html' %] <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:900,400,700,300,100"> diff --git a/templates/web/peterborough/tracking_code.html b/templates/web/peterborough/tracking_code.html new file mode 100644 index 000000000..695aac833 --- /dev/null +++ b/templates/web/peterborough/tracking_code.html @@ -0,0 +1,15 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] + +<!-- Global Site Tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id=UA-144500283-1"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'UA-144500283-1'); +</script> + +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] |