Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › How can I retrieve the totals field in batchRunReports for GA4? › Reply To: How can I retrieve the totals field in batchRunReports for GA4?
-
Hey, no worries. Just a quick little tweak needed here. You’ll just have to add ‘TOTAL’ to the metricAggregations list in your request. Once you do that, you should start seeing the totals field in your response. Here is a link to the spot in the GA4 documentation that talks about it: [GA4 docs link](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#:~:text=see%20Pagination.-,metricAggregations,-%5B%5D). Hope that helps out, mate! Let me know how it goes.