开发者

How to collect data from Google Analytics?

How can I create 开发者_开发技巧a reporting application that collects data from Google Analytics, processes it and returns it for my own custom reporting solution?


It depends on the requirements. You plan to run your own analytics afterwards? Or Archives will be used to predict future trends. As such Google Analytics can do it but if you want to do more with the Analytics data, I guess it is good to archive data on daily basis. You can start here http://code.google.com/apis/analytics/docs/gdata/gdataDeveloperGuide.html


You didn't precise how you would like to collect the data, but I suppose you'll want to run some server script to fetch and process data.

I used the following library to get analytics data from PHP and was quite pleased with it:

http://code.google.com/p/gapi-google-analytics-php-interface/

For Rubyists, I would recommend GARB, which has decent features and traction:

github.com/vigetlabs/garb

Note: add http:// to the link for garb, since I could not post more than one link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜