google analytics

This commit is contained in:
Nicolas Bally 2011-12-08 08:43:19 +01:00
parent 9cf3f9c466
commit 995210373d

View File

@ -29,6 +29,22 @@
= csrf_meta_tag
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27563989-1']);
_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>
%body
#public
#header