Fosome / garb

A Ruby wrapper for the Google Analytics API
http://www.viget.com/extend/
654 stars 89 forks source link

Syntax for the Segments #120

Closed Facens closed 12 years ago

Facens commented 12 years ago

Hi, the syntax for the Segments highlighted in the wiki (https://github.com/vigetlabs/garb/wiki/Segments) is not working, just like the one for the filters. For the filters I found out the solution here (https://github.com/vigetlabs/garb/issues/60), but what about the Segments?

Moreover, is it possible to specify multiple Segments?

Thank you in advance, Andrea

Facens commented 12 years ago

fixed with

report.set_segment_id 'SEGMENTID'

The rest is similar to this gist https://gist.github.com/783915