aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2013-03-14 12:05:58 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-03-14 15:36:27 +0000
commit8884d896d6be9826d412615d37a8a4926289ed6a (patch)
tree94371fc25630cf397336a6c47bf5a0e6ea6af784 /templates
parent1b957d3d944b2ec31fdf2e898f936ff1a6d77e7b (diff)
add Oxfordshire Google analytics tracking code
Diffstat (limited to 'templates')
-rw-r--r--templates/web/oxfordshire/tracking_code.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/web/oxfordshire/tracking_code.html b/templates/web/oxfordshire/tracking_code.html
new file mode 100644
index 000000000..1ed17651b
--- /dev/null
+++ b/templates/web/oxfordshire/tracking_code.html
@@ -0,0 +1,22 @@
+[% IF c.config.BASE_URL == "http://www.fixmystreet.com" %]
+
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22094787-2']);
+ _gaq.push(['_setDomainName', '.oxfordshire.gov.uk']);
+ _gaq.push(['_setCustomVar',1,'level1','Roads and transport',3]);
+ _gaq.push(['_setCustomVar',2,'level2','FixMyStreet',3]);
+ _gaq.push(['_trackPageview']);
+ jQuery(document).ready( function () {
+ jQuery.occ.gaico({
+ messageIcon: '/cms/sites/all/themes/publicsite/images/gaico_exclamation.png',
+ permanentMessageIcon: '/cms/sites/all/themes/publicsite/images/gaico_question.png'
+ });
+ });
+
+</script>
+
+[% ELSE %]
+<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "http://www.fixmystreet.com" -->
+[% END %]