-
How can I retrieve the totals field in batchRunReports for GA4?
“Hey guys, I’m bummed. I’ve been messing around with GA3(UA) and I could totally get the total of each metric from their API batchGet endpoint, without having to dig through each row. It was such a breeze!
But then I moved to GA4 and guess what? No total field came back from the API. Have any of you gone through the same muddle and figured it out? I noticed a similar question floating around but it was sooo into a specific language that I couldn’t make head or tail of it. BTW, I’m using Postman to create the request.
I even tried to make sense of the GA4 documentation, it promised a totals field in the response object but played coy about how to actually ask for it.
Take a look at what I got back from GA4 – not a single sign of the totals field. And look at my GA3 response – the totals field is right there, waving at me!
So, yeah, I would really appreciate if any of you could shed some light on this. Thanks a ton!”
Log in to reply.