Apparently the Google Analytics code won't get compiled in production without an ERB extension

This commit is contained in:
Erik Michaels-Ober 2011-09-03 13:42:09 -07:00
parent b9dd869b0c
commit 7f844c970b
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20825280-2']);
_gaq.push(['_setDomainName', '.adoptahydrant.org']);
_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);
})();