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?

  • Daniel

    Member
    18 February 2023 at 9:16 am

    It seems you’re having some difficulty obtaining the total field from the GA4 API, despite it being easier to do so in GA3. The first thing to do is to ensure that the metrics you’re requesting support the total field. Not all metrics do, so it’s worth checking the GA4 documentation. There may be specific requests needed to pull the total field in GA4. Moreover, double-check syntax and structure of your API call as a slight error can cause data not being pulled correctly. If you still encountered issues, consider reaching out to Google’s support service or engage with the developer communities online to get advice.