Learn business growth with Google Analytics 4 Forums Google Analytics 4 Mismatch between GA Reporting API v4 ga:users count and UI displayed count

  • Mismatch between GA Reporting API v4 ga:users count and UI displayed count

    Posted by Samuel on 13 August 2022 at 12:16 pm

    Hey guys, I’m noticing something weird. The number from the API is more than what’s showing on the UI. I attached screenshots for better understanding.

    The UI is showing a total of 5,275 users
    (See this)

    enter image description here

    On the other hand, I’m seeing 6,152 users from the API.
    (Check here)

    enter image description here

    Anyone got any tips to get the correct user count?

    Oliver replied 12 months ago 3 Members · 2 Replies
  • 2 Replies
  • Rishi

    Member
    20 April 2023 at 5:20 am

    Hey, it seems like the report you’re referring to on Google analytics is comprised of several dimensions, including ‘Date’ as well as a few metrics, namely ‘users’, ‘sessions’ and ‘pageviews’.

    Now, I noticed that you’ve added ‘datehour’ to your report. This likely causes a discrepancy in your results unless your request is identical to the report you’re looking at. So, to get an accurate user count, I’d suggest making sure your requests match the report parameters. Cheers!

  • Oliver

    Member
    14 May 2023 at 4:05 pm

    There can be many reasons for this discrepancy. One reason could be caching or some delay in data reflecting in the UI; it might not be real-time. Try clearing the cache or refreshing, or give it some time to see if it updates itself. Another possibility is if the UI is filtered in any way, i.e., it might be excluding some kinds of users, while the API counts all users. To solve this, check for any pre-applied filters or conditions on the UI that might be limiting the number of users it’s showing. Lastly, there might be a bug in either the software displaying the UI or the API. It might be a good idea to engage the professionals who developed these platforms and bring the discrepancy to their attention.

Log in to reply.