ga looks like it only likes if the code is pasted...hrmpf

This commit is contained in:
maxwell 2010-11-17 12:29:58 -08:00
parent ba620e5400
commit e959e529ff
2 changed files with 10 additions and 10 deletions

View file

@ -36,7 +36,16 @@
= csrf_meta_tag = csrf_meta_tag
= yield(:head) = yield(:head)
= javascript_include_tag 'vendor/ga' :javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17207587-5']);
_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);
})();
%body %body
- flash.each do |name, msg| - flash.each do |name, msg|

View file

@ -1,9 +0,0 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17207587-5']);
_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);
})();