Plugins - Sitealizer Web Stats
Add to favoritesThis plugin lets you track visitors, referrers, robots, search terms and more. And all the data processing is done when viewing the stats and not when saving the data, so it shouldn’t influence on your site’s performance.
Usage
To track the visitors on your entire application, just edit your ApplicationController(application.rb):
class ApplicationController < ActionController::Base
include Sitealizer
before_filter :use_sitealizer
end
Or to track specific controllers:
class ApplicationController < ActionController::Base
include Sitealizer
end
class MyController < ApplicationController
before_filter :use_sitealizer
end
Viewing the stats
To view your stats just add "/sitealizer" to your main url:
http://www.example.com/sitealizer


I had a "layout not found" error while trying to load the view /sitealizer/. To fix this, I added the following line to init.rb :: SitealizerController.view_paths = [File.join(directory, 'lib/app/views')]
It doesn't work for me: uninitialized constant UserController::Sitealizer with rails (1.2.3)
Seems to require Rails 1.2 + Engines 1.2 (will throw "uninitialized constant SitemeterController" otherwise). This is probably obvious, but caught me..