Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Trouble with GA4 API's dateHour parameter in the query explorer › Reply To: Trouble with GA4 API's dateHour parameter in the query explorer
-
Google Analytics 4 (GA4) API’s “dateHour” option is used to retrieve data down to the hour level. If you’re not getting any rows, it might be because the period you’ve selected doesn’t contain data at the hourly level. This may occur either because you selected a duration that is too short (i.e., an hour or less), or there is no data for that specific hour. Another possibility is if there’s an issue with how the query is configured. You might want to check if you have the correct parameters set (for instance, choosing the right property ID) and that the metrics you are querying are in the correct format. Remember that GA4 API needs a few hours to process realtime data, so if the timeframe is too close to the current time, data may not be available yet.