宝石跟踪点击该网站获得不登录的次数?次数、网站

2023-09-11 09:47:21 作者:骚气

我建立一个网站上EC2 Rails框架。我下面精益创业的方法。

I am building a site on Rails framework on ec2. I am following Lean Startup approach.

问:

有没有一种宝石/方法来跟踪点击次数的网站有哪些?

Is there a gem/ way to track the number of hits the site have?

另外,每当用户花费在该网站?

Also the time a user spend on the site?

我不希望/出风头的用户登录。

I do not want/ be pushy to the users to login.

推荐答案

您可以使用宝石叫滑动统计。它是一个小的小片code,可插入任何机架启用Ruby的Web应用程序(任何Ruby网络构架可以与机架这些天工作),给你这是怎么回事的想法,而不必考虑引用记录等。下面是这个创业板GitHub的网页。 https://github.com/vidarh/sliding-stats

You could use a gem called Sliding Stats. Its a small little piece of code you can plug into any Rack enabled Ruby web app (any Ruby web-framework can work with Rack these days) to give you an idea of what's going on without having to look into referrer logs etc. Here's a github page for this gem https://github.com/vidarh/sliding-stats