在 Rails 2.3.x 中是否有一种超级简单的方法来记录/报告页面浏览量? [英] Is there a super simple way to record/report page views in Rails 2.3.x?

查看:26
本文介绍了在 Rails 2.3.x 中是否有一种超级简单的方法来记录/报告页面浏览量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Rails 应用创建了一些非常简单的登录页面",我想知道访问者何时访问带有查看计数器"的网页.

My Rails app creates a handful of very simple "landing pages" and I'd like to know when a visitor comes to the web page with a "view counter."

是否有推荐的 gem、插件或一些代码,有人可以发送给我以帮助我?

Are there a recommended gem, plugin, or maybe some code someone can send to me to help me?

谢谢.

推荐答案

试试这个插件 .. https://github.com/iorum-ie/acts_as_viewable

它实际上会检查 IP 地址,因此在一段时间内不会重新计算来自同一 IP 的访问.

It actually checks IP address so visits from the same IP won't be recounted within a period of time.

这篇关于在 Rails 2.3.x 中是否有一种超级简单的方法来记录/报告页面浏览量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆