GA Reporting API v4 ga:users count not matching the UI

465 Views Asked by At

The total number that was returned from the API is actually higher compared to what's being shown in the UI.

Screenshot attached shows Users total count is 5,275. (https://i.stack.imgur.com/3DEyB.jpg)

enter image description here

However, the API shows 6152 users in total. (https://i.stack.imgur.com/bJANs.jpg)

enter image description here

Any ideas on how to get valid users count?

1

There are 1 best solutions below

0
Linda Lawton - DaImTo On

The report you are looking at on Google analytics is

Dimension

  • Date

Metric

  • users
  • sessions
  • pageviews

You have added datehour in your report the results of the report will not be the same unless the request is the same as the report you are looking at