Skip to content

feat(google): add Analytics Admin and Data presets - #1855

Open
aryasaatvik wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
aryasaatvik:contrib/google-analytics-presets
Open

feat(google): add Analytics Admin and Data presets#1855
aryasaatvik wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
aryasaatvik:contrib/google-analytics-presets

Conversation

@aryasaatvik

Copy link
Copy Markdown
Contributor

Summary

Add first-party Google Analytics Admin and Data presets so users can connect GA4 through the existing Google Discovery and standard-user OAuth flow. Both integrations request read-only Analytics access.

Presets

Preset Discovery API Representative operation Health check
Google Analytics Admin analyticsadmin/v1beta analyticsadmin.accountSummaries.list accountSummaries.list
Google Analytics Data analyticsdata/v1beta analyticsdata.properties.runReport Omitted; the API has no stable cheap read

Both presets:

  • use https://www.googleapis.com/auth/analytics.readonly without write scopes;
  • preserve their service-hosted Discovery URLs;
  • participate in Google bundle OAuth and provider-service split mapping;
  • appear in the integration picker.

Validation

  • bun x vitest run src/providers/google/presets.test.ts src/providers/google/discovery.test.ts — 27 passed
  • bun x vitest run src/planner.test.ts — 30 passed
  • bun run typecheck --filter=@executor-js/plugin-openapi --filter=@executor-js/plugin-provider-service-split
  • changed-file oxlint --deny-warnings
  • changed-file oxfmt --check
  • bun run lint:changelog-stubs

@aryasaatvik
aryasaatvik marked this pull request as ready for review August 29, 2026 10:58
@aryasaatvik
aryasaatvik force-pushed the contrib/google-analytics-presets branch from c509ad5 to 0c072d2 Compare September 6, 2026 11:04
@aryasaatvik

Copy link
Copy Markdown
Contributor Author

Rebased onto current main. The three e2e assertions against the Connect an integration dialog were dropped because #1851 replaced that flow with the registry-driven /integrations/browse scenario, which stubs the registry and has no preset list to assert on. Both Analytics presets stay outside GOOGLE_FIRST_PARTY_PRESET_IDS, so they remain BYO OAuth like Admin, Classroom, YouTube, and BigQuery.

https://claude.ai/code/session_016tQXmEycQ2gmmW7LJt6Nhz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant