Somebody opens the dashboard on a Monday and asks why pages per visit doubled. Nobody remembers. Three weeks later the number halves again, and this time everyone has a theory.
A deploy log won't answer that question, because most of the things that move analytics numbers aren't deploys of your product. A tightened bot rule, a redesigned cookie banner, a server-side event somebody added "just for checkout", a goal that now matches one more URL: each of these changes the numbers on the day it ships and leaves no trace on the chart.
The fix is boring and works: keep a small release log for your analytics, one line per change, with the metrics you expect it to move. In Annotate the Day Your Cookie Banner Changed I tried that idea on a single change. This post widens it to every kind of change that moves the numbers, puts the log in a CSV next to your code, and looks at what happens when entries go missing or two changes land in the same week. It includes a 27-line script that checks your daily numbers against the log.
All numbers below come from a seeded simulation of one fictional site (about 1,200 visitors on a weekday, 120 days, July to October 2026). The point isn't the exact percentages, it's which kind of change produces which fingerprint, and what happens when entries are missing. The script runs on any daily CSV export.
Seven changes, one of them about people
I injected seven changes into the simulated site. Only the newsletter campaign changed what visitors did. The other six changed how they were counted:
| Day | Change | What it really did |
|---|---|---|
| 21 Jul | Bot filter tightened (headless browsers, two data-centre ranges) | Visitors −14%, bounce rate −10% |
| 4 Aug | New consent banner with Accept and Reject on the first layer | Returning share ×1.9 (more visitors allow storage, so more are recognised) |
| 21 Aug | Server-side page view added next to the browser script | Pages per visit ×1.95 |
| 5 Sep | Newsletter campaign, two weeks | Visitors +35%, signups per visitor −22% |
| 24 Sep | "Signup" goal now also matches newsletter sign-ups | Signup rate ×1.6 |
| 6 Oct | Global Privacy Control honoured | Returning share −20% (those visitors are counted without a stored ID) |
| 17 Oct | Duplicate fixed: browser page view removed from server-rendered pages | Pages per visit ×0.5 |
None of these is exotic. The duplicate page view is common enough that the DataVisitors web analytics page warns about it directly: recording the same load in both the browser and the server can duplicate page views, so use one source for page views. The consent and GPC rows are the ones people forget most, because they're usually shipped by whoever owns the banner, not by whoever reads the dashboard.
Fingerprints: which numbers each kind of change moves
Before the script, the most useful idea in this post: measurement changes and behaviour changes leave different fingerprints.
- Bot filtering removes visits that never did anything: visitors drop, bounce rate drops, signups don't move. If visitors fall and conversions stay flat, check the filters before you check the marketing.
- Consent and privacy settings change who can be recognised across days. Visitors and page views barely move, but returning share, retention and anything that joins visits over days jump or drop.
- Duplicate or missing tracking moves one metric by a clean ratio (×2, ×0.5) while everything else stays put. A human change almost never doubles pages per visit overnight.
- Goal and event definition changes move conversion metrics only, on the exact day of the change, with no change in traffic.
- Real changes (campaigns, launches, outages) usually move several things at once and in opposite directions: more visitors, lower conversion rate, often a different referrer mix.
That's also why the release log has an expect column. "Something changed on 24 September" is half an answer. "The goal definition changed on 24 September, and it should push the signup rate up" is something a script can check.
The release log: one CSV
This is the whole file for the simulated site:
date,type,change,expect,window_days 2026-07-21,bot-filter,Blocked headless browsers and two data-centre ranges,visitors down; bounce_rate down,7 2026-08-04,consent,New banner: Accept and Reject on the first layer,returning_share up,7 2026-08-21,tracking,Server-side page view event added to checkout and blog,pages_per_visit up,3 2026-09-05,campaign,Newsletter campaign (2 weeks),visitors up; signup_rate down,3 2026-09-19,campaign-end,Newsletter campaign ended,visitors down; signup_rate up,3 2026-09-24,goal,Signup goal now also matches newsletter sign-ups,signup_rate up,3 2026-10-06,privacy,GPC honoured: those visitors are counted without a stored ID,returning_share down,7 2026-10-17,tracking,Removed browser page view on server-rendered pages,pages_per_visit down,3 Five columns are enough:
- date: the day it went live in production, not the day the pull request was merged.
- type: a short fixed vocabulary helps later (
bot-filter,consent,privacy,tracking,goal,campaign,campaign-end,outage,timezone,content). - change: one sentence a colleague will understand in six months.
- expect: the metrics it should move and the direction. If you don't know, write your best guess; a wrong guess is still useful when the check disagrees with it.
- window_days: how far from the date a step can still belong to this change. Tracking and goal changes show up within a day or two. Consent changes take longer, because returning visitors only show up once people come back.
Notice the campaign has two rows, one for the start and one for the end. A campaign ending is a change too, and leaving it out is one of the easiest ways to get a mystery drop.
If your analytics tool has annotations, put the same line there so it shows on the chart. The CSV is still worth keeping next to it: it lives in your repository, it gets reviewed with the change, and a script can read it.
The check: 27 lines of Python
The script reads a daily export (date, visitors, page views, signups, bounce rate, returning share), computes two ratios, and slides a 7-day window across each metric. When the median of the next 7 days differs from the median of the previous 7 by 12% or more, it records a step at the day where that shift peaks. Then it looks for a log entry within that entry's window whose expect names the same metric and direction.
# Flags step changes in daily metrics and checks each one against the release log. # Usage: python3 check_log.py daily.csv release-log.csv import csv, sys, statistics as st, datetime as dt days = list(csv.DictReader(open(sys.argv[1]))) log = list(csv.DictReader(open(sys.argv[2]))) def series(name): if name == 'pages_per_visit': return [int(r['pageviews']) / int(r['visitors']) for r in days] if name == 'signup_rate': return [int(r['signups']) / int(r['visitors']) for r in days] return [float(r[name]) for r in days] W, MIN_JUMP = 7, 0.12 # 7 days each side; a 12% shift in the median counts as a step found = [] for m in ['visitors', 'pages_per_visit', 'signup_rate', 'bounce_rate', 'returning_share']: s = series(m) jumps = {i: st.median(s[i:i + W]) / st.median(s[i - W:i]) - 1 for i in range(W, len(s) - W + 1)} for i, j in jumps.items(): # one flag per step: the first day where the shift peaks before = [abs(jumps[k]) for k in range(i - W, i) if k in jumps] after = [abs(jumps[k]) for k in range(i + 1, i + W + 1) if k in jumps] if abs(j) >= MIN_JUMP and all(x < abs(j) for x in before) and all(x <= abs(j) for x in after): found.append((days[i]['date'], m, j)) for date, m, jump in sorted(found): d = dt.date.fromisoformat(date) near = [e for e in log if abs((d - dt.date.fromisoformat(e['date'])).days) <= int(e['window_days'])] fits = [e for e in near if f"{m} {'up' if jump > 0 else 'down'}" in e['expect']] if fits: note = 'explained: ' + '; '.join(f"{e['date']} {e['change']}" for e in fits) elif near: note = 'CHECK: logged change nearby, but it should not move this metric this way' else: note = 'UNEXPLAINED: nothing in the log' print(f"{date} {m:<16} {jump:+.0%} {note}") Seven days on each side means every window contains each weekday once, so a quiet weekend doesn't look like a step. Medians instead of means keep one odd day (a newsletter spike, a crawler storm) from triggering a flag on its own.
Run 1: the full log
2026-07-21 visitors -13% explained: 2026-07-21 Blocked headless browsers and two data-centre ranges 2026-08-04 returning_share +91% explained: 2026-08-04 New banner: Accept and Reject on the first layer 2026-08-20 pages_per_visit +102% explained: 2026-08-21 Server-side page view event added to checkout and blog 2026-09-05 signup_rate -25% explained: 2026-09-05 Newsletter campaign (2 weeks) 2026-09-05 visitors +40% explained: 2026-09-05 Newsletter campaign (2 weeks) 2026-09-19 visitors -26% explained: 2026-09-19 Newsletter campaign ended 2026-09-22 signup_rate +87% explained: 2026-09-19 Newsletter campaign ended; 2026-09-24 Signup goal now also matches newsletter sign-ups 2026-10-06 returning_share -19% explained: 2026-10-06 GPC honoured: those visitors are counted without a stored ID 2026-10-13 signup_rate +13% CHECK: logged change nearby, but it should not move this metric this way 2026-10-19 pages_per_visit -51% explained: 2026-10-17 Removed browser page view on server-rendered pages Ten flags, eight with an owner. Three things worth noticing:
- Dates can be a day or two off. The duplicate page view went live on 21 August; the flag landed on the 20th, because a 7-day median shifts as soon as a few of its days are affected. That's what
window_daysis for. - The bot filter's effect on bounce rate (−10%) wasn't flagged. It's below the 12% threshold. Lower it and you'll catch smaller changes, along with more noise. On real data, pick the threshold by running the script over a quiet period first and seeing how often it fires.
- The 13 October flag is noise. Signups per visitor wobble by about 8% a day in this simulation, and one week happened to sit higher than the one before. The only nearby log entry is GPC, which shouldn't move signups, so the script says CHECK instead of quietly crediting it. Without the
expectcolumn, that random wobble would have been "explained" by the privacy change.
Run 2: the same data with three entries missing
Then I deleted three lines from the log: the consent banner, the goal change, and the duplicate fix. That's realistic. They're exactly the changes that tend to be shipped by someone other than the person who reads the dashboard.
2026-08-04 returning_share +91% UNEXPLAINED: nothing in the log 2026-09-19 visitors -26% explained: 2026-09-19 Newsletter campaign ended 2026-09-22 signup_rate +87% explained: 2026-09-19 Newsletter campaign ended 2026-10-19 pages_per_visit -51% UNEXPLAINED: nothing in the log (An excerpt: the four lines that matter here. The other six are identical to run 1.)
The two UNEXPLAINED lines are the good outcome: somebody asks around and adds the missing entries. The dangerous line is the one in the middle. The signup rate rose 87%, and the script happily credited the campaign ending, because a campaign ending should push the signup rate up. In the simulation, the end of the campaign alone was worth about +28% (signups per visitor went back from 78% of normal to 100%). The other part was the goal definition counting newsletter sign-ups as signups. Anyone reading only run 2 would conclude the site converts much better now that the campaign is over.
Two habits catch that kind of overlap:
- Write the size you expect, when you know it. "signup_rate up, roughly back to the pre-campaign level" makes a +87% step look wrong straight away.
- Don't stack changes on the same metric in the same week if you can avoid it. If a goal definition has to change during a campaign, write both entries and read the numbers with extra suspicion until the window is over.
What belongs in the log (besides deploys)
From the simulation and from what tends to go wrong on real sites, these are the lines most worth writing:
- Bot and spam filtering: new rules, a CDN or WAF change, a new list of excluded IPs or user agents. Expect visitors and bounce rate down.
- Consent banner changes: layout, default buttons, the regions it shows in, the vendor. Expect returning share and multi-day metrics to move; visitor counts may move a little depending on how your tool counts visitors who decline.
- Privacy signals: starting (or stopping) to honour Global Privacy Control or Do Not Track. Tools that respect GPC count those visitors differently; DataVisitors, for example, honours GPC and Do Not Track in all of its privacy regimes, and only an explicit consent from your own banner outranks them. The day you turn that on is a line in the log.
- Tracking sources: adding server-side events, a second script, a tag manager, a single-page-app router change that fires page views differently. Expect clean ratios.
- Goal, event and funnel definitions: a new URL pattern, a renamed event, a changed funnel window.
- Campaigns and their end dates, launches, price changes, press mentions.
- Outages and slow days, including the analytics provider's own.
- Settings that change the day boundary: reporting timezone, data retention, sampling.
For each one, the expect column only needs a few words. The value is in having written them before you look at the chart.
Running it on your own data
- Export daily totals as CSV with the columns the script reads (rename columns or edit
series()to match your export). Most tools can export daily totals; some also have a read API. - Create
release-log.csvin the repository that holds your tracking code or site, and add a line in the same pull request as the change. For changes that don't go through code (a banner setting, a filter in the analytics UI), add the line the same day. - Run
python3 check_log.py daily.csv release-log.csvonce a week, or before any monthly report. - Treat UNEXPLAINED as a question for the team, and CHECK as a reason to look at the chart yourself.
- If your tool has annotations, mirror the log there so people see the context where they actually look. If it has threshold alerts or change detection, the log is what you check when one fires.
What I didn't test
- Real data. Everything above is simulated with a fixed seed. Real sites have holidays, slow trends and overlapping campaigns, so expect more noise and more CHECK lines.
- Gradual changes. A step detector finds steps. A slow rollout (10% of traffic, then 50%, then 100%) shows up as a ramp and can slip under the threshold; log each rollout stage.
- Small sites. At a few dozen visitors a day, a 12% move in a 7-day median is easily noise. Use weekly totals or a wider window.
- Seasonality longer than a week. The 7-day windows only cancel the weekday cycle.
Where this fits with DataVisitors
DataVisitors is privacy-friendly, cookieless analytics: it counts visits with a daily rotating identifier, honours GPC and Do Not Track, and lists alerts and annotations among its features. It's currently in a waitlist phase, so the pricing page is where you can join. The release log above works with any analytics tool, including the one you already use; the habit is what matters, not the product.
If you keep a log like this already, which kind of change surprised you most? I'd like to hear which lines other teams found they needed.
Need help with a project? The team behind FindUtils takes on freelance work on Upwork, including a professionally developed MVP with all the core features you need, with tracking and a release log set up from the first deploy.