diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:52:02 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:52:02 +0100 |
commit | 6798a63297e4954344eefbf51147a971f30b58d2 (patch) | |
tree | aff6cf7bc8f3e6de3271dcaccd81cebd8276e44e /templates/web/bexley/tracking_code.html | |
parent | 323d3a632453bfcd10360fe2c2b9e4d684f350c8 (diff) | |
parent | 8c8b62e2b3a8af1b1f6fafe4080296a3826b7c1e (diff) |
Merge branch 'bexley'
Diffstat (limited to 'templates/web/bexley/tracking_code.html')
-rw-r--r-- | templates/web/bexley/tracking_code.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/web/bexley/tracking_code.html b/templates/web/bexley/tracking_code.html new file mode 100644 index 000000000..dff0b4607 --- /dev/null +++ b/templates/web/bexley/tracking_code.html @@ -0,0 +1,15 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] +<script nonce="[% csp_nonce %]"> +(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ +(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), +m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) +})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + +ga('create', 'UA-96119487-1', 'auto'); +ga('set', 'anonymizeIp', true); +ga('send', 'pageview'); + +</script> +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] |