ITeye博客

Sitealizer Web Stats

notreally · 2008-05-04 18:52 · ruby && rails · Markdown

This 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.

这个插件可以从多个方面统计网站流量,并进行系统的分析。比方说:什么时候网站流量最大,哪里来的流量最大,那些网址是最受欢迎的,爬虫爬过多少,统统一目了然。

It’s very easy using it:

To track the visitors on your entire application, just edit your ApplicationController (application.rb):


# This is the before_filter method that you will call when
# using the Sitealizer Web Stats plugin
class ApplicationController < ActionController::Base
    include Sitealizer
    before_filter :use_sitealizer
  end

Don't forget to add the following line to your config/routes.rb:

  map.connect '/sitealizer/:action', :controller => 'sitealizer'

install sitealizer

script/plugin install http://opensvn.csie.org/sitealizer

For more info => http://sitealizer.rubyforge.org

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。