从Google Analytics(分析)导出数据

问题描述:

我使用PostgreSQL数据库在Ruby on Rails应用程序上工作。我听说过 Google Analytics(分析)数据导出API 。但是,在阅读那些文档后,我仍然对如何导出数据有点困惑。

I working on Ruby on Rails application using a PostgreSQL database. I have heard of the Data Export API for GA. However, after reading through there documentation I am still a little confused about how to export the data.

总之,我的目标是从GA导出摘要数据,turn它进入csv文件,然后将其插入我的数据库。任何方向如何做到这一点将非常感谢。

To summarize, my goal is to export the summary data from GA, turn it into a csv file, and then insert it into my database. Any direction in terms of how to do this would be greatly appreciated.

开始使用 Data Export API Client Libraries&示例代码

有一些Ruby示例。