Evan Morris
Evan Morris

Reputation: 21

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?

Upvotes: 2

Views: 2800

Answers (3)

Brett
Brett

Reputation: 1289

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

Upvotes: 2

Michael Nicolosi
Michael Nicolosi

Reputation: 71

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

Upvotes: 2

Helena
Helena

Reputation: 21

Not sure if there is a workaround but GA have said in April that they plan to add dateHourMinutes to GA4 API.

Upvotes: 1

Related Questions