Design note — Google Search Console connector (google_search_console)

Target registry item: C3a (organic; first demand 203K9). Status: design note only — NOT in CONNECTOR_CATALOG; nothing built, nothing available. Connector Definition of Done (CDoD) points 1–14 are tracked in docs/reports/ONBOARDING_CONNECTORS_STATE.md.

Auth

Read-only. Two admissible paths, both merchant-owned (D2/D11):

  1. Platform service account as a property user. The customer adds the platform service account email (the same identity the GA4 card names) as a user on the Search Console property (Settings → Users and permissions → Add user → Restricted). The Search Console API then authenticates as the service account. Google documents service-account access for Search Console; verify support for the customer's property type (URL-prefix vs domain property) at build time (CDoD point 1).
  2. OAuth (fallback). webmasters.readonly scope through a platform OAuth client on Track O — shares the OB-GAP-1 gate (consent-screen verification), so path 1 is preferred.

No developer token; no environment fallback; vault-only per (tenant, provider).

Fields (catalog row, when built)

key label secret required pattern help
site_url Property no yes ^(https?://[^\s/]+/?|sc-domain:[a-z0-9.-]+)$ The property exactly as Search Console shows it: https://www.example.com/ (URL-prefix) or sc-domain:example.com (domain property).

The service-account grant is a state, not a field: Test connection proves it.

Scopes

https://www.googleapis.com/auth/webmasters.readonly only. Never webmasters (write: sitemaps, URL removal).

Data topics

Search Analytics rows (clicks, impressions, CTR, position) by date × query × page × country × device; sitemaps status; index coverage summary. All aggregate. API version pinned at build time (Search Console API v1).

Aggregates only; no person-level fields exist in this source, so every row is the de-personalised remainder. A consent-posture test in the TestD3ProcessingPosture style pins that no field of the mapper output is person-level.

Mapper target

MarketSignal (src/cells/cell37/ ingest) — organic search demand is an external-intelligence signal, not a journey event. One mapper MAPPERS["google_search_console"] → ingest_gate → mizoki_unified_data. No new store.

Failure modes → test-connection verdicts

Failure Verdict / fix
Property not granted to the service account permission_denied → "Add <service account> as a Restricted user on <site_url> in Search Console → Settings → Users and permissions."
Wrong property form (example.com instead of sc-domain: or https://…/) 422 invalid_field_format with the help text.
API not enabled on the Cloud project operator item (Track O): enable the Search Console API on the platform project.
Vault read error 503 fail-closed.

Flag

GOOGLE_SEARCH_CONSOLE_SYNC default OFF (the canon uses flags for every rail); the catalog row ships available: false until CDoD point 14 (live verification against a real property, recorded with date and revision).

Owner / operator gates

None owner-level. Operator: enable the API on the platform Cloud project; confirm the platform service account email is the one the GA4 card already resolves.

← All docsView source on GitHub →