---
title: "Sitealizer Web Stats"
author: "notreally"
date: "2008-05-04T18:52:03Z"
tags: []
slug: "sitealizer-web-stats"
draft: false
lastmod: "2008-05-04T18:52:03Z"
id: 189482
url: "https://notreally.iteye.com/blog/189482"
---

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 (<span style="color:red">application.rb</span>):


```ruby

# 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/<span style="color:red">routes.rb</span>:

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

```ruby
script/plugin install http://opensvn.csie.org/sitealizer
```


For more info => <http://sitealizer.rubyforge.org>