Search Console tells you which pages are visible and clicked. GA4 tells you what happened after the click. In their own interfaces, the two never meet — so the most useful SEO question ("this page gets 5,000 impressions a month; does it produce anything?") has no home.
Both tools export to BigQuery, though. Once the Search Console bulk export is on, the join is one query: impressions, clicks, CTR, and average position on one side; sessions and purchases by landing page on the other.
What you're joining
The Search Console export lands in searchdata_url_impression: one row per date × query × URL × country × device, with impressions, clicks, and sum_position (divide by impressions for average position — it's a sum, not an average, which trips everyone up once).
The GA4 side needs sessions by landing page, which means page_views where entrances = 1, with the session ID built properly (user_pseudo_id + '.' + ga_session_id):
WITH ga4_landing AS ( SELECT PARSE_DATE('%Y%m%d', event_date) AS event_date, REGEXP_EXTRACT( (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location'), r'^https?://[^/]+(/.*)$' ) AS page_path, user_pseudo_id, (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS ga_session_id, (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'entrances') AS is_entrance FROM `project.analytics_123456789.events_*` WHERE _TABLE_SUFFIX BETWEEN '20260101' AND '20260131' AND event_name = 'page_view' ) SELECT event_date, page_path, COUNT(DISTINCT CONCAT(user_pseudo_id, '.', CAST(ga_session_id AS STRING))) AS sessions FROM ga4_landing WHERE is_entrance = 1 GROUP BY event_date, page_path; The join key is the URL path on both sides — strip the domain with the same regex, or https://example.com/blog/post will never equal /blog/post.
The join
WITH ga4_landing AS ( SELECT PARSE_DATE('%Y%m%d', event_date) AS event_date, REGEXP_EXTRACT( (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location'), r'^https?://[^/]+(/.*)$' ) AS page_path, user_pseudo_id, (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS ga_session_id, (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'entrances') AS is_entrance, event_name FROM `project.analytics_123456789.events_*` WHERE _TABLE_SUFFIX BETWEEN '20260101' AND '20260131' ), ga4_by_page AS ( SELECT event_date, page_path, COUNT(DISTINCT CASE WHEN is_entrance = 1 THEN CONCAT(user_pseudo_id, '.', CAST(ga_session_id AS STRING)) END) AS sessions, COUNTIF(event_name = 'purchase') AS purchases FROM ga4_landing GROUP BY event_date, page_path ), gsc AS ( SELECT data_date AS event_date, REGEXP_EXTRACT(url, r'^https?://[^/]+(/.*)') AS page_path, SUM(impressions) AS impressions, SUM(clicks) AS clicks, ROUND(SAFE_DIVIDE(SUM(sum_position), SUM(impressions)), 1) AS avg_position FROM `project.searchconsole.searchdata_url_impression` WHERE data_date BETWEEN DATE '2026-01-01' AND DATE '2026-01-31' GROUP BY event_date, page_path ) SELECT COALESCE(ga.page_path, gsc.page_path) AS page_path, SUM(gsc.impressions) AS search_impressions, SUM(gsc.clicks) AS search_clicks, ROUND(SAFE_DIVIDE(SUM(gsc.clicks), SUM(gsc.impressions)) * 100, 2) AS ctr_pct, ROUND(AVG(gsc.avg_position), 1) AS avg_position, SUM(ga.sessions) AS site_sessions, SUM(ga.purchases) AS purchases, ROUND(SAFE_DIVIDE(SUM(ga.purchases), SUM(ga.sessions)) * 100, 2) AS cvr_pct FROM gsc LEFT JOIN ga4_by_page ga ON gsc.event_date = ga.event_date AND gsc.page_path = ga.page_path GROUP BY page_path HAVING search_clicks >= 5 ORDER BY search_clicks DESC LIMIT 30; What this surfaces, in practice:
- High impressions, low CTR, decent position — a title/meta problem, not a ranking problem. The cheapest SEO fix there is.
- Good clicks, near-zero purchases — traffic that arrives and does nothing. Either the page answers a question with no commercial next step, or the intent behind the queries doesn't match what the page sells.
- Clicks noticeably above sessions (or the reverse) — usually consent rejection and ad-blockers eating GA4 hits, which is itself worth knowing before you report "organic traffic is down."
Three traps
Query parameters. If your URLs carry parameters (?utm_…, sort orders, session IDs), the path regex keeps them and the two sides stop matching. Normalise both sides the same way before joining: REGEXP_EXTRACT(url, r'^(https?://[^?#]+)') strips query string and fragment.
Search Console lag. GSC data arrives days late. Joining "yesterday" produces a page list with holes that look like traffic drops. Compare complete weeks, or end the range a few days back.
Clicks ≠ sessions, and that's fine. A click can bounce before GA4 fires; a session can start from a click Google attributed to a different day. Expect a stable ratio, investigate a changing one. (Also note the GA4 side above counts all entrance sessions on the page, not only organic ones — for a strict organic-only view, filter on session source/medium as well. For spotting pages that don't convert, the all-entrances version is usually the more honest denominator.)
The short version
- Turn on the Search Console BigQuery export;
searchdata_url_impressionis the table. - Average position =
SUM(sum_position) / SUM(impressions). - Join on URL path, normalised identically on both sides.
- Read the joined table for CTR problems, click-rich/purchase-poor pages, and click-vs-session drift.
- Mind the GSC lag — never join on the last few days.
This is template 18 from my GA4 × BigQuery SQL pack; the free sample has the UNNEST, session, and funnel templates the GA4 side is built from, and the full pack has all 20, including this join with keyword × page breakdowns.
If your join produces a suspicious number of unmatched pages, paste your normalisation in the comments — it's almost always a trailing-slash or parameter mismatch, and it's diagnosable from the regex.

