-
Integrating Google Analytics GA4 API in Ruby on Rails using the google-apis-analyticsdata_v1beta gem
Hey pals, I’ve hit a roadblock with my code and I could use a little help. I’m getting the “request invalid” error and despite my best efforts, I still haven’t been able to figure out how to fix it.
`gem 'google-apis-analyticsdata_v1beta', '~> 0.21.0'
... // Rest of the code
A bit of background on what I’m trying to do: I’ve tried using the ‘google-apis-analyticsdata_v1beta’ gem which is supposed to help us send the API along with authorisation.
Then, I created custom user fields with custom events so I could pull that data back into my app to create a report. But when I try to send the request with the API, I’m getting an error message. I can’t seem to figure out the correct syntax and due to lack of detailed documentation, it’s been tough to get it right. If someone could lend a hand, that’d be awesome!
Oh, and just to add, I’m trying to create a job that will run regularly to fetch data from Google Analytics to my app.
Log in to reply.