Hi <@U04S8PLJWMT> I have some GA4 connectors runni...
# ask-ai
s
Hi @kapa.ai I have some GA4 connectors running on incremental append but the sync seems to do a lot of work. Some have a start date of a long time ago and they initially sync about 3M records. And afterwards, every daily sync is about the same, some days even more. Could you help explain this?
k
What you're describing—where every incremental sync for your GA4 connectors continues to process millions of records, similar to the initial sync—suggests that the incremental logic is not working as intended. There are a few common causes for this behavior in Airbyte: 1. Cursor Field Granularity: Incremental syncs rely on a cursor field (often a timestamp or date) to determine which records are new or updated since the last sync. If the cursor field (e.g.,
ga_date
) is not granular enough (for example, it only contains the date, not the time), then all records for a given day may be re-synced every time, leading to duplicate or repeated data loads. This is a known issue with some analytics connectors, including GA4, where the lack of a timestamp in the cursor field causes Airbyte to re-fetch large amounts of data on each sync. Users have reported that this leads to both missing and duplicated rows, and that the only real solution is to use a more granular cursor if available, or to request this feature from the connector maintainers. If the API or connector does not support a more granular cursor, this limitation will persist [Forum Post: Google Analytics V4 - Incremental does not work](https://discuss.airbyte.io/t/2804), [Forum Post: Universal analytics connector issue](https://discuss.airbyte.io/t/3552). 2. API or Connector Limitations: Some APIs (including Google Analytics) may not support filtering or incremental extraction in a way that Airbyte can leverage efficiently. If the connector cannot filter records by a precise "last updated" timestamp, it may have to re-fetch large windows of data and deduplicate them on the destination side, which is inefficient and can result in high data volumes for every sync [Forum Post: Universal analytics connector issue](https://discuss.airbyte.io/t/3552). 3. Configuration Issues: If the incremental sync is not properly configured (e.g., the cursor field is not set, or the start date is too far in the past), Airbyte may re-fetch all data from the start date on every sync. Double-check your connector configuration to ensure the cursor field is set correctly and that the sync mode is truly incremental. What you can do: - Check if your cursor field is set to a date-only field (like
ga_date
). If so, and if the API does not provide a more granular field, this is likely the root cause. - If possible, adjust the cursor to a more granular field (e.g., a timestamp). - Consider narrowing the lookback window or adjusting the start date if you do not need the full historical range on every sync. - If the connector or API does not support more granular incremental sync, you may need to periodically clean up duplicates or consider alternative sync strategies. This is a known limitation with some analytics connectors, and unless the connector or API is updated to support more granular incremental extraction, the issue will persist [Forum Post: Google Analytics V4 - Incremental does not work](https://discuss.airbyte.io/t/2804), [Forum Post: Universal analytics connector issue](https://discuss.airbyte.io/t/3552). If you need only the latest snapshot of your data, you might want to consider using a different sync mode, such as Incremental - Append + Deduped, or periodically running cleanup jobs to retain only the latest instance of each record [Finding the Latest Snapshot of data](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#finding-the-latest-snapshot-of-data).
s
@kapa.ai I see there are a couple of date type fields: date, date + hour and date + hour + minute. But the Query Explorer also says I can only filter on Date range and not by hour/minute. I'm already using the date field so I'm curious if changing that would make any difference. Also, could you tell me more about why / how Airbyte will do a full resync if the start date is far in the past?
k
A message from kapa.ai
Based on the information in the knowledge sources: ### 1. Would changing the cursor field from
date
to
date + hour
or
date + hour + minute
help? If the API (in this case, GA4) only allows filtering on the
date
field and not on more granular fields like
date + hour
or
date + hour + minute
, then changing the cursor field in Airbyte to a more granular field will not make a difference. Airbyte’s incremental sync relies on the ability to filter data at the source using the cursor field. If the API only supports filtering by date, Airbyte cannot take advantage of more granular fields, even if they exist in the data. This means you will continue to see the same behavior: all records for a given date may be re-synced, leading to large sync volumes and possible duplicates, especially if new data can be added to a given date after the initial sync. This is a known limitation and is discussed in several user reports and documentation. The lack of a granular cursor field (and the inability to filter by hour/minute) is the root cause of repeated large syncs and duplicate data in incremental mode for GA4 and similar connectors [Forum Post: Universal analytics connector issue](https://discuss.airbyte.io/t/3552), [Forum Post: Google Analytics V4 - Incremental does not work](https://discuss.airbyte.io/t/2804). ### 2. Why does Airbyte do a full resync if the start date is far in the past? If your incremental sync’s start date is set far in the past, Airbyte will attempt to fetch all data from that date up to the present on every sync. This can happen if: - The cursor field is not granular enough, so Airbyte cannot accurately determine which records are new since the last sync. - The API or connector does not support filtering by a more recent cursor value, so every sync re-fetches the entire date range. - The sync state is not being updated correctly, causing Airbyte to always start from the initial start date. This results in behavior similar to a full refresh, where millions of records are processed on every sync, not just the new or updated ones. This is inefficient and can overload both the source and destination systems. The documentation and user reports confirm that this is a common issue when the cursor field is not granular and/or the API does not support fine-grained filtering [Forum Post: Universal analytics connector issue](https://discuss.airbyte.io/t/3552), [Forum Post: Google Analytics V4 - Incremental does not work](https://discuss.airbyte.io/t/2804). Summary: - If the API only supports filtering by date, using a more granular cursor field in Airbyte will not help. - A far-past start date combined with a non-granular cursor or lack of API filtering will cause Airbyte to re-fetch all data on every sync, effectively acting as a full refresh. If you need more efficient incremental syncs, the only solution is for the API and connector to support filtering by a more granular field (like timestamp), which is currently not possible with GA4 according to your description and the knowledge sources.