With this gem you can track your user activity (devise feature only), slowest controllers, user browsers and platforms. It's like newrelic, but better.
How to install
- Add in Gemfile
gem 'snapstats'
- In your routes.rb add
mount Snapstats::Engine, :at => '/snap'
- Install and start your Redis server (http://redis.io/topics/quickstart)
- Create
initializers/snapstats.rb
and add params
Snapstats::EventLogger.start({
:devise_model => { :model => :user, :login_fields => [:email, :username] },
:redis => { :host => 'localhost', :port => 6379 },
:disable_logging => false
})
Visit http://localhost:3000:/snap to see result
This project rocks and uses MIT-LICENSE