Sub topic 12
Annotating Changes So Trends Can Be Explained Later
This chapter assumes you have a daily Search Console table (see the data model chapter) and can read a trend line with a rolling average. You should also be comfortable with basic Python or SQL.
A trend chart shows that something changed. It does not show why. Six months later, nobody remembers that the site migrated a template on the 14th. An annotation is a dated note that records a site change or a search event, stored next to your metrics so you can line them up later.
What to annotate
Two kinds of events explain most movements.
- Site changes you control: deployments, title and meta description rewrites, URL or redirect changes, internal linking changes, new sections, robots.txt or noindex edits, and migrations.
- External events you do not control: confirmed search engine algorithm updates, Search Console outages or reporting changes, major seasonal events, and competitor launches you know about.
Record the scope of each event as well as the date. "Title rewrite" is weak. "Title rewrite on /blog/ pages, 120 URLs" lets you segment the data later and compare the changed pages with the untouched ones.
Store annotations as a table
Keep annotations in a table you own, next to the daily data. A small table is enough.
CREATE TABLE annotations (
id SERIAL PRIMARY KEY,
event_date DATE NOT NULL,
category TEXT NOT NULL, -- 'site_change', 'algorithm', 'data_issue', 'seasonal'
scope TEXT, -- e.g. 'path:/blog/', 'site-wide'
description TEXT NOT NULL,
source TEXT -- ticket, commit, or announcement URL
);The source column matters. A link to a ticket or release note lets someone else verify the entry.
Overlay annotations on a trend
The following code plots the 7-day rolling mean of clicks and draws a vertical line for each annotation.
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("gsc_daily.csv", parse_dates=["date"])
notes = pd.read_csv("annotations.csv", parse_dates=["event_date"])
daily = df.groupby("date")["clicks"].sum().asfreq("D", fill_value=0)
trend = daily.rolling(7).mean()
fig, ax = plt.subplots(figsize=(10, 4))
ax.plot(trend.index, trend.values, label="Clicks (7-day mean)")
for _, note in notes.iterrows():
ax.axvline(note["event_date"], color="gray", linestyle="--", alpha=0.6)
ax.text(note["event_date"], ax.get_ylim()[1], note["description"][:25],
rotation=90, va="top", fontsize=8)
ax.set_ylabel("Clicks")
ax.legend()
fig.tight_layout()
fig.savefig("clicks_annotated.png")Rules for useful annotations
- Record the event when it happens. Reconstructing dates from memory produces errors.
- Use the date the change went live, not the date the ticket was created.
- Note rollouts that took several days as a start and an end entry.
- Annotate small changes too. Many ranking shifts follow minor edits that nobody thought important.
- Keep one owner for the table, or one agreed process, so entries are not missed.
How annotations fit the workflow
Common errors
- Annotating only failures. Positive changes need an explanation as well.
- Leaving out scope, which makes segment comparisons impossible.
- Ignoring reporting lag. Search Console data for recent days can be incomplete, so an event near the end of the series may look like a drop that is only missing data.
- Keeping notes in chat threads or personal documents where the analyst cannot find them.
Exercise
A title rewrite went live on 3 March for 80 pages under /guides/. Clicks fell the following week. What should the annotation contain, and what comparison would you run before blaming the rewrite?
Show answer
The annotation should have eventdate 2026-03-03, category sitechange, scope path:/guides/ (ideally with the URL count), a description of the rewrite, and a link to the ticket. Compare clicks and CTR for the 80 rewritten pages against similar /guides/ pages that were not changed, over the same period. Also check for a seasonal dip using the same weeks a year earlier, and for algorithm updates or data issues annotated near that date. If only the rewritten pages dropped, the rewrite is a likely cause.