diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-14 14:44:14 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-14 14:44:14 +0000 |
commit | fa66059f066eebfb9b1b671e3f9dbbdc5efc041d (patch) | |
tree | 2484a1169d0b4104ba51ccf3d71fd6ec4cf107fb | |
parent | 59c84e8f189ab4a4879280c0fe92a8e79d370dc4 (diff) |
Zurich GA account.
-rw-r--r-- | templates/web/zurich/tracking_code.html | 18 |
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 %] |