Sub topic 11
Ruling out seasonality, ranking shifts, updates and tracking changes
This chapter assumes you have built exposed and comparison query cohorts and run a difference-in-differences (DiD) calculation on CTR, as in the earlier chapters. You should be comfortable with pandas groupby operations and with the Search Console fields clicks, impressions, CTR and position.
A DiD estimate of, say, -0.7 percentage points of CTR is only a number until you check what else changed. This chapter covers four families of rival explanations and a set of tests for each.
What DiD does and does not remove
DiD subtracts the change in the comparison cohort from the change in the exposed cohort. Anything that moves both cohorts by the same amount cancels out. It fails when something moves the two cohorts by different amounts.
- A holiday that lifts all informational queries cancels out. A holiday that lifts only the commercial queries in your comparison cohort does not.
- A core update that shifts rankings for every query cancels out. An update that demotes your pages for the query types you put in the exposed cohort does not.
- A tracking change that affects the whole site cancels out in GSC ratios. A change that affects only some page templates does not.
So the question for each confounder is whether it affects the two cohorts differently. The table summarises the four families.
| Confounder | How it biases the estimate | Main check |
|---|---|---|
| Seasonality | Cohorts have different seasonal profiles | Compare to the same dates last year; test pre-trends |
| Ranking shifts | CTR falls because position fell, not because of an AI Overview | Compare impression-weighted position by cohort and period |
| Algorithm updates | An update hits one cohort harder | Check update dates against your window; run placebo tests |
| Tracking changes | Measurement shifts, not user behaviour | Reconcile GSC clicks with GA4 organic sessions |
Seasonality
Seasonality means regular calendar patterns: weekday and weekend cycles, holidays, school terms, tax season, sales events. A two-month window can easily contain one of these.
Two checks help:
- Same dates, previous year. Pull the same date range from a year earlier for both cohorts. If the exposed-minus-comparison CTR gap changed by a similar amount last year without any AI Overview exposure, the current estimate is mostly seasonal.
- Pre-trend test. Before the change date, the gap between the cohorts should be flat. If it already slopes, DiD assumes the slope would have stopped, and that is unlikely. This is the parallel-trends assumption.
Align periods to whole weeks so that each period contains the same number of weekdays and weekends. A period with five Saturdays and a period with four will differ in CTR for no real reason.
Ranking shifts
AI Overviews can reduce clicks without changing your average position. If position also moved, part of the CTR change is the ordinary effect of ranking lower. Check position for each cohort and period, weighted by impressions. An unweighted mean of per-row positions over-represents rows with few impressions.
Average position also has a mix problem. If your site starts appearing for many new long-tail queries at position 40, average position worsens even though no existing query moved. Hold the query set fixed. Keep only queries that had impressions in both the pre and post periods, then recompute position and CTR.
If position shifted differently between cohorts, you have two options. Restrict both cohorts to queries whose position changed by less than a set threshold, such as one place. Or compare CTR within position buckets (1-3, 4-10, 11-20), so you compare like with like.
Algorithm updates
Google publishes dates for confirmed core updates and other ranking updates on its Search Status Dashboard. Mark those dates on your timeline before you choose the pre and post windows.
- If an update rolled out inside your post period, rankings and click patterns may have changed for reasons unrelated to AI Overviews. Either shorten the post window to end before it, or treat the update date as a second break and estimate it separately.
- Updates often affect query types unevenly. Informational queries, which are the ones most likely to show an AI Overview, can be hit harder by a content-quality update. That is the case where the exposed and comparison cohorts differ, so be more cautious here than with seasonality.
- AI Overview rollouts themselves change over time. Exposure for a given query can start, stop or change form. A cohort defined once from a SERP tracker snapshot becomes less accurate the longer the window runs.
Tracking changes
Tracking changes alter what is recorded, not what users did. Common sources:
- A consent banner change that alters how many GA4 sessions are recorded.
- A tag manager edit, a new GA4 property, or a moved tag.
- A site migration, URL structure change or new canonical tags. These change which URL GSC attributes clicks to.
- GA4 channel grouping changes that move sessions between "Organic Search" and other channels.
- Search Console logging issues, which Google annotates on its data anomalies page.
The best defence is reconciliation. GSC clicks count visits to your site from search results. GA4 organic sessions count recorded sessions. The ratio between them is not 1, but it should be stable. If it jumps at a specific date, something about measurement changed.
A runnable check for placebo, pre-trend and position
The code below builds a synthetic daily table so it runs as shown. In real work, replace the generator with your Search Console export aggregated to one row per date and cohort. The exposed cohort has a true CTR drop of 15% starting on 1 February.
import numpy as np
import pandas as pd
rng = np.random.default_rng(7)
dates = pd.date_range("2026-01-01", "2026-03-31", freq="D")
rows = []
for cohort in ["exposed", "comparison"]:
for d in dates:
impressions = int(rng.poisson(10000))
ctr = 0.05
if cohort == "exposed" and d >= pd.Timestamp("2026-02-01"):
ctr *= 0.85 # the true effect built into the synthetic data
clicks = int(rng.binomial(impressions, ctr))
position = float(rng.normal(4.0, 0.1))
rows.append(
{
"date": d,
"cohort": cohort,
"clicks": clicks,
"impressions": impressions,
"pos_x_imp": position * impressions,
}
)
daily = pd.DataFrame(rows)
def did_ctr(df, start, end, cutoff):
w = df[(df["date"] >= start) & (df["date"] <= end)].copy()
w["period"] = np.where(w["date"] >= pd.Timestamp(cutoff), "post", "pre")
g = w.groupby(["cohort", "period"])[["clicks", "impressions"]].sum()
ctr = g["clicks"] / g["impressions"]
exposed = ctr.loc[("exposed", "post")] - ctr.loc[("exposed", "pre")]
comparison = ctr.loc[("comparison", "post")] - ctr.loc[("comparison", "pre")]
return exposed - comparison
# 1. Real estimate
real = did_ctr(daily, "2026-01-01", "2026-03-31", "2026-02-01")
# 2. Placebo: pretend the change happened on 16 Jan, using only pre-change data
placebo = did_ctr(daily, "2026-01-01", "2026-01-31", "2026-01-16")
# 3. Pre-trend: slope of the daily CTR gap before the change
pre = daily[daily["date"] < "2026-02-01"].copy()
pre["ctr"] = pre["clicks"] / pre["impressions"]
gap = pre.pivot(index="date", columns="cohort", values="ctr")
gap = gap["exposed"] - gap["comparison"]
slope_per_day = np.polyfit(np.arange(len(gap)), gap.to_numpy(), 1)[0]
# 4. Impression-weighted position by cohort and period
daily["period"] = np.where(daily["date"] >= "2026-02-01", "post", "pre")
pos = daily.groupby(["cohort", "period"])[["pos_x_imp", "impressions"]].sum()
pos["position"] = pos["pos_x_imp"] / pos["impressions"]
print(f"DiD CTR (real): {real:.4f}")
print(f"DiD CTR (placebo): {placebo:.4f}")
print(f"Pre-trend slope/day: {slope_per_day:.6f}")
print(pos["position"].round(2))Read the output this way:
- The real DiD should be near -0.0075 (a 15% drop on a 5% CTR).
- The placebo should be near zero. A large placebo effect means the method finds "impact" where none exists, so you cannot trust the real number either.
- The pre-trend slope should be near zero relative to the gap itself.
- Position should be nearly equal across the four groups. A shift of more than about half a position in one cohort needs the position-bucket approach described above.
Decision flow
Common errors
- Choosing the window after seeing the result. Fix the cutoff date and cohort rules before you compute the estimate. Otherwise you will unconsciously pick the window that shows the biggest effect.
- Treating a clean placebo as proof. A placebo test only shows the method does not invent an effect at another date. It cannot show that the real effect is caused by AI Overviews.
- Using one pre-period week. One week of pre-data cannot show a trend or rule out a holiday. Use at least four whole weeks where you can.
- Ignoring the mix of queries. Cohorts built from a changing query set drift in composition, which looks like an effect.
- Skipping the reconciliation. If GA4 sessions fall but GSC clicks do not, the cause may be tagging rather than search behaviour.
Exercise
In your DiD analysis, the exposed cohort's average position worsened from 3.9 to 4.6 after the cutoff, while the comparison cohort's position stayed at 4.0. A core update finished two weeks into your post period. Name two steps you would take before reporting the CTR estimate.
Show answer
First, deal with the update by shortening the post window to end before the update started, or by estimating the update period separately. Second, deal with the position change by holding the query set fixed and comparing CTR within position buckets (or restricting to queries whose position moved by less than one place), so that a ranking loss is not counted as an AI Overview effect. Running a placebo test on the pre-period before reporting is also reasonable.
Exercise
GSC clicks are flat after the cutoff, but GA4 organic sessions for the exposed pages dropped 12% on one specific date. What does this pattern suggest, and what would you check?
Show answer
A sudden step on one date, with no matching change in GSC clicks, points to a measurement change instead of user behaviour. Check for a consent banner update, a tag manager change, a changed GA4 channel grouping, or a URL or canonical change on that date, and look at whether the GSC-to-GA4 ratio is stable on either side of it.