TL;DR
- GA4 still doesn’t show you organic keywords, but you can blend GA4 landing page data with Google Search Console query data on the URL in Looker Studio.
- The blend shows keyword performance grouped by URL next to what those visitors did on site (sessions, engagement, key events).
- Want to go a layer deeper? Do the join in BigQuery with the GSC bulk export and the GA4 export, and estimate which queries drove which conversions.
- One big warning: GA4 data lives at the page level, not the query level. Read the section on fan-out before you trust any “conversions per keyword” number.
Keywords fuel SEO, but they really should fuel all marketing materials and messages. Google Analytics has never made this easy. Universal Analytics buried almost everything under (not provided), and GA4 doesn’t give you organic queries at all unless you link Search Console, and even then the Search Console reports don’t sit next to your conversion data in a useful way.
I originally wrote this post in 2023 using Universal Analytics views and what was then Google Data Studio. Both are gone. This is the updated GA4 + Looker Studio version, plus a BigQuery version for anyone who wants more control.
Link to Free Google Data Studio – Keywords Not Provided Template

What Changed Since the Original Post
| Then (2023) | Now |
|---|---|
| Universal Analytics views | GA4 properties (UA stopped processing data in July 2023) |
| UA “Landing Page” | GA4 “Landing page” (path only, no domain) |
| Goals / conversions | Key events |
| Join GSC query rows straight to GA metrics | Keep GA4 at the page level (Max, not Sum) and estimate per query by click share |
The last row is the important fix. In the original version I blended GSC query data with GA data on the URL and reported transactions and revenue next to each query. That looks great, but it’s misleading.
The Fan-Out Problem
GA4 doesn’t know which query brought someone to a page. It only knows the landing page. So when you join a table of query + URL rows to a table of URL rows, every query on that URL gets a copy of the same GA4 numbers.
Example: a page gets 100 organic sessions and 5 key events from 40 different queries. In a query-level blend, all 40 queries show 100 sessions and 5 key events. Sum the column and you get 4,000 sessions and 200 key events for a page that had 100 and 5.
So the setup below does three things:
- Cleans both URL formats so GA4 and GSC actually join.
- Shows each page’s real GA4 sessions next to every query for that page, using Max instead of Sum so nothing gets multiplied.
- Estimates each query’s sessions by its share of the page’s clicks.

Option 1: Blend GA4 + GSC in Looker Studio
This is the free, no-SQL version. It takes about 30 minutes and updates itself every day after that. The end result is a table you can sort by URL that shows every query for that page next to the page’s GA4 sessions.
Step 1: Copy the Template (or Start a Blank Report)
Open the free Looker Studio template and click the three dots, then Make a copy. When it asks for new data sources, accept the defaults. We’ll swap them in the next steps.
Step 2: Add Your GA4 and Search Console Sources
Go to Resource > Manage added data sources > Add a data source.
- Google Analytics: pick your account and GA4 property.
- Search Console: pick your site, choose URL Impression (not Site Impression), and search type Web.
URL Impression is the table that has both the Landing Page and Query dimensions. Site Impression doesn’t break data out by page.
Step 3: Make the URLs Match
This is where most blends break. GA4’s Landing page is just the path with no trailing slash (/blog/seo-content-audit). Search Console’s Landing Page is the full URL, usually with a trailing slash (https://www.yoursite.com/blog/seo-content-audit/). If they don’t match character for character, GA4 data comes back null.
The fix is to build a clean URL field on both sources: lowercase everything and strip the trailing slash.
GA4 source: edit the data source, click Add a field, name it Full URL:
REGEXP_REPLACE(LOWER(CONCAT("https://www.yoursite.com", Landing page)), "/$", "")
Search Console source: add a field named Join URL:
REGEXP_REPLACE(LOWER(Landing Page), "/$", "")
Use your exact protocol and hostname, including www if your site uses it. Stripping the slash from both sides (instead of adding one to GA4) also keeps the homepage from turning into //.
Step 4: Check the Match With Two Side-by-Side Tables
Before blending, add two simple tables at the bottom of the report:
- GSC table: Landing Page and URL Clicks (Search Console source).
- GA4 table: Full URL and Sessions (GA4 source).
Put them next to each other and compare a few URLs. If a page shows up in both but the formats differ, adjust the formulas in Step 3 until they line up. I keep these tables in the final report as a “Compare GSC & GA4” section. They’re a quick sanity check, and they show that plenty of GA4 pages (sitemap, test pages, utility pages) never earn a search click at all.
Step 5: Build a 3-Table Blend
Go to Resource > Manage blends > Add a blend. You’ll use the Search Console source twice: once at the query level and once at the page level, so you can calculate each query’s share of the page.
| Setting | Table 1 | Table 2 | Table 3 |
|---|---|---|---|
| Data source | Search Console, URL Impression | Search Console, URL Impression | GA4 |
| Dimensions | Join URL, Query | Join URL | Full URL (only this) |
| Metrics | Impressions, URL Clicks | URL Clicks, renamed Page Clicks | Sessions, renamed Page Sessions (add Key events if you want) |
| Filter | none | none | Session source / medium = google / organic |
| Date range dimension | Date | Date | Date |
Join Table 2 and Table 3 to Table 1 with a Left outer join: Join URL = Join URL, and Join URL = Full URL. Name the blend GA4 + GSC (query) and save.
Keep Table 3 to the single Full URL dimension. If Date or source/medium sneaks in as a dimension, each URL gets multiple rows and every total multiplies.
Step 6: Add Calculated Fields in the Blend
- CTR:
SUM(URL Clicks) / SUM(Impressions), type Percent. Never sum the connector’s CTR field in a blend or you’ll see 300% CTRs. - Missed Clicks:
SUM(Impressions) - SUM(URL Clicks) - Est. Sessions:
MAX(Page Sessions) * SUM(URL Clicks) / MAX(Page Clicks)
I like Missed Clicks because it shows demand you’re not capturing from organic. Those are the exact terms your audience is searching, so push them into email, paid search and social where organic isn’t winning the click.
Est. Sessions splits the page’s sessions across its queries by click share. It assumes every click is equally likely to become a session, so treat it as directional.
Step 7: Build the Query Table and Set Aggregation to Max
Create a table on the blend:
- Dimensions: Join URL, Query
- Metrics: URL Clicks, Impressions, CTR, Missed Clicks, Page Sessions, Est. Sessions
- Sort: Join URL ascending, then URL Clicks descending
Then click the aggregation on Page Sessions (and Page Clicks or Key events if you added them) and change it from Sum to Max.
This is the most important setting in the report. Page Sessions repeats on every query row for that page, so Sum adds up every copy. In my first try, one URL showed over 500,000 sessions. With Max, every row and the grand total show the real page number (554 for my content audit post instead of 554 times the number of queries).
Step 8: Add the Filter and Scorecards
- Add a filter control on Join URL with match type Contains, so you can paste a URL (or just
/blog/) and see every query for it. - Build the top-line scorecards (sessions, clicks, impressions, CTR) on the GA4 and Search Console sources directly, not the blend. A Sum scorecard on the blend inflates, and a Max scorecard only shows the biggest page.
Now you can pick a page, see its real GA4 sessions, and see every query that page earns impressions and clicks for, without inflated numbers.
Option 2: Go a Layer Deeper in BigQuery
The Looker Studio blend is great, but you’re stuck with what the connectors give you. In BigQuery you get raw GSC rows (including anonymized query clicks in page totals), real session-level GA4 data, and full control over how pages are matched. It also makes the Looker Studio report much faster.
What You Need
- GSC bulk data export to BigQuery. I walk through it in How To Set Up Your Bulk Data Export Through Google Search Console. It only collects data from the day you turn it on, so set it up now.
- GA4 BigQuery export (GA4 Admin > Product links > BigQuery links). Daily export is fine for this.
- Both datasets in the same BigQuery location (for example, both US). You can’t join across locations in one query.
The Query
This script builds two tables:
ga4_gsc_pages: one row per URL with GSC and GA4 metrics side by side. Safe to sum.ga4_gsc_queries: one row per URL + query, with GA4 results estimated by each query’s share of that page’s clicks.
Swap in your project, dataset and GA4 property IDs, and list your own key event names.
View SQL Code
DECLARE start_date DATE DEFAULT DATE_SUB(CURRENT_DATE(), INTERVAL 93 DAY);
DECLARE end_date DATE DEFAULT DATE_SUB(CURRENT_DATE(), INTERVAL 3 DAY);
DECLARE key_event_names ARRAY<STRING> DEFAULT ['generate_lead', 'sign_up', 'purchase'];
-- 1) Page-level table: GSC + GA4 joined on clean URL
CREATE OR REPLACE TABLE `your-project.seo_reporting.ga4_gsc_pages` AS
WITH gsc_pages AS (
SELECT
REGEXP_REPLACE(REGEXP_REPLACE(LOWER(url), r'[?#].*$', ''), r'/$', '') AS page,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks,
SAFE_DIVIDE(SUM(sum_position), SUM(impressions)) + 1 AS avg_position
FROM `your-project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN start_date AND end_date
AND search_type = 'WEB'
GROUP BY page
),
ga4_events AS (
SELECT
user_pseudo_id,
(SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS session_id,
event_name,
event_timestamp,
(SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location') AS page_location,
(SELECT COALESCE(value.string_value, CAST(value.int_value AS STRING))
FROM UNNEST(event_params) WHERE key = 'session_engaged') AS session_engaged,
session_traffic_source_last_click.cross_channel_campaign.source AS source,
session_traffic_source_last_click.cross_channel_campaign.medium AS medium,
ecommerce.purchase_revenue AS revenue
FROM `your-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', start_date)
AND FORMAT_DATE('%Y%m%d', end_date)
),
ga4_sessions AS (
SELECT
user_pseudo_id,
session_id,
REGEXP_REPLACE(
ARRAY_AGG(IF(event_name = 'page_view', page_location, NULL)
IGNORE NULLS ORDER BY event_timestamp LIMIT 1)[SAFE_OFFSET(0)],
r'[?#].*$', '') AS landing_page,
MAX(source) AS source,
MAX(medium) AS medium,
MAX(IF(session_engaged = '1', 1, 0)) AS engaged,
COUNTIF(event_name IN UNNEST(key_event_names)) AS key_events,
SUM(IFNULL(revenue, 0)) AS revenue
FROM ga4_events
WHERE session_id IS NOT NULL
GROUP BY user_pseudo_id, session_id
),
ga4_pages AS (
SELECT
REGEXP_REPLACE(LOWER(landing_page), r'/$', '') AS page,
COUNT(*) AS sessions,
SUM(engaged) AS engaged_sessions,
SUM(key_events) AS key_events,
SUM(revenue) AS revenue
FROM ga4_sessions
WHERE source = 'google' AND medium = 'organic'
AND landing_page IS NOT NULL
GROUP BY page
)
SELECT
g.page,
g.impressions,
g.clicks,
g.avg_position,
SAFE_DIVIDE(g.clicks, g.impressions) AS ctr,
g.impressions - g.clicks AS missed_clicks,
IFNULL(a.sessions, 0) AS sessions,
IFNULL(a.engaged_sessions, 0) AS engaged_sessions,
IFNULL(a.key_events, 0) AS key_events,
IFNULL(a.revenue, 0) AS revenue
FROM gsc_pages g
LEFT JOIN ga4_pages a USING (page);
-- 2) Query-level table: GA4 results estimated by click share
CREATE OR REPLACE TABLE `your-project.seo_reporting.ga4_gsc_queries` AS
WITH gsc_queries AS (
SELECT
REGEXP_REPLACE(REGEXP_REPLACE(LOWER(url), r'[?#].*$', ''), r'/$', '') AS page,
query,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks,
SAFE_DIVIDE(SUM(sum_position), SUM(impressions)) + 1 AS avg_position
FROM `your-project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN start_date AND end_date
AND search_type = 'WEB'
AND NOT is_anonymized_query
GROUP BY page, query
)
SELECT
q.page,
q.query,
q.impressions,
q.clicks,
q.avg_position,
SAFE_DIVIDE(q.clicks, q.impressions) AS ctr,
q.impressions - q.clicks AS missed_clicks,
SAFE_DIVIDE(q.clicks, p.clicks) AS share_of_page_clicks,
ROUND(p.sessions * SAFE_DIVIDE(q.clicks, p.clicks), 1) AS est_sessions,
ROUND(p.key_events * SAFE_DIVIDE(q.clicks, p.clicks), 2) AS est_key_events,
ROUND(p.revenue * SAFE_DIVIDE(q.clicks, p.clicks), 2) AS est_revenue
FROM gsc_queries q
JOIN `your-project.seo_reporting.ga4_gsc_pages` p USING (page);
A Few Notes on the SQL
- Average position: GSC stores
sum_positionstarting at 0, so the export formula is sum_position / impressions + 1. - Landing page: the first
page_viewin each session, lowercased, with trailing slashes, query strings and#fragments stripped so it matches GSC. - Organic Google only:
session_traffic_source_last_click.cross_channel_campaignmatches the session source / medium you see in the GA4 UI. It was added to the export in October 2024, so older date ranges come back empty here. - Estimates are estimates: the
est_columns assume every click to a page is equally likely to convert. Treat them as directional. They will sum to a bit less than the page total because anonymized query clicks count in the page but have no query row. - Cost:
event_paramsis the heavy part of the GA4 export. Keep the date range reasonable, and schedule this daily (BigQuery > Schedule) rather than querying the raw export from Looker Studio.
Connect It to Looker Studio
Add both tables as BigQuery data sources. No blend needed. Build the page table from ga4_gsc_pages and the query table from ga4_gsc_queries, then use a drop-down filter on page for both. Because the joining already happened in BigQuery, the report loads much faster than a connector blend.
How To Use This
Set the date range to whatever fits your reporting. I keep a rolling 90 days so the data is always fresh without me touching it.
- Refreshing old content: filter to the URL you’re updating. The query table shows the real terms people use to find it. Work the high-impression, low-CTR ones into titles, headers and copy.
- Writing something new: search the primary keyword in the query box. See which pages already rank for it and whether that traffic engages or converts. If an existing page is close, improve it instead of writing a competing post.
- Finding pages that rank but don’t convert: sort the page table by clicks, then look at engagement rate and key events. Lots of clicks with weak engagement usually means the content doesn’t match the intent behind the queries.
- Feeding other channels: sort by Missed Clicks. If organic isn’t winning those clicks, use the same terms in paid search, email subject lines and social posts.
SEO is a methodology. Use it in everything you do. Whoever runs SEO, PPC, email or social can open this dashboard, filter to their topic, and see which keywords and pages drive traffic and results.
Why the Numbers Won’t Match Perfectly
GSC clicks and GA4 organic sessions will never line up 1:1, and that’s fine. Use the trends and the ratios, not the exact counts.
- Consent and blockers: GA4 misses visitors who decline cookies or block tracking. GSC counts every click.
- Clicks vs. sessions: one person can click twice in one session, or bounce before the GA4 tag fires.
- Time zones and lag: GSC reports in Pacific time and lags 2 to 3 days. GA4 uses your property’s time zone. That’s why the BigQuery script ends 3 days ago.
- Anonymized queries: Google hides rare queries for privacy. Their clicks count toward the page in the export but never show up as a query row, and the Looker Studio connector drops them from query tables.
- URL formats: trailing slashes, uppercase letters,
wwwvs. non-wwwand parameters all break joins. If a page shows clicks but zero sessions, check the URL format first.


