Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics 4 API - Missing dateHourMinutes

It looks like Google Analytics 4 API doesn't offer reporting to the minutes. The closest I can see in the Query Explorer is Date + Hour.

Is there a way to obtain data accurate to the minutes with GA4 reporting API?

like image 458
Evan Morris Avatar asked Jul 23 '26 10:07

Evan Morris


2 Answers

Google Analytics 4 Data API added three new dimensions today: dateHourMinute, minute, and nthMinute. This page lists all dimensions and metrics available in the API.

These dimensions are compatible with some but not all other dimensions and metrics. For example, minute is compatible with eventCount and activeUsers, but minute is not compatible with newUsers. We're adding a new API method to show which dimensions and metrics are compatible with other dimensions and metrics.

Thanks, Brett

The Google Analytics Team

like image 57
Brett Avatar answered Jul 28 '26 15:07

Brett


One workaround could be to capture the hit timestamp as a custom dimension. Here's an example: https://www.simoahava.com/analytics/improve-data-collection-with-four-custom-dimensions/#4-hit-timestamp

Note that link I shared sets up a custom dimension for Universal Analytics, not GA4. So for GA4 you would need to capture it as an event parameter and then create the custom dimension in the GA4 interface.

Alternatively, you could enable the export to BigQuery and the following field is provided in the schema: event_timestamp

like image 42
Michael Nicolosi Avatar answered Jul 28 '26 15:07

Michael Nicolosi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!