Most SEO reporting is three dashboards that do not talk to each other. Search Console shows queries and positions with a sixteen-month ceiling and sampled rows. GA4 shows sessions and conversions by landing page with no idea what query brought them. The server logs show what the crawlers did, in a file nobody opens. Every interesting question lives in the join between two of them, and the join is the thing none of the dashboards can do.
BigQuery fixes this in a way that is cheaper and less work than it sounds, because all three sources already have a route in. This piece is the setup in brief and then the four queries we run on client data every month, which between them answer most of what the dashboards were for.
Getting the three sources in
Search Console. The bulk data export sends a daily copy of your performance data to a BigQuery dataset you own, with no row limit and retention for as long as you keep it. Two things to know before you switch it on. It starts from the day you enable it, with no backfill, so enable it now even if you will not query it for months. And a share of queries arrive anonymised for privacy; the rows are still there with impressions and clicks, but the query text is blank, which matters for a few of the queries below.
Two tables matter: the site-level table, one row per query per day with site-wide impressions and position, and the URL-level table, one row per query per URL per day. The second is where cannibalisation and page-level work happens.
GA4. The native export writes one table per day of raw events. It is free to enable, and it is the only way to get GA4 data without sampling or the interface’s thresholds. The settings that make this data usable for search work are in GA4 setup for SEO and AI traffic.
Server logs. A nightly job that parses the access log into a flat table of timestamp, URL, status, response time, user agent and verified bot name, uploaded to a storage bucket and loaded into a date-partitioned table. The parsing and verification are covered in log file analysis at scale with Python and verifying Googlebot and GPTBot in server logs; the only addition is the load step.
Average position, done correctly
The exported tables do not store an average position. They store a sum of positions, zero-based, which you divide by impressions and add one to. Every query below uses that expression, and getting it wrong is the most common mistake in the first week.
Query one: striking distance, by page, with volume
Queries where the site already appears on the second page or the bottom of the first, with real impressions, where a content or linking change has the best chance of moving clicks. The Search Console interface can approximate this for the whole site; it cannot group it by page over a long window without exports.
SELECT
url,
query,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks,
SAFE_DIVIDE(SUM(sum_position), SUM(impressions)) + 1 AS avg_position
FROM `project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 28 DAY) AND CURRENT_DATE()
AND is_anonymized_query = FALSE
AND search_type = 'WEB'
GROUP BY url, query
HAVING impressions >= 200
AND avg_position BETWEEN 6 AND 20
ORDER BY impressions DESC
LIMIT 500;
Read it by page rather than by query. A page with twelve striking-distance queries is a page worth a morning’s work; a single query is usually noise.
Query two: cannibalisation, the real kind
Two or more of your URLs receiving impressions for the same query over a sustained window, with neither winning. The interface method is in how to find and fix keyword cannibalisation in Search Console; this is the same idea without the row limit and with a split that tells you whether it is a problem or just two pages that both happen to rank.
WITH q AS (
SELECT
query,
url,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks
FROM `project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 90 DAY) AND CURRENT_DATE()
AND is_anonymized_query = FALSE
AND search_type = 'WEB'
GROUP BY query, url
)
SELECT
query,
COUNT(DISTINCT url) AS urls,
SUM(impressions) AS impressions,
ARRAY_AGG(STRUCT(url, impressions, clicks) ORDER BY impressions DESC LIMIT 3) AS top_urls,
SAFE_DIVIDE(MAX(impressions), SUM(impressions)) AS top_url_share
FROM q
GROUP BY query
HAVING urls >= 2
AND impressions >= 500
AND top_url_share < 0.7
ORDER BY impressions DESC;
The share column is the point. A query where one URL takes most of the impressions is not cannibalised, whatever the count says. A query where the impressions are split evenly between two pages, for ninety days, is one where the engine cannot decide, and that is the one to consolidate.
Query three: decay, page by page, before the dashboard notices
Pages whose clicks have fallen between two recent windows, excluding pages that were tiny to begin with. The interface’s compare mode does this for one page at a time; this does it for the whole site and ranks the losses.
WITH recent AS (
SELECT url, SUM(clicks) AS clicks, SUM(impressions) AS impressions
FROM `project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 28 DAY) AND CURRENT_DATE()
GROUP BY url
),
prior AS (
SELECT url, SUM(clicks) AS clicks, SUM(impressions) AS impressions
FROM `project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 56 DAY)
AND DATE_SUB(CURRENT_DATE(), INTERVAL 29 DAY)
GROUP BY url
)
SELECT
p.url,
p.clicks AS prior_clicks,
IFNULL(r.clicks, 0) AS recent_clicks,
IFNULL(r.clicks, 0) - p.clicks AS change,
SAFE_DIVIDE(IFNULL(r.clicks, 0) - p.clicks, p.clicks) AS change_pct
FROM prior p
LEFT JOIN recent r USING (url)
WHERE p.clicks >= 100
ORDER BY change ASC
LIMIT 100;
Run it weekly and the list is your maintenance queue. A page losing a third of its clicks in a month is either outdated, outranked by something newer, or has lost the feature that gave it the clicks. The method for finding which queries lost clicks to AI answers specifically is in finding the queries where AI Overviews took your clicks, and it ports to this table directly.
Query four: crawl against clicks, the join nobody has
The question only a join can answer: which URLs are being crawled heavily and earning nothing, and which URLs earn clicks but have not been crawled in weeks. The first is crawl waste. The second is the list of pages whose updates are not being seen.
WITH crawl AS (
SELECT url, COUNT(*) AS bot_hits, MAX(ts) AS last_crawl
FROM `project.logs.access`
WHERE DATE(ts) BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 28 DAY) AND CURRENT_DATE()
AND verified_bot = 'googlebot'
AND status = 200
GROUP BY url
),
search AS (
SELECT url, SUM(clicks) AS clicks, SUM(impressions) AS impressions
FROM `project.searchconsole.searchdata_url_impression`
WHERE data_date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 28 DAY) AND CURRENT_DATE()
GROUP BY url
)
SELECT
COALESCE(c.url, s.url) AS url,
IFNULL(c.bot_hits, 0) AS bot_hits,
c.last_crawl,
IFNULL(s.clicks, 0) AS clicks,
IFNULL(s.impressions, 0) AS impressions
FROM crawl c
FULL OUTER JOIN search s USING (url)
WHERE (IFNULL(c.bot_hits, 0) >= 50 AND IFNULL(s.impressions, 0) = 0)
OR (IFNULL(s.clicks, 0) >= 50 AND c.last_crawl < TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 21 DAY))
ORDER BY bot_hits DESC;
The first half of the filter is the crawl waste list: parameters, old tag pages, calendar URLs, whatever the crawler is spending its visits on. The second half is the opposite list, and it is the more surprising one. Pages that earn clicks and have not been crawled in three weeks are pages whose recent edits are invisible, and on a site that updates prices or dates, that is a direct revenue problem.
Joining GA4 to all of it
Once the Search Console and log tables are keyed on URL, the GA4 export joins on landing page. Pull sessions and your key events by landing page from the event tables, and you can put query impressions, clicks, bot crawls, sessions and conversions on one row per page. That row is the report. It answers which pages are earning search traffic that converts, which earn traffic that does not, and which convert well but are starved of impressions and deserve the striking-distance work from query one.
The one practical caution is that GA4’s landing page comes from the page location parameter and includes the query string, so strip parameters and fragments before joining, and lower-case and trailing-slash both sides. Most failed joins are a slash.
Cost and hygiene
BigQuery charges on the data scanned, and the tables above are partitioned by date, so every query should carry a date filter on the partition column. Never select every column from the raw events table to look at it; use the preview. Build scheduled queries that write the monthly summaries into small tables, and point the reporting tool at those rather than at the raw data; a dashboard that re-runs the cannibalisation query on every refresh is how a free-tier project acquires a bill. The reporting layer is described in how to build an AI visibility dashboard in Looker Studio, and it points at summary tables for this reason.
What is a waste of effort
Rebuilding the Search Console interface in a dashboard tool. The interface already exists; the value is in what it cannot do.
Querying the raw GA4 events table for every report instead of building a sessions summary once.
Trying to backfill the bulk export. It cannot be done; export what you can from the API for history, as in how to export all your Search Console data with Python, and accept the join seam.
Forgetting the anonymised rows. They are part of the totals; exclude them only when the query text itself is needed.
A sensible order of work
- Enable the Search Console bulk export and the GA4 export today, whether or not you are ready to use them.
- Set up the nightly log load with verified bot names.
- Write the average position expression once and keep it in a saved view.
- Run the four queries by hand for a month and act on the lists.
- Turn each into a scheduled query writing to a summary table.
- Add the GA4 join, with URL normalisation on both sides.
- Point the dashboard at the summaries and retire the three it replaces.
If your reporting is three dashboards and a spreadsheet that reconciles them by hand, get in touch.