Questions tagged [garb-gem]

19 questions
28
votes
5 answers

OAuth 2.0 with Google Analytics API v3

I used to be able to query the Google Analytics API with my account's login & password. Google is now using OAuth for authentication which is great... The only issue is that I only need ONE access token. I don't wanna allow other users to fetch…
lpdahito
  • 556
  • 2
  • 10
  • 16
4
votes
3 answers

Cannot get oAuth2 Access Token for Google Analytics API

I am using Rails + Garb Gem (Sija Branch) + omniauth-google-oauth2 Gem and I can successfully authenticate with the Google Analytics API and extract data that our app is generating when using a user login, e.g.: Garb::Session.login('USERNAME',…
4
votes
2 answers

How can I connect garb with a token from omniauth_google_oauth2?

I need to connect to Google Analytics. I'm using omniauth_google_oauth2 for authenticating the user with the app, and this gives me a token. The problem is that I need to connect to this user's Google Analytics account. To connect GA to my app I'm…
2
votes
1 answer

Is Google Analytics data fetched via Garb ruby gem sampled

Is the data fetched from Google Analytics profile via Garb sampled? We fetch results via Garb from a GA profile for a certain date range as follows: class Downloads extend Garb::Model metrics :totalEvents dimensions :eventAction, :eventLabel,…
Alok Swain
  • 6,409
  • 5
  • 36
  • 57
2
votes
2 answers

Is Gattica gem (RoR) still maintained/supported?

I would like to start reading some Google Analytics (GA) data in my RoR project, and from what I discovered the 2 main tools for that are Gattica and Garb. Gattica seems to be more easy and simpler to use, however I'm concerned that it haven't been…
user2339344
  • 951
  • 2
  • 12
  • 22
2
votes
0 answers

How do I pull Google analytics data into a rails app for multiple users who each have their own site?

I have a rails app where users can create projects. For each project, I want to allow my users to associate a google account with the project and then pull in relevant google analytics data (i.e. page views, organic traffic, paid traffic) to be…
Cam Norgate
  • 630
  • 10
  • 21
1
vote
1 answer

How to start with garb-gem in Rails?

I am a ruby on rails newbie and like to get some data from the google analytics api with the garb gem. But I struggle at the very beginning. Does anyone have a little sample app to retrieve some data that I can use as a starting point? KR, Fabian
Fawyd
  • 1,435
  • 3
  • 13
  • 19
1
vote
1 answer

Avoid repeated calls to an API in Jekyll Ruby plugin

I have written a Jekyll plugin to display the number of pageviews on a page by calling the Google Analytics API using the garb gem. The only trouble with my approach is that it makes a call to the API for each page, slowing down build time and also…
cboettig
  • 12,377
  • 13
  • 70
  • 113
1
vote
2 answers

Getting Google Analytics API "User Rate Limit Exceeded. Please sign up", even when first request of the day

I'm using the Ruby gem Garb to pull some view counts from Google Analytics. I can authenticate with no problem using my username/password. When I attempt to pull data, however, I get the response:
modulaaron
  • 2,856
  • 3
  • 24
  • 28
1
vote
0 answers

Google Analytic with grub gives me 404 error.

I am beginner to ror development.I am developing small RoR application in which i want to integrate Google analytic. I am using Garb gem for thid According to gem I used Garb::Session.login(username, password)// for initial session setup after…
nilkash
  • 7,408
  • 32
  • 99
  • 176
1
vote
1 answer

AND OR filter in Ruby on rails

I have a question: how do i write 2 conditions in filters params? :page_path.eql => "/teams/1" or :page_path.eql => 'teams/2' it works for one condition, but dont work with two:( output = Exits.results(profile, :filters => {:page_path.eql =>…
Tran duy Khoa
  • 59
  • 1
  • 1
  • 6
0
votes
1 answer

How to get particular data from the Openstruct

I am using garb gem to fetch the data from the google analytics and I getting the data in Openstruct format and I am struggling to parse it and get the desired values out. #
Jeevan Dongre
  • 4,627
  • 13
  • 67
  • 129
0
votes
2 answers

To fetch page view data between two dates using in Google Analytics using Garb gem

I am developing a reporting tool using Google Analytics API. I am using Garb I am able to pull the data. The challenge I am facing is how do I specif icy the start_date and end_date to fetch the between two dates. class Exits extend…
Jeevan Dongre
  • 4,627
  • 13
  • 67
  • 129
0
votes
1 answer

Fetching Google Analytics profiles using Garb

I use Garb(0.9.8) to fetch data from Google Analytics from our server directly using OAuth1. As Google only supports OAuth2 now so I switched to Signet gem and used a service account to get a access_token from the server directly as we need only…
Alok Swain
  • 6,409
  • 5
  • 36
  • 57
0
votes
1 answer

Rails conventions: Garb model

I'm using the Garb gem to access Google Analytics data for my site. I've created the model that extends Garb::Model, but I can't find any information on Rails conventions for which directory should contain such a table-less model; is it just…
eirikir
  • 3,802
  • 3
  • 21
  • 39
1
2