Sub topic 6
Known gaps and discrepancies in the data
This chapter covers why the numbers you collect will not match each other, and which gaps are expected rather than bugs. It assumes you can read a Search Console performance report and a GA4 traffic report, and that you have read the chapters on data sources and on collecting data on a schedule. Basic Python or SQL helps for the checks near the end.
Why discrepancies are normal
Search Console, a web analytics tool and a rank tracker each measure a different event.
- Search Console counts events on the search results page: an impression when a result is shown, a click when a user follows it.
- Web analytics counts events on your site: a session starts when the tracking script loads and consents allow it.
- A rank tracker counts nothing real. It runs a query from a fixed location and device, and records where you appeared.
These are three different measurements of one process, so they will never agree exactly. Your job is to know the expected size and direction of each gap, so that you can tell a normal gap from a broken pipeline.
Delays and data freshness
Search Console data is not instant. The Performance report usually lags by about a day or two, and the most recent days can be marked as preliminary. Preliminary numbers may change when final processing completes.
This has direct consequences for your collection job:
- Do not treat yesterday's row as final. Re-pull a trailing window, for example the last 3 to 5 days, and overwrite those rows on each run.
- Store the pull date or a "final" flag if you need to reproduce an earlier report exactly.
- Do not alert on the newest day alone. A partial day looks like a traffic drop.
Web analytics has its own delay. GA4 standard reports can take hours to process, and some attribution and channel data settles later. Compare complete days only.
Retention limits
The Search Console interface and API expose a limited history, commonly about 16 months. Data older than that cannot be recovered later. If you did not store it, it is gone.
Two practical rules follow:
- Start collecting now, even if you have no dashboard yet. History you did not save cannot be backfilled past the window.
- Check your analytics tool's retention setting. GA4 event-level data retention is configurable and often defaults to a short period, which limits custom explorations even though standard aggregated reports stay available.
Year-over-year comparison needs at least 13 months of stored daily data, and more if you want two prior years. Plan the table so that it keeps everything.
Anonymized queries
Search Console hides some queries for privacy. These are queries that very few users searched. The clicks and impressions still count in totals, but the query text is not shown in the query dimension.
The effect is that the sum over query rows is lower than the total for the same period. The gap is larger for long, specific, low-volume queries, so sites with a long tail see a bigger gap.
You can measure it. Pull the same date range twice: once with only the date dimension, and once with date and query. Compare the click sums.
# `df_total` has columns: date, clicks (pulled with dimensions=["date"])
# `df_query` has columns: date, query, clicks (pulled with dimensions=["date", "query"])
import pandas as pd
df_total = pd.DataFrame({"date": ["2026-01-01", "2026-01-02"], "clicks": [1000, 1200]})
df_query = pd.DataFrame(
{
"date": ["2026-01-01", "2026-01-01", "2026-01-02", "2026-01-02"],
"query": ["a", "b", "a", "b"],
"clicks": [600, 250, 700, 300],
}
)
by_day = df_query.groupby("date")["clicks"].sum().rename("clicks_with_query")
check = df_total.set_index("date").join(by_day)
check["hidden_share"] = 1 - check["clicks_with_query"] / check["clicks"]
print(check)Track hidden_share over time. A stable value is normal. A sudden jump suggests a change in how you pull data, or a change in your query mix.
A related effect: when you add the page dimension, the API drops rows it cannot attribute and may return fewer rows than a date-only query. Totals taken from the date-only pull are the ones to quote for site-level clicks.
Row limits and sampling in extraction
The Search Analytics API returns at most 25,000 rows per request, which is why the collection script pages with startRow. There is also a limit on how many rows are available in total for a given query combination, so a very large site may not be able to retrieve every query and page row through one request.
Ways to reduce the loss:
- Pull one day at a time instead of a month.
- Split by a filter such as country or device and merge the results.
- Pull a coarse table (date only, or date and page) for totals, and a detailed table (date, query, page) for analysis.
Always reconcile the detailed table against the coarse one, as in the check above.
Position is not rank
Search Console's average position is the average of the top position your site held for each impression. The same URL can appear at different positions for different users, devices and locations, and the report averages them.
Be careful with these cases:
- A page that appears at position 1 for a few impressions and at position 40 for many has a poor average that hides its best result.
- When a query gains new impressions in deeper positions, average position gets worse even though nothing was lost at the top.
- Averaging daily position values without weighting by impressions gives the wrong answer. Use impression-weighted position, as covered in the chapter on averaging position.
A rank tracker reports a different thing: one position from one simulated location and device at one moment. It will usually disagree with Search Console. Neither is wrong. Use the tracker for a stable, controlled view of chosen keywords. Use Search Console for what real users saw.
Click discrepancies between Search Console and analytics
Clicks in Search Console rarely equal organic sessions in analytics. Expect analytics to be lower in most cases, though not always.
| Cause | Effect on analytics vs Search Console |
|---|---|
| Consent banners block the tracking script | Fewer sessions recorded |
| Ad blockers and privacy browsers | Fewer sessions recorded |
| User leaves before the page loads | Click counted, no session |
| One click can start no session or reuse an existing one | Counts differ in either direction |
| Search Console counts clicks on all result types, including images, video and Discover only if you view those tabs | Totals depend on the search type filter |
| Channel grouping rules classify some search traffic as other channels | Sessions land in Direct or Unassigned |
| Different time zones | Daily totals shift between adjacent days |
| Redirects and parameter stripping | Landing pages differ between tools |
The time zone point is easy to miss. Search Console dates use Pacific Time. Your analytics property uses its own configured time zone. For daily comparisons, differences of several percent can come purely from this. Compare weekly totals when you need a cleaner match.
Also match scope. Filter Search Console to the Web search type, and filter analytics to the organic search channel, ideally for Google only. Compare landing pages after normalizing URLs: protocol, host, trailing slash, and query parameters.
Rank tracker discrepancies
Rank trackers differ from each other for reasons you control and reasons you do not.
- Location, language and device settings change results. A tracker set to a country gives a different answer than one set to a city.
- Personalization is removed or reduced, so results differ from what a signed-in user sees.
- Tracker position counts can include or exclude SERP features such as map packs, so "position 3" may mean the third organic link or the third block on the page.
- Check frequency matters. A tracker that samples weekly will miss a day-long swing.
- A tracker can fail silently when the search engine changes its page format or blocks the request, leaving gaps or repeated values.
Record the configuration for each tracked keyword (location, device, language, check time) in your keyword table, and do not change it without annotating the change.
A reconciliation routine
Put these checks in your pipeline so that gaps are visible before anyone reads a report.
- Count rows per day. A missing or very low day signals a failed pull.
- Compare the sum of detailed clicks and impressions with the date-only totals, and log
hidden_share. - Compare weekly Search Console clicks with weekly organic sessions and log the ratio. Watch the ratio, not the absolute match.
- Flag days within the last few days as preliminary in the dashboard.
- Record any change in tracker settings, tagging, consent setup or site migration in your annotation table.
A short SQL check for missing days:
-- PostgreSQL syntax; table gsc_daily(date, query, page, clicks, impressions, position)
WITH days AS (
SELECT d::date AS date
FROM generate_series(
(SELECT MIN(date) FROM gsc_daily),
(SELECT MAX(date) FROM gsc_daily),
interval '1 day'
) AS d
)
SELECT days.date, COUNT(g.date) AS row_count
FROM days
LEFT JOIN gsc_daily g ON g.date = days.date
GROUP BY days.date
HAVING COUNT(g.date) = 0
ORDER BY days.date;Any date returned has no rows at all. Decide whether the gap is a failed pull to re-run, or a real day with no data.
Common mistakes
- Treating the newest day as final.
- Quoting query-level sums as site totals.
- Expecting Search Console clicks to equal analytics sessions.
- Comparing days across tools without checking time zones.
- Switching rank tracker settings and reading the change as a ranking change.
- Failing to store data before the retention window closes.
Exercise
Your detailed pull (date, query, page) shows 8,400 clicks for a week. A date-only pull for the same week shows 10,000 clicks. Weekly organic sessions in GA4 are 7,900. Which number do you report as site-level organic clicks, what is the hidden share, and is the gap between 8,400 and 7,900 a reason to suspect tracking is broken?
Show answer
Report 10,000 as the site-level click total, because the date-only pull includes anonymized queries and rows dropped by the extra dimensions. The hidden share is 1 - 8,400 / 10,000 = 16%. The comparison that matters is clicks to sessions: 7,900 / 10,000 is 79%. A session count below clicks is expected from consent banners, ad blockers and early exits, so this alone is not a sign of broken tracking. Track the 79% ratio week by week and investigate only if it moves sharply.
Exercise
Your pipeline inserts each day's Search Console rows once, the morning after. Name two problems this causes and one change that fixes both.
Show answer
First, recent days are preliminary and may change, so the stored values can be wrong. Second, a failed or partial pull is never retried, leaving a permanent gap or undercounted day. Fix both by re-pulling a trailing window of several days on every run and upserting on the row key, with a check on rows per day to catch failures.