简体   繁体   English

Rails中的页面视图

[英]Page views in Rails

I am not sure what is the best way to deal with this. 我不确定解决这个问题的最佳方法是什么。 I want to display page views and user views (How many unique users viewed a page). 我想显示页面视图和用户视图(有多少独特用户查看了页面)。

Is there a plugin for this? 有插件吗?

login_count is of course easy to check though. login_count当然很容易检查。 Just not sure about views. 只是不确定意见。 Google Analytics does the job well but I don't know whether it's to good to go through analytics integration. Google Analytics可以很好地完成工作,但我不知道通过分析集成是否合适。

Any help? 有帮助吗? Thanks. 谢谢。 Happy Holidays! 节日快乐!

我推荐这个宝石: 印象派

there is a plugin called railstat i used it and it works. 有一个名为railstat的插件,我使用它,它的工作原理。 you may need to update it to the latest and greatest rails however. 您可能需要将其更新为最新且最好的轨道。 even if you look at their code you'll see some good examples of how to do it. 即使你看看他们的代码,你也会看到一些如何做到这一点的好例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM