aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/zurich/tracking_code.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/web/zurich/tracking_code.html b/templates/web/zurich/tracking_code.html
new file mode 100644
index 000000000..9c7a46c3e
--- /dev/null
+++ b/templates/web/zurich/tracking_code.html
@@ -0,0 +1,18 @@
+[% IF c.config.BASE_URL == "http://www.fixmystreet.com" %]
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-38427437-1']);
+ _gaq.push (['_gat._anonymizeIp']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
+[% ELSE %]
+<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "http://www.fixmystreet.com" -->
+[% END %]