Explore
Topics
Recent Comments
- These code examples would certainly benefit from some TLC applied. Like formatting and getting...
Evgeniy Dolzhenko
- I had checked, and tested a lot of time. It work well and flexible on IE, FF, and Chrome *But, in Chrome...
Phong Tran
- hi! i am working with cascades and i would like to use a hands detector and apply a kalman filter to follow...
rachel
- These code examples would certainly benefit from some TLC applied. Like formatting and getting...
Related Posts
RightSignatureRightSignature makes it simple to get documents signed online.
Create a free account in seconds, upload your document, and enter recipient information. RightSignature manages the entire process, providing you regular updates as each party views and signs your document.
Top Content Powered by Google Analytics
I found myself contemplating writing a full blown content rating and reporting system for a simple blog just to get an accurate representation of the popularity of posts. I wanted it to be based on unique hits but I didn’t want to deal with the data and the requests that come along with such a system for such a trivial usage.
Obviously there are plenty of options out there but for a simple remote solution, I normally fall back on Google Analytics for its ease of use and Adwords integration. It’s Google, they have an API for everything right? Wrong.
What do I want to do exactly?
A simple top posts feed that is powered by a Google Analytics “Top Content” report and updated automatically on a daily or weekly basis.
Options?
Well, you can schedule a report of Top Content to be sent out in XML, CSV, etc via email on intervals… so there some solutions out there (http://blogoscoped.com/archive/2008-01-17-n73.html) that involve sending the report to a scripted email address or a Google Group so that it can have a parsable public URL, but I was looking for something a bit simpler.
Well, you can schedule a report of Top Content to be sent out in XML, CSV, etc via email on intervals… so there some solutions out there (http://blogoscoped.com/archive/2008-01-17-n73.html) that involve sending the report to a scripted email address or a Google Group so that it can have a parsable public URL, but I was looking for something a bit simpler.
Rugalytics (written by Rob McKinnon, rock on!) – Exactly what I was looking for. Basically mechanizes the login to Google and handles the navigation through Google Analytics in Ruby library format. A few lines of code and a quick entry to my crontab and I threw out my manual Google Analytics CSV uploader/parser.
profile.content_drilldown_report(:url => "/path_to_blog/posts/")is the report I am using which gives me all the relevant information about each post over a given time period.
Conclusion
There are other options, but of these I went with the latter choice. Obviously changes to the Google Analytics formatting could break it, but it is exactly what I wanted for a small nonchalant application.