I'd pay hard cache for a Peepcode on the Google Analytics API &
Gattica gem (or the best gem going) on a generic Rails app - one of
the open source Rails CMS's, perhaps.
http://github.com/cannikin/gattica/tree/master
The structure would be something along the lines of;
• Introduction to Google Analytics API
• Example integrations (I like what MailChimp have done)
• Walk through of the app we're augmenting, and brief reasoning for
doing so
• Installing the gem, getting ready for hacking
• TDD/BDD step-by-step integration of GAAPI, i.e. detail the feature
(e.g. hits per day), write the test (mocking & stubbing), do the
implementation, and check our new analytics data being pulled in to
the view.
I appreciate there's potential issues with using an open source CMS
(the more complex the codebase, the more the brittle the Peepcode),
but maybe one of the past Peepcode apps would do the trick, presuming
it'll be a realistic example of how people might actually be using the
GAAPI in the wild (barnyard animal apps, for example, have always made
learning much harder for me).
Thanks