Feedburner and Google Analytics integration for Rails

I’ve just released a Rails plugin for basic integration with Feedburner
and Google Analytics that fetches data from the two services and
produces gruff graphs.

Prerequisites are:

* A Google Analytics account
* A FeedBurner account (and awareness turned on)
* Hpricot
* Gruff (Rmagick) - for the graph support

The api goes like this:

Feedburner:

Gets feed data and creates graph

feed = Burnalytics::FeedBurner.new(“Eribium”)
data = feed.get_data
graph = Burnalytics::Graphs::FeedBurner.new(data)
graph.generate

creates:

public/images/graphs/feedcirculation.png

public/images/graphs/feedhits.png

And for Google analytics

List analytics profiles

ana = Burnalytics::Analytics.new
if ana.login(“email”,“pass”)
puts ana.list_profiles
end

Gets data for a particular profile id

ana = Burnalytics::Analytics.new
if ana.login(“email”,“pass”)
data ana.get_date(profId)
Burnalytics::Graphs::Analytics.new(data).generate
end

creates

public/images/graphs/pageviews.png

public/images/graphs/uniqueviews.png

public/images/graphs/visitsbysource.png

You can get it here:
http://www.eribium.org/wp-content/uploads/2006/10/burnalytics.zip

Cool! Thanks, Alex.

Starr

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs