Using the Google Analytics API with Ruby, Open-Uri & Hpricot
Google Hacking, Programming, SEO | (1)
You may or may not have heard that Google has finally opened up their Analytics API to the public. You can read Googles official statement here.
I thought I'd show you all a quick crash introduction on how you can access the API using Ruby.
The following code uses Open-Uri to access the API and Hpricot to parse the response. In this example, we're going to authenticate with the API, and then we're going to use it to extract all the keywords (organic and paid) which have brought visitors to our site within the past year (limited to 100 keywords max)
NB: sorry ...