added google analytics (why not?)

This commit is contained in:
Mark Ryall
2012-10-20 15:48:36 +10:00
parent 4d84eecc94
commit d790860e07
4 changed files with 12 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ html
= stylesheet_link_tag '/bootstrap/css/bootstrap-responsive.min.css'
= stylesheet_link_tag '/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.css'
= csrf_meta_tags
= javascript_include_tag '/ga.js'
body
+1
View File
@@ -6,6 +6,7 @@ html
= stylesheet_link_tag '/bootstrap/css/bootstrap.min.css'
= stylesheet_link_tag '/bootstrap/css/bootstrap-responsive.min.css'
= csrf_meta_tags
= javascript_include_tag '/ga.js'
body
+1
View File
@@ -4,6 +4,7 @@ html
title Ocelots
= stylesheet_link_tag 'application', media: 'all'
= csrf_meta_tags
= javascript_include_tag '/ga.js'
body
+9
View File
@@ -0,0 +1,9 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35730418-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);
})();