Skip to content

Instantly share code, notes, and snippets.

@zackchandler
Created October 26, 2009 18:03
Show Gist options
  • Save zackchandler/218875 to your computer and use it in GitHub Desktop.
Save zackchandler/218875 to your computer and use it in GitHub Desktop.
require 'garb'
username = 'foo'
password = 'bar'
Garb::Session.login(username, password)
profile = Garb::Profile.all.select{ |p| p.title == 'foobar' }.first
options = {
:metrics => [ :visits ],
:dimensions => [ :date ]
}
report = Garb::Report.new(profile, options)
results = report.results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment