mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 04:56:21 +10:00
added google analytics (why not?)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ html
|
||||
title Ocelots
|
||||
= stylesheet_link_tag 'application', media: 'all'
|
||||
= csrf_meta_tags
|
||||
= javascript_include_tag '/ga.js'
|
||||
|
||||
body
|
||||
|
||||
|
||||
@@ -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);
|
||||
})();
|
||||
Reference in New Issue
Block a user