aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/bristol/tracking_code.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/bristol/tracking_code.html')
-rw-r--r--templates/web/bristol/tracking_code.html15
1 files changed, 15 insertions, 0 deletions
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 %]