-
GA4 BetaAnalyticsDataClient – Limited filtering options for hourly/minute results and channel grouping
Hey folks,
So I’m grappling with this quirk in the GA4 API where the dateHourMinute dimension doesn’t jive with the default channel grouping dimension. I can’t figure out how to sort the results by hour/minute while excluding a specific channel grouping. Trying to filter the dimension on channel grouping, like Direct for example, just results in an error message:
“message”: “Please remove dateHourMinute to make the request compatible. The request’s dimensions & metrics are incompatible. To learn more, see https://ga-dev-tools.web.app/ga4/dimensions-metrics-explorer/“,
If you look at dateHourMinute in the dimension metrics explorer, all the other channel grouping dimensions are grayed out. They just don’t play well together.
Now, back in the GA3 (Universal Analytics) Reporting, it was possible to filter using the system default segments, like gaid::-6,gaid::-7 and so on. That allowed for dateHourMinute reporting while filtering out certain traffic, like direct, from the reports. Problem is, I’m not seeing a way to use the GA4 API to filter data for specific default system segments.
Has anyone managed to figure out how to pull dateHourMinute data from the GA4 API and filter on specific types of default channel groups, like Direct, Paid search, and so forth?
Many thanks,
Jack Kwakman
Log in to reply.