Permalink
Browse files

Fix GA tracking code

  • Loading branch information...
1 parent 8d4402f commit a93d801d9e4f0060d5943baad846a9b0beb22baa @rwdaigle committed Feb 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/analytics.haml
View
@@ -1,4 +1,4 @@
-- if google_analytics_code = Nesta::Config.production['GOOGLE_ANALYTICS_CODE']
+- if ENV['RACK_ENV'] == 'production' && google_analytics_code = ENV['NESTA_PRODUCTION__GOOGLE_ANALYTICS_CODE']
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{google_analytics_code}']);

0 comments on commit a93d801

Please sign in to comment.