-
Notifications
You must be signed in to change notification settings - Fork 89
Profiles
tpitale edited this page Dec 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::Management::Profile.all.detect {|profile| profile.web_property_id == 'UA-XXXXXX-XX'}
OR simply get the first:
profile = Garb::Management::Profile.all.first
Once you have a profile and some class which extend Garb::Model you can access them directly from a profile like so:
profile.exits(:filters => {:pageviews.gte => 200}, :sort => :pageviews)