diff options
-rw-r--r-- | templates/web/bristol/header_extra.html | 2 | ||||
-rw-r--r-- | templates/web/bristol/tracking_code.html | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/templates/web/bristol/header_extra.html b/templates/web/bristol/header_extra.html new file mode 100644 index 000000000..d03e34e1f --- /dev/null +++ b/templates/web/bristol/header_extra.html @@ -0,0 +1,2 @@ +<script src="[% start %][% version('/cobrands/fixmystreet-uk-councils/js.js') %]"></script> +[% INCLUDE 'tracking_code.html' %] diff --git a/templates/web/bristol/tracking_code.html b/templates/web/bristol/tracking_code.html new file mode 100644 index 000000000..a8fefe229 --- /dev/null +++ b/templates/web/bristol/tracking_code.html @@ -0,0 +1,15 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] + +<script> + !function(b,r,i,s,t,o,l){b.GoogleAnalyticsObject=i;b[i]||(b[i]=function(){ + (b[i].q=b[i].q||[]).push(arguments)});b[i].l=+new Date;o=r.createElement(s); + l=r.getElementsByTagName(s)[0];o.src=t;l.parentNode.insertBefore(o,l)} + (window,document,'ga','script','https://www.google-analytics.com/analytics.js'); + + ga('create', 'UA-79501135-1', 'auto'); + ga('send', 'pageview'); +</script> + +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] |