Remove GA4 Data API data source#109
Merged
Merged
Conversation
The GA4 Data API cannot return a stable userId suitable for collaborative-filtering training, so the ga4 source is removed. GA4 via the BigQuery export (examples/ga4-bigquery, type: bigquery) is unaffected.
Drops docs/data-sources/ga4.md, examples/ga4-data-api/, the --extra ga4 CI step, and GA4 mentions in README/CLAUDE.md/recipe-reference. Keeps examples/ga4-bigquery (type: bigquery) and the BigQuery-export GA4 query-pattern docs.
marevol
added a commit
to codelibs/recotem-docs
that referenced
this pull request
May 26, 2026
Reflects codelibs/recotem#109, which removed the `source.type: ga4` data source. Drops the GA4 source page, recipe `source.type: ga4` section, `recotem[ga4]` install extra, `RECOTEM_GA4_MAX_PAGES` env var, and the GA4 sidebar entry, in both English and Japanese v2 docs. BigQuery-based GA4 usage (`events_*` export via `type: bigquery`) is preserved. Also repoints a pre-existing dead link in environment-variables.md (`./data-sources/` -> `./recipe-reference#source`) so the build passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the GA4 Data API data source (
source.type: ga4). The GA4 Data API cannot return a stable user identifier (userId) suitable for collaborative-filtering training, so the source has no viable use.What was removed
src/recotem/datasource/ga4.py,src/recotem/_metrics_ga4.pyconfig.get_ga4_max_pages+ theRECOTEM_GA4_MAX_PAGESenv varga4entry point and thega4optional-dependency extra (google-analytics-data);uv.lockregenerateddocs/data-sources/ga4.md,examples/ga4-data-api/, the--extra ga4CI step + GA4-SDK smoke-test import, and GA4 mentions in README / CLAUDE.md / recipe-referenceWhat was preserved (intentional)
examples/ga4-bigquery/— usestype: bigquery(NOT thega4source); the BigQuery export carriesuserId, so this remains the supported way to use GA4 datadocs/data-sources/bigquery.mdGA4events_*query patterns and related GCP_PROJECT notesBehaviour after removal
recotem validateon atype: ga4recipe now fails withUnknown DataSource type 'ga4'. Known types: ['bigquery', 'csv', 'parquet', 'sql'](exit code 2).Verification
uv run pytest tests→ 1785 passed, 4 deselecteduv run ruff check src tests/uv run ruff format --check src tests→ cleanuv sync --frozen --all-extras→ lock consistent; nogoogle-analytics-dataga4SDK tokensgoogle.analytics/data_v1beta) → only intentional BigQuery-export references remain🤖 Generated with Claude Code