在 Rails 中构建分析仪表板

发布于 2024-09-05 19:34:25 字数 149 浏览 10 评论 0原文

我正在寻找构建一个 Rails 应用程序来对我公司收集的数据进行内部报告(制作图表或一般数据可视化、创建报告、显示统计分析等)。

什么对构建这个有帮助?例如,我应该熟悉的任何 Rails/Javascript 库,或者我应该查看的任何开源分析应用程序或现有仪表板工具?

I'm looking to build a Rails app to do internal reporting (make charts or general data visualizations, create reports, show statistical analyses, etc.) on data my company collects.

What would be helpful in building this? For example, any Rails/Javascript libraries I should be familiar with, or any open source analytics apps or existing dashboard tools I should look at?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

記憶穿過時間隧道 2024-09-12 19:34:26

Google Visualization API 是在应用程序中获取图表的简单方法。您还可以查看 Protovis 以及可能的 InfoVis 工具包

Google Visualization API is an easy way to get charts in your application. You could also have a look at Protovis and possibly InfoVis Toolkit.

卸妝后依然美 2024-09-12 19:34:26

事实上,我现在正在做几乎完全相同的事情,所以我知道你正在经历什么。对于 ruby​​ on Rails,有一种叫做 Garb 的宝石。到目前为止,它对我来说效果很好。示例:

results = []
Garb::Session.login(analytics_email_address, analytics_password)
web_properties = Garb::Profile.all #you can filter here with a clojure or something
for profile in web_properties
  report = Garb::Report.new(profile, start_date, end_date)
  report.metrics MY_METRICS #you can read about these on the analytics api docs
  report.dimensions MY_DIMENSIONS #same here
  results << report.results
end
#do more stuff

这是一个简单/快速/肮脏的示例,但它有效;您可以在此处获取有关指标和维度的信息:

http: //code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html

和 Garb 信息位于此处:

http://www.viget.com/extend/introducing-garb-access-the-google-analytics-data -export-api-with-ruby/

我知道报告确实令人沮丧,所以祝您好运!

I'm actually doing almost the exact same thing right now, so I know what you are going through. For ruby on rails, there's a gem out there called Garb. So far it has worked pretty well for me. Example:

results = []
Garb::Session.login(analytics_email_address, analytics_password)
web_properties = Garb::Profile.all #you can filter here with a clojure or something
for profile in web_properties
  report = Garb::Report.new(profile, start_date, end_date)
  report.metrics MY_METRICS #you can read about these on the analytics api docs
  report.dimensions MY_DIMENSIONS #same here
  results << report.results
end
#do more stuff

This is a simple/quick/dirty example, but it works; you can get the information you need about the metrics and dimensions here:

http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html

and Garb information here:

http://www.viget.com/extend/introducing-garb-access-the-google-analytics-data-export-api-with-ruby/

I know that reporting is really frustrating, so I wish you the best of luck!

请别遗忘我 2024-09-12 19:34:26

如果您有大量数据,请不要忘记创建数据摘要。例如,计算一天的所有页面浏览量并将它们存储在“日”表左右。否则你的应用程序将变得非常反应迟钝。不要忘记 Ruby 1.8 在统计和数学方面很糟糕(慢)

Don 't forget to create summaries of your data if you have lots of data. For example calculate all pageviews for a single day and store them in a Day table or so. Otherwise your app will become very unresponsive. Dont forget that Ruby 1.8 sucks for stats and math (slow)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文