Hi, we're currently bringing google analytics 4 (G...
# ask-ai
j
Hi, we're currently bringing google analytics 4 (GA4) data using the native Airbyte connector, all good including one custom report Now the team responsible for the data wants a second custom report with different dims and metrics, and we noticed that one of the dims is being grouped by, which messes up the metric values To give a more detailed explanation, the metric they're interested in is 'activeUsers', a count of how many users were active (logged in) in a single month, but they need to be able to filter by a certain dimension (landingPagePlusQueryString) to exclude unwanted values, and the only way we can filter is by adding bringing it in as a dimension. However, since there is no UserID for us to handle such cases, if the same user logs in twice on the same month with a different landingPagePlusQueryString that user will be counted twice on activeUsers, one for each query string value And according to the team who owns the data fetching the raw data so that we can create this table ourselves is also out of the question because GA4 does not offer user level data as a dimension. The available dimensions are already aggregated at the user level, so even if we fetch the data, we cannot accurately compute unique users ourselves Is there any way for us to filter by landingPagePlusQueryString without actually adding it as a dimension, to avoid the repeated user ID counts? If not, what would be our alternatives to achieve the desired table model?
k
Based on the available Airbyte documentation and community discussions, your challenge is a known limitation when working with GA4 data via the Airbyte connector: filtering by a dimension (like
landingPagePlusQueryString
) without including it as a dimension in the report is not natively supported in the standard custom report configuration. This is because, in GA4, filters are typically applied by including the field as a dimension, which then causes metrics like
activeUsers
to be split (grouped) by that dimension—leading to the double-counting issue you described. ### Can you filter by a dimension without grouping by it? As of the latest documentation and forum discussions, there is no supported way in the Airbyte GA4 connector to apply a filter on a dimension (such as
landingPagePlusQueryString
) without also including it as a dimension in the report.
This is a limitation of both the GA4 API and how Airbyte currently implements custom reports. The only way to filter is to add the dimension, which, as you noted, causes metrics to be grouped by that dimension and can inflate counts like
activeUsers
if users appear under multiple values for that dimension. - The [custom reports feature](https://docs.airbyte.com/integrations/sources/google-analytics-data-api#connector-specific-features) allows you to specify dimensions, metrics, and (optionally) cohort and pivot settings, but does not mention a way to filter by a dimension without grouping by it. - There is mention of filter expressions in the changelog and in a [GitHub issue](https://github.com/airbytehq/airbyte/issues/65559), but users report that the filter functionality does not work as expected or is not fully implemented. Several users have noted that filters do not actually exclude records as intended, and there are open issues about this behavior. ### Alternatives and Workarounds 1. Post-processing downstream: Since GA4 and Airbyte do not support filtering by a dimension without grouping, one common workaround is to fetch the data with the dimension included, then aggregate or filter the data downstream (e.g., in your data warehouse or BI tool) to remove unwanted values and deduplicate users. However, as you mentioned, without a user-level identifier, you cannot accurately deduplicate users across different values of
landingPagePlusQueryString
. 2. GA4 API limitations: The GA4 API itself does not provide user-level data for privacy reasons, and the available dimensions are already aggregated. This means that even outside of Airbyte, you would face the same limitation if you tried to fetch the data directly from GA4. 3. BigQuery Export (if available): If you have access to the raw event-level export of GA4 data in BigQuery (a GA4 360 feature or for properties with BigQuery export enabled), you could perform more granular filtering and deduplication there. However, you stated that fetching raw data is not an option for your team. 4. Monitor Airbyte and GA4 updates: There are ongoing discussions and open issues regarding filter support in Airbyte's GA4 connector. You may want to follow or contribute to [this GitHub issue](https://github.com/airbytehq/airbyte/issues/65559) to track progress or request improvements. ### Summary - Currently, you cannot filter by
landingPagePlusQueryString
without including it as a dimension, which will group and potentially double-count
activeUsers
.
- There is no workaround within Airbyte or the GA4 API to achieve this directly. - Downstream processing or access to raw event data (e.g., via BigQuery) are the only alternatives, but both have limitations. If your requirements are strict and none of the above workarounds are acceptable, you may need to reconsider the reporting approach or wait for future updates to the Airbyte connector or GA4 API that might address this limitation. For more details, see the [Airbyte GA4 connector documentation](https://docs.airbyte.com/integrations/sources/google-analytics-data-api#connector-specific-features) and the related [GitHub issue on filter support](https://github.com/airbytehq/airbyte/issues/65559).