aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/stevenage/tracking_code.html
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2015-02-17 14:02:34 +0000
committerHakim Cassimally <hakim@mysociety.org>2015-02-17 14:02:34 +0000
commit99e58ca22d254ecddb6286b9a0cb611b7c0723e5 (patch)
tree8b8ca1c1d5833266c9dd5e929ea0889313bd3960 /templates/web/stevenage/tracking_code.html
parent2ffed24ccbd53d6d1b7381904c749ff6952ba24e (diff)
parentfb923da082116ca9b644c54be150c06611ff2d0b (diff)
Merge branch 'stevenage-ga'
Diffstat (limited to 'templates/web/stevenage/tracking_code.html')
-rw-r--r--templates/web/stevenage/tracking_code.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/web/stevenage/tracking_code.html b/templates/web/stevenage/tracking_code.html
new file mode 100644
index 000000000..e7c2bafd6
--- /dev/null
+++ b/templates/web/stevenage/tracking_code.html
@@ -0,0 +1,16 @@
+[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %]
+
+<script>
+ (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-21613820-7', 'auto');
+ ga('send', 'pageview');
+
+</script>
+
+[% ELSE %]
+<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" -->
+[% END %]