Skip to content

Commit

Permalink
add Oxfordshire Google analytics tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Whiteland authored and dracos committed Mar 14, 2013
1 parent 1b957d3 commit 8884d89
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions templates/web/oxfordshire/tracking_code.html
Original file line number Diff line number Diff line change
@@ -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 %]

0 comments on commit 8884d89

Please sign in to comment.