Sub topic 13
Diagnosing a Ranking or Traffic Change
A line on a chart drops and someone asks why. Diagnosis means narrowing the possible causes until one explanation fits the data better than the others. This chapter gives a repeatable order of checks, a script that splits a click change into its parts, and a list of the mistakes that most often send people to the wrong answer.
This chapter assumes you have already built the daily table and the segments from earlier chapters. It also assumes you can read a rolling average and a year-over-year comparison, and that you know the Search Console caveats: reporting delay, anonymized queries, and tool discrepancies. You should be able to read short pandas code.
Confirm the change is real
Most "drops" are not problems. Before you look for a cause, rule out these three things:
- Noise. Compare the change with the normal week-to-week variation in your own history. A 6% dip in a series that routinely moves 8% is not a finding.
- Seasonality. Compare the same period one year earlier, using the 364-day shift so weekdays line up. If last year fell by the same amount, the change is seasonal.
- Incomplete data. Search Console data lags by a day or two. A fall in the last two days of a chart is often missing data. Exclude those days from the comparison.
If the change survives all three checks, define it precisely. Write down the metric, the two date windows, and the size of the change. "Clicks fell 18% comparing 28 days ending 26 Oct with the previous 28 days" can be tested. "Traffic is down" cannot.
Work from the outside in
Check the broadest explanations first, because they are cheap to test and they explain the most. The flow below moves from measurement problems to site problems to search-side changes.
Decompose clicks into impressions and CTR
Clicks equal impressions multiplied by CTR. A change in clicks therefore comes from one of two places, and each points to different causes.
| Pattern | What it usually means | Where to look next |
|---|---|---|
| Impressions down, CTR flat | Fewer people saw you, from lower rankings or lower demand | Position by query, seasonality |
| Impressions flat, CTR down | Same visibility, fewer clicks | New SERP features, title or snippet changes, a competitor |
| Impressions up, CTR down | You rank for more queries, often lower-intent ones | Query mix, position distribution |
| Both flat, sessions down | Search Console is fine, so the problem is later in the chain | Tracking, consent, redirects, analytics filters |
The last row matters. If Search Console clicks held steady but organic sessions fell, the cause is not in search. Check the join between search data and analytics (landing page URL formats, consent banners, tag changes) before you change anything on the site.
Split the change by segment
Sitewide totals hide where a change happened. A flat total can contain a large gain on one page group and a large loss on another. The script below compares two windows by page. It splits each page's click change into an impressions effect and a CTR effect. The two effects add up exactly to the click change.
import pandas as pd
df = pd.read_csv("gsc_daily.csv", parse_dates=["date"])
# Columns: date, query, page, clicks, impressions, ctr, position
def window(frame, start, end):
mask = (frame["date"] >= start) & (frame["date"] <= end)
return frame.loc[mask]
def by_page(frame):
work = frame.assign(pos_x_impr=frame["position"] * frame["impressions"])
grouped = work.groupby("page")[["clicks", "impressions", "pos_x_impr"]].sum()
grouped["avg_position"] = grouped["pos_x_impr"] / grouped["impressions"]
return grouped.drop(columns="pos_x_impr")
before = by_page(window(df, "2026-09-01", "2026-09-28")).add_suffix("_before")
after = by_page(window(df, "2026-09-29", "2026-10-26")).add_suffix("_after")
cmp = before.join(after, how="outer")
count_cols = ["clicks_before", "impressions_before", "clicks_after", "impressions_after"]
cmp[count_cols] = cmp[count_cols].fillna(0)
ctr_before = (cmp["clicks_before"] / cmp["impressions_before"].where(cmp["impressions_before"] > 0)).fillna(0)
ctr_after = (cmp["clicks_after"] / cmp["impressions_after"].where(cmp["impressions_after"] > 0)).fillna(0)
cmp["clicks_change"] = cmp["clicks_after"] - cmp["clicks_before"]
cmp["impressions_effect"] = (cmp["impressions_after"] - cmp["impressions_before"]) * ctr_before
cmp["ctr_effect"] = (ctr_after - ctr_before) * cmp["impressions_after"]
cmp["position_change"] = cmp["avg_position_after"] - cmp["avg_position_before"]
total = cmp["clicks_change"].sum()
cmp["share_of_change"] = cmp["clicks_change"] / total if total != 0 else float("nan")
report = cmp.sort_values("clicks_change")[
["clicks_change", "impressions_effect", "ctr_effect", "position_change", "share_of_change"]
]
print(report.head(10))
print(report.tail(5))Read the output from the top. If five pages account for most of the loss, you have a page-level problem, and you can inspect those five pages. If the loss is spread thinly across hundreds of pages, suspect a sitewide cause such as a template change, a technical fault, or a search-side update.
The same function works for any other segment column. Change "page" to a brand flag, device or country and the decomposition is the same.
A negative position_change means the page moved up, because lower numbers are better. Read the sign carefully before you report a direction.
Compare segments against each other
The pattern across segments is often more informative than any single segment.
- Brand vs non-brand. A fall in brand queries usually reflects demand, such as a campaign ending or a seasonal peak passing. A fall in non-brand queries is more likely to be a ranking problem.
- Device. A drop only on mobile points to a mobile rendering, speed or layout issue. A drop on both suggests content or ranking causes.
- Country. A loss in one country can come from a hreflang error, a redirect rule, or a local competitor.
- Page group. A loss limited to one template, such as product pages, suggests a change to that template.
Segments that fall together are a clue as well. If every segment fell by a similar percentage on the same day, the cause is probably in measurement or in a sitewide change, not in competition for individual queries.
Line the change up with annotations
Once you know where the change is concentrated, check the annotation log for what happened near the start date. Look for deployments, redirect changes, robots or noindex edits, title rewrites, migrations, and search engine update announcements. The change should begin on or shortly after the event, not before it.
Be careful with timing. Ranking effects often take days to appear, while a tracking break shows up immediately. A drop that starts the same day as a tag manager release points to measurement. A drop that starts a week after a content rewrite points to rankings.
Common errors
- Comparing windows of different length or weekday mix. Use whole weeks and equal lengths.
- Averaging position without weights. A simple mean of daily positions lets a day with 20 impressions count as much as a day with 20,000. Use the impression-weighted version.
- Reading average position as a ranking. A page can gain impressions for long-tail queries it ranks poorly for, which makes average position worse while clicks rise. Look at the position distribution before calling that a loss.
- Ignoring the query mix. A CTR fall can come from the mix shifting toward lower-CTR queries. Compare CTR within the same queries.
- Mixing query-level and page-level totals. Anonymized queries are missing from query rows. Totals computed from query-level rows can be lower than totals computed from page-level data.
- Declaring a cause with no test. State your confidence. If you fix the suspected cause, check that the affected segment recovers and the others stay unchanged.
Worked example
Clicks fell 14% over 28 days. The year-over-year check shows last year was flat over the same weeks, so seasonality does not explain it. Impressions are stable but CTR fell. The page split shows 70% of the lost clicks come from 12 pages in the /guides/ folder. Position on those pages is unchanged. The annotation log shows a title template change deployed on the first day of the new window. The cause is probably the new titles reducing CTR. The test is to revert the titles on half of the affected pages and compare CTR on the two halves over the next few weeks.
Exercise
Clicks fell 20% between two 28-day windows. Impressions fell 2%, and average position is unchanged. The loss is spread evenly across all page groups and both devices. Search Console clicks fell, but organic sessions in analytics fell by only 3%. Which cause do you investigate first, and why?
Show answer
Start with the measurement and SERP-layout explanations before ranking causes. Impressions and position barely moved, so rankings are not the problem. The fall is in CTR, spread evenly across every segment, which fits a sitewide SERP change or a change in how Search Console is counting. Sessions fell far less than clicks, so check how the two sources are joined and whether the Search Console figures changed because of reporting or because of a layout change on the results page. Compare against the annotation log and any known search-side changes in the period.