Getting Google Analytic Entrance Sources using Gattica Ruby Gem
I am trying to get th开发者_如何学运维e entrance source from Google Analytic by using Gattica Gem, but I couldn't find any document on the internet. Have anyone met with this issue before? Please give me light. Thank you all so much.
I have found this as my solution. Thank you all
results = @analytic.get({
:start_date => '2009-01-01',
:end_date => date[:end_date],
:dimensions => ['year', "source"],
:metrics => ['visits']
})
Have a look at this, link It might solve most of your queries
https://github.com/chrisle/gattica
精彩评论