corrected error in analytics.rb