Describe the bug
I have been investigating the issue for a while. The report I am generating includes the following:
Metrics: averageSessionDuration, engagementRate, newUser, sessions, and totalRevenue
Dimensions: date and/or sessionDefaultChannelGroup
When comparing the results with the API response for the same call, the results differ for averageSessionDuration, engagementRate, and sessions. - For averageSessionDuration and engagementRate both sum and average aggregations return numbers that do not match the Google Dev Tool. For sessions, the aggregation being used is sum.
newUsers and totalRevenue are an exact match.
A couple of questions I have on top of what might be causing such discrepancy:
What version of the API is currently being used on the website?
The existing documentation indicates that the "total" metric aggregation for all metrics is SUM. However, it seems like the response returns the average for both averageSessionDuration and engagementRate.
Screenshots
Additional context
The troubleshooting was done using both date and sessionDefaultChannelGroup, just date and just sessionDefaultChannelGroup inside of the Google Dev Tool. None produced the expected results.
What page is this happening on https://ga-dev-tools.google/ga4/query-explorer/
Describe the bug I have been investigating the issue for a while. The report I am generating includes the following:
When comparing the results with the API response for the same call, the results differ for averageSessionDuration, engagementRate, and sessions. - For averageSessionDuration and engagementRate both sum and average aggregations return numbers that do not match the Google Dev Tool. For sessions, the aggregation being used is sum. newUsers and totalRevenue are an exact match.
A couple of questions I have on top of what might be causing such discrepancy:
Screenshots
![image](https://github.com/googleanalytics/ga-dev-tools/assets/37941329/5f304aa9-bf51-4982-b864-1a6d5b2b9fdc)
Additional context The troubleshooting was done using both date and sessionDefaultChannelGroup, just date and just sessionDefaultChannelGroup inside of the Google Dev Tool. None produced the expected results.