implemented google analytics

Created a Google Analytics partial in app/views and added it to application.html.erb
Runs for all environments, a solution would be <%= render :partial => "layouts/ga" if RAILS_ENV == "development" %>, but it is returning an error.