Skip to content
tpitale edited this page Aug 13, 2010 · 6 revisions

Once you have logged in (see Logging In) you can now find a profile, fetch all the profiles, or select one from the list.

Get the first profile for a web property id:

Garb::Profile.first('UA-XXXXXX-XX')

unless you have custom segmented profiles and need to use the table id like so:

Garb::Profile.first(Garb.to_google_analytics('12345678'))

OR simply

Garb::Profile.all

Get the first:

profile = Garb::Profile.all.first
Clone this wiki locally