Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Synthetic data

A website's data layer and tags before release

On a synthetic website, a browser check before release stopped 3 of an independent author's 5 tracking breaks, all that came through a site build or tag publish.

Main limitation Three breaks are too few to say how often it would miss one; without it, monitoring's automated checks found all 5 within 2 days in the base case, the main settings fixed before the test, but at a third of the traffic, in 16 of 20 runs, they missed 2 of the 5 for all 28 days. The B2B site and its releases, traffic and thresholds are the study's choices, and the author wrote its 12 releases in a single run; 2 of its 5 breaks send the same hits as one of the study's own, among them the only one the data layer check stopped, and the study coded the checks after reading the author's releases, though the design had fixed their assertions first.

A website can report wrong numbers while every page still works. The study ran 39 real code changes to a small site, 12 of them by an independent author, through scripted visits in a headless browser, so the truth behind every hit is known. A check of the data layer alone let through one of the 3, a guide request whose hit never left the browser. Damage is counted in wrong metric-days: each of seven reported metrics scores one for every day it is materially wrong. The author's breaks were all loud, each making a metric wrong from its first day; some breaks in the study's own releases were quiet, and monitoring's automated checks never found two of them in 28 days. My pick: check what leaves the browser before every site build and tag publish, keep monitoring for changes that pass through neither, and on a site with a third of this traffic, replay the same sessions each morning, a choice made after the results that rests on one break.

Key figures
The independent author's breaks stopped by the full browser check
3 of 5
a self-test on the study's own releases: 17 of 19, again all that went through a site build or tag publish
The same breaks stopped by the data layer check alone
1 of 5
it runs only on site builds, which carried 2 of the 5. 4 of 19 on the study's own releases
Wrong metric-days on the author's breaks: monitoring alone, then with the full check
10, 7
scored with each fix landing the day of the alarm, a best case for monitoring. A fix 1 day later gives 20 and 14, 3 days later 40 and 28
Slowest find by monitoring, the author's breaks, base case
day 2
median day 1. The price: alarms on 5 to 11 of 42 clean days
Of the independent author's 5 tracking breaks, the full browser check stopped every one that went through a site build or tag publish.

3 of 5 stopped before release

  1. Reset the guide form after submission: stopped; stopped by the full check; the data layer check let it through
  2. Use the stored plan value in the demo tag: stopped; a tag publish, stopped by the full check; the data layer check does not run on one
  3. Share resource navigation rendering: stopped; stopped by both checks before release
  4. Simplify the campaign redirect: shipped; a redirect rule, with no release to check; in the base case monitoring found it on day 1 in every run
  5. Update saved consent handling: shipped; a vendor script, with no release to check; in the base case monitoring found it on day 1 in every run

Every release, and what each check did with it, is in the table under What each check did, release by release.

This is a second round of Event contracts before release, which asked the same question on an app. Other metrics and another way of shipping, so the metric-days here do not compare with that page.

How many metric-days each way of checking left wrong

Each bar sums wrong metric-days over the metric-breaking releases in the 28 days from each release, as the mean of 20 runs, with a line from the lowest to the highest run. Left alone, the author's 5 breaks leave 287, and the 19 in the study's own releases leave 1,171. The two sets are never pooled.

Wrong metric-days left by each way of checking, base case
  • The study's own releases (19 breaks)
  • Releases by an independent author (5 breaks)
Wrong metric-days left by each way of checkingFor each way of checking, one bar for the study's own releases and one for the releases written by an independent author: wrong metric-days summed over the metric-breaking releases, mean of the runs, with a line from the lowest to the highest run. The tables under the chart list every value.Wrong metric-days in the four weeks after release, summed over the metric-breaking releases050100150Dashboards only, releases by an independent author: 41 wrong metric-days, mean of 20 runs (37 to 47); 0 of 5 breaks stopped before release. Dashboards only, the study's own releases: 119 wrong metric-days, mean of 20 runs (96 to 144); 0 of 19 breaks stopped before releaseDashboards only11941Monitoring after release, releases by an independent author: 10 wrong metric-days, mean of 20 runs (10 to 11); 0 of 5 breaks stopped before release. Monitoring after release, the study's own releases: 57 wrong metric-days, mean of 20 runs (40 to 88); 0 of 19 breaks stopped before releaseMonitoring after release5710Data layer check, then dashboards, releases by an independent author: 10 wrong metric-days, mean of 20 runs (9 to 12); 1 of 5 breaks stopped before release. Data layer check, then dashboards, the study's own releases: 56 wrong metric-days, mean of 20 runs (38 to 76); 4 of 19 breaks stopped before releaseData layer check, then dashboards5610Data layer check and monitoring, releases by an independent author: 9 wrong metric-days, mean of 20 runs (9 to 10); 1 of 5 breaks stopped before release. Data layer check and monitoring, the study's own releases: 51 wrong metric-days, mean of 20 runs (36 to 72); 4 of 19 breaks stopped before releaseData layer check and monitoring519Full browser check and monitoring, releases by an independent author: 7 wrong metric-days, mean of 20 runs (7); 3 of 5 breaks stopped before release. Full browser check and monitoring, the study's own releases: 6 wrong metric-days, mean of 20 runs (5 to 7); 17 of 19 breaks stopped before releaseFull browser check and monitoring67Full check, monitoring and a morning replay, releases by an independent author: 7 wrong metric-days, mean of 20 runs (7); 3 of 5 breaks stopped before release. Full check, monitoring and a morning replay, the study's own releases: 6 wrong metric-days, mean of 20 runs (5 to 7); 17 of 19 breaks stopped before releaseFull check, monitoring and a morning replay67

Wrong metric-days left by each way of checkingFor each way of checking, one bar for the study's own releases and one for the releases written by an independent author: wrong metric-days summed over the metric-breaking releases, mean of the runs, with a line from the lowest to the highest run. The tables under the chart list every value.Wrong metric-days, breaking releases050100150Dashboards only, releases by an independent author: 41 wrong metric-days, mean of 20 runs (37 to 47); 0 of 5 breaks stopped before release. Dashboards only, the study's own releases: 119 wrong metric-days, mean of 20 runs (96 to 144); 0 of 19 breaks stopped before releaseDashboards only11941Monitoring after release, releases by an independent author: 10 wrong metric-days, mean of 20 runs (10 to 11); 0 of 5 breaks stopped before release. Monitoring after release, the study's own releases: 57 wrong metric-days, mean of 20 runs (40 to 88); 0 of 19 breaks stopped before releaseMonitoring after release5710Data layer check, then dashboards, releases by an independent author: 10 wrong metric-days, mean of 20 runs (9 to 12); 1 of 5 breaks stopped before release. Data layer check, then dashboards, the study's own releases: 56 wrong metric-days, mean of 20 runs (38 to 76); 4 of 19 breaks stopped before releaseData layer check, then dashboards5610Data layer check and monitoring, releases by an independent author: 9 wrong metric-days, mean of 20 runs (9 to 10); 1 of 5 breaks stopped before release. Data layer check and monitoring, the study's own releases: 51 wrong metric-days, mean of 20 runs (36 to 72); 4 of 19 breaks stopped before releaseData layer check and monitoring519Full browser check and monitoring, releases by an independent author: 7 wrong metric-days, mean of 20 runs (7); 3 of 5 breaks stopped before release. Full browser check and monitoring, the study's own releases: 6 wrong metric-days, mean of 20 runs (5 to 7); 17 of 19 breaks stopped before releaseFull browser check and monitoring67Full check, monitoring and a morning replay, releases by an independent author: 7 wrong metric-days, mean of 20 runs (7); 3 of 5 breaks stopped before release. Full check, monitoring and a morning replay, the study's own releases: 6 wrong metric-days, mean of 20 runs (5 to 7); 17 of 19 breaks stopped before releaseFull check, monitoring and a morning replay67

Metric-breaking releases by an independent author: 5 of 12; counts per run, lowest to highest of 20 runs; a fix the day of the find
Way of checkingStopped before releaseStopped, counting the locked formFound after releaseNot found in 28 daysMedian days to a findWrong metric-days, meanLowest to highest run
Dashboards only0 of 50 of 64114137 to 47
Monitoring after release0 of 50 of 65011010 to 11
Data layer check, then dashboards1 of 51 of 6401109 to 12
Data layer check and monitoring1 of 51 of 640199 to 10
Full browser check and monitoring3 of 54 of 620177
Full check, monitoring and a morning replay3 of 54 of 620177
The same table for the study's own releases
The study's own metric-breaking releases: 19 of 27; counts per run, lowest to highest of 20 runs; a fix the day of the find
Way of checkingStopped before releaseFound after releaseNot found in 28 daysMedian days to a findWrong metric-days, meanLowest to highest run
Dashboards only0 of 1916 to 172 to 3111996 to 144
Monitoring after release0 of 1918 to 190 to 115740 to 88
Data layer check, then dashboards4 of 1914 to 150 to 115638 to 76
Data layer check and monitoring4 of 1914 to 150 to 115136 to 72
Full browser check and monitoring17 of 1920165 to 7
Full check, monitoring and a morning replay17 of 1920165 to 7

Every arm keeps a dashboard reader (under Terms). Found means an alarm, on or after the release day, on something the release affected, that the clean build on the same seed and day does not raise. Two parts of that rule favour monitoring, so read its figures as a best case: the fix lands the day the alarm fires, and the clean build, which a real team does not have, credits the dashboard reader only when its line is not crossing on noise. What moves the result moves both. The locked form column counts the author's form guard, a real loss that breaks no metric.

What it means

A check stops what it names, by construction. A value of the wrong type fails a schema because that is what a schema does, so a stop is not a finding in itself; what is measured is what each check lets through. The same study wrote the sessions and its own releases, so 17 of 19 on the study's own releases is a self-test.

A check of the data layer alone misses what happens after the data layer. The design said that if the data layer check stopped most of the author's breaks, a schema on the data layer would be enough, and that if the full check stopped no more than it, the 14 sessions would only fit the breaks the study imagined. Neither happened (1 and 3 of 5), but only one break sets the two checks against each other on a build both ran on: a form reset left the push right and emptied the field the guide tag needs, so the data layer check passed while the hit never left. Of the full check's two other stops, one is the data layer check's only stop, a shared route that lost its page views, and the other a tag publish, a channel the data layer check never runs on. If you can only afford one thing, capture what leaves the browser.

The design's test of monitoring needs quiet breaks, and only the study's own releases have them. It was set in advance: "If monitoring found quiet breaks within 2 days, the case for a pre-release check would rest on avoiding the first day's damage." Each of the author's breaks made a metric wrong on its first day in every run, so that set cannot run the test. The study's own releases can, and the condition did not hold: the lost double-submit guard took up to day 16, a visitor cookie that lost its site-wide path up to day 8. Monitoring's own checks missed the guard and the cookie path in 8 of 20 runs each, and a plan value sent per month and the monthly billers' value in all 20. So on the study's own releases the case for a check before release rests on more than the first day's damage, though this is the self-test set.

Read after the results: on the author's set the full check saved few metric-days, at the floor. It took those breaks from 10 to 7 wrong metric-days. A find on the first morning still counts the first day, and between them the author's breaks make an average of 10.1 metrics wrong on it, 7 on the 2 no check before release can stop. So the saving is the stopped breaks' first days, and it grows with each day a fix takes.

The morning replay helped only where monitoring was slow. Without the dashboard reader it helped on the study's own releases in the base case, 5.6 wrong metric-days against 6.5, and on both sets at a third of the traffic, under What I would pick.

Wrong metric-days undercount three of these. Tags that stop waiting for consent (one of the study's own releases) send data about people who refused, and a vendor update that keeps analytics on after a reject does the same from outside any release: by the time monitoring finds them, the hits have gone, a compliance harm the count does not price. The third, the author's locked form, is valued next.

What it is worth, on costs set after the results. From the first round, US$100 an hour, 120 setup hours (60 to 240 in the range, since the first round's were for app sessions) and 1 hour per release checked and per alarm on a release that broke nothing, the locked form's alarm counting as a stop rather than noise. On the author's 12 releases the check costs US$13,000 against 3.15 wrong metric-days avoided beyond monitoring, so it pays on metric-days only if one costs more than about US$4,127, or US$199 to US$7,937 across fix times, release counts and setup hours (US$39 to US$526 on the study's own releases), a cost this study does not measure. The locked form is valued apart, as pipeline: under monitoring alone it ran until an alarm on day 1 to day 14 (1 run in 20 had none in 28 days). Stopping it before release saves about US$47,000 of pipeline with a find on the first morning, US$256,000 on the average run and US$532,000 at the slowest find. Pipeline here is a year's contract value, so for that one stop to cover the check's US$13,000, more than 27.9%, 5.1% or 2.4% of it would have to turn into first-year gross profit (win rate times gross margin), a rate this study does not measure. Two simplifications pull opposite ways: the pipeline counts only visitors who accept tracking, while the lock turns away the others too, which lowers the shares needed; and it assumes a visitor the lock turns away never reaches sales another way, which raises them.

What I would pick. Capture outgoing hits in scripted sessions before every site build and tag publish, across consent choices, a campaign entry and a phone layout, and keep monitoring after release for changes that pass through neither. On a site with a third of this traffic, add the morning replay too: there monitoring's automated checks missed the campaign redirect in most runs and the replay found it on the first morning, so without the dashboard reader the replay cut the author's breaks from 28.2 wrong metric-days to 7.0, and the study's own releases from 20.1 to 4.7. On the author's set that rests on one break, and it was chosen after reading the results. On these releases the sessions earn their place on consent and on lost leads more than on metric-days saved.

Terms used on this page

Data layer
The list the page fills with what happened. Nothing leaves the browser from here on its own.
Tag layer
The code that reads the data layer and decides what to send and when, under its own configuration.
Hit
One outgoing request to the collection endpoint. Metrics are computed on the hits that land.
Data layer check
3 scripted sessions on each site build, asserting every push against the schema and the events each session should push. It never looks at what leaves the browser.
Full browser check
14 scripted sessions on each site build and tag publish, which also assert the outgoing hits: one per event, the right campaign and value, none without consent.
Morning replay
The same 14 sessions each morning against the live site, so it sees any channel, after the fact.
Monitoring
Its automated checks, also called its own checks, run daily on landed hits: schema failures, each event's volume against the same weekday and each metric against its spread over 28 days. Its figures also credit the dashboard reader unless they say "own checks" or "automated checks".
Dashboard reader
A person who notices a metric more than 30% from its mean over the previous 28 days. Every way of checking keeps one; the note under the chart says when its finds count.
Base case
The settings declared before the test: this traffic, every release on the first working day of the week and each fix landing the day of the alarm.
Release
Any change scored here. Site builds and tag publishes pass through a release step a check can run on; redirect rules and vendor script updates have none, so they ship outside a release.
Metric-breaking release
A release that, left alone, makes at least 3 metric-days wrong in 28 days.

The written framework behind the tracking

Every check here is held to one written standard: a measurement framework from business question to event, an event list and a data layer specification, all in the framework file, with machine-readable versions for the data layer and the hits. The site's source includes its page code, tag layer and tag configuration.

From business question to metric to event
Business questionMetricRead from
Is the site reaching people?Visitors a daypage_view
Do they read, or leave?Pages per visitorpage_view
How much sales demand does the site make?Demo requests a daydemo_request
Does the pricing page move people to talk to sales?Pricing to demo conversionpage_view on pricing, demo_request
Are paid campaigns earning their budget?Paid share of demo requeststhe channel on demo_request
How large is the demand?Pipeline value a daythe annual value on demo_request
Does content make leads?Guide leads a dayasset_download

What carries over to any tag manager, and what does not

The tag layer here is a small open script of about a hundred lines, written for this study. No commercial tag manager was tested, and this round names none.

Carries over

Does not carry over

What each check did, release by release

Every release was scored on its own against the clean build, in 20 runs. Days count from the release: day 1 is the morning after. Under "no" the figure is the noise a harmless release still accrues against the tolerance.

Every release by an independent author: what each check did (days after release; runs of 20)
ReleaseShips asThe author expected a breakBreaks a metric (wrong metric-days left alone)Data layer checkFull browser checkMonitoringScripted visits stopped, with a page error
Refresh the home pagesite buildnono, 1.1passedpassedalarm day 1 to 50, 0
Defer home page scriptssite buildnono, 1.8passedpassedno alarm0, 0
Reset the guide form after submissionsite buildyesyes, 30 metric-dayspassedstopped before releasefound day 1 to 20, 0
Use the stored plan value in the demo tagtag publishyesyes, 30 metric-daysdoes not run on this channelstopped before releasefound day 10, 0
Simplify the campaign redirectredirect ruleyesyes, 30 metric-daysdoes not run on this channeldoes not run on this channelfound day 10, 0
Update saved consent handlingvendor scriptyesyes, 168 metric-daysdoes not run on this channeldoes not run on this channelfound day 10, 0
Share resource navigation renderingsite buildyesyes, 30 metric-daysstopped before releasestopped before releasefound day 10, 0
Increase Growth pricingsite buildnono, 2.0passedpassedalarm in 5 of 20 runs, day 1 to 120, 0
Publish a certificate checklistsite buildnono, 1.9passedpassedalarm in 18 of 20 runs, day 1 to 70, 0
Retire form interaction tagstag publishnono, 2.0does not run on this channelalarm before releasealarm day 1 to 20, 0
Add a legacy demo redirectredirect rulenono, 2.0does not run on this channeldoes not run on this channelno alarm0, 0
Upgrade form submission guardingsite buildyesno, 2.4passedalarm before releasealarm in 19 of 20 runs, day 1 to 1432, 0
Every one of the study's own releases
Every one of the study's own releases: what each check did (days after release; runs of 20)
ReleaseShips asBreaks a metric (wrong metric-days left alone)Data layer checkFull browser checkMonitoringScripted visits stopped, with a page error
Demo form's email field renamedsite buildyes, 113 metric-dayspassedstopped before releasefound day 10, 0
Client-side route change sends no page viewsite buildyes, 31 metric-daysstopped before releasestopped before releasefound day 10, 0
Back button in resources sends no page viewsite buildyes, 30 metric-daysstopped before releasestopped before releasefound in 19 of 20 runs, day 10, 0
Page view fires twice on every loadsite buildyes, 30 metric-daysstopped before releasestopped before releasefound day 10, 0
Form loses its double-submit guardsite buildyes, 20 metric-dayspassedstopped before releasefound day 1 to 160, 0
Consent banner delayed 5 seconds for page speedsite buildyes, 172 metric-dayspassedstopped before releasefound day 10, 0
Events held before consent are droppedsite buildyes, 81 metric-dayspassedstopped before releasefound day 10, 0
Tags no longer wait for consentsite buildyes, 159 metric-dayspassedstopped before releasefound day 10, 0
Campaign redirect loses its UTM parametersredirect ruleyes, 29 metric-daysdoes not run on this channeldoes not run on this channelfound day 10, 0
Clean URLs: the site strips the query string on loadsite buildyes, 29 metric-dayspassedstopped before releasefound day 10, 0
Annual value sent as formatted textsite buildyes, 29 metric-daysstopped before releasestopped before releasefound day 10, 0
Plan value sent per month, not per yearsite buildyes, 29 metric-dayspassedstopped before releasefound day 1 to 40, 0
Plan choice not recorded on phonessite buildyes, 28 metric-dayspassedstopped before releasefound day 1 to 20, 0
Demo tag's trigger renamed in a tag clean-uptag publishyes, 112 metric-daysdoes not run on this channelstopped before releasefound day 10, 0
Channel fields dropped from the demo tagtag publishyes, 29 metric-daysdoes not run on this channelstopped before releasefound day 10, 0
A copied page view tag fires beside the originaltag publishno, 2.2does not run on this channelalarm before releaseno alarm0, 0
Vendor update makes Reject keep analytics onvendor scriptyes, 135 metric-daysdoes not run on this channeldoes not run on this channelfound day 10, 0
Campaign values kept for the landing page onlysite buildyes, 30 metric-dayspassedstopped before releasefound day 10, 0
Visitor cookie loses its site-wide pathsite buildyes, 58 metric-dayspassedstopped before releasefound day 1 to 80, 0
New article event, specification updated with itsite buildno, 2.2passedpassedno alarm0, 0
Page title added to page views, specification not updatedsite buildno, 2.2alarm before releasealarm before releaseno alarm0, 0
Internal refactor, events unchangedsite buildno, 2.1passedpassedno alarm0, 0
Currency dropped from the plan tagtag publishno, 2.1does not run on this channelalarm before releasealarm day 10, 0
Articles labelled blog in page viewssite buildno, 2.5alarm before releasealarm before releasealarm day 10, 0
Pricing page redesign: more people book a demosite buildno, 1.3passedpassedalarm day 1 to 20, 0
Home page headline change: more people leave at oncesite buildno, 2.9passedpassedalarm day 1 to 20, 0
Monthly billers' annual value sent as one monthsite buildyes, 26 metric-dayspassedstopped before releasefound in 16 of 20 runs, day 1 to 260, 0

One break, from the release to the metric

The independent author's release, in its own words: The forms team clears the guide form after validation so the entered address is not left visible during the request. The author expected it to break a metric, and it did. In this session recorded in the browser, the data layer holds 1 guide event under the release, as on the clean build, and the outgoing hits hold 0.

One session in the browser: a direct visitor on a desktop accepts the banner and asks for the guide
RecordedEvents, in order
Data layer, clean buildpage_view, consent_update, consent_update, page_view, page_view, consent_update, page_view, form_start, asset_download, consent_update, page_view
Data layer, under the releasepage_view, consent_update, consent_update, page_view, page_view, consent_update, page_view, form_start, asset_download, consent_update, page_view
Outgoing hits, clean buildpage_view, page_view, page_view, page_view, form_start, asset_download, page_view
Outgoing hits, under the releasepage_view, page_view, page_view, page_view, form_start, page_view
Guide leads in the first week after the release, one run: the truth against what landed
Day from the releaseTrue guide leadsLanded under the releaseLanded on the clean build
138038
256056
346045
445045
543042
616016
719019

Over that first week of this run, 263 people asked for the guide and 0 landed. Who saw it: the data layer check passed, because the push is correct. The full browser check fails it before release, because a guide session must send one hit. Monitoring, had it shipped, found it on day 1 in the quickest run and day 2 in the slowest, leaving 1.1 wrong metric-days against 29.6 left alone.

Alarms on releases that broke no metric

7 of the independent author's releases broke no metric by the study's rule, and one of them is a real loss. The guard that locks the form after one invalid try loses every visitor whose first try fails: 10% of true demo requests, the share of failed first tries the traffic model assumes for every entry. Truth follows what the visitor did, so no metric is wrong, against the author's expectation. The full check stops it before release, and monitoring raised an alarm in 19 of 20 runs, from day 1 to day 14. The full check's one other alarm was the retired form tags, which drift from the written framework. Monitoring alarmed on 3 to 5 of these releases per run, among them a home page refresh that really changes behaviour: a monitor cannot tell that from a broken tag. On the study's own releases, 8 such releases drew 4 full check alarms and 2 data layer check alarms, on drift from the specification and on a copied tag the metrics count once.

On 42 clean days with no change, monitoring raised an alarm on 5 to 11, and a reader noticing 30% moves would have reacted on 28 to 37, since weekends alone move most daily counts further than that. A release whose hits match the clean build's still counts about 2 wrong metric-days of noise against the tolerance; that noise sits inside every total.

What moves the result

The declared settings, moved one at a time before the results, barely move monitoring's wrong metric-days on the author's breaks: 10.0 to 11.2. Read after the results, they move its speed more. At a third of the traffic, monitoring's slowest find on the author's set is day 5, not 2, and only through the dashboard reader: its own checks find the campaign redirect in 4 of 20 runs and the form reset in 1, missing both in 16, and the reader finds the rest with a line that crosses its band on 36 to 41 of 42 clean days at that traffic. Without the reader, monitoring alone leaves 58 wrong metric-days on the author's breaks there, against 11 with it. The declared sweep credits the reader and hides this, also because the tolerances widen as traffic falls: demo requests may be 25% off before a day counts as wrong, against 12% here. The collapsed table below has each setting's slowest find.

Two inputs that move the metric-days far more were never in that sweep: how long a fix takes after the alarm, and whether the dashboard reader's finds count. This table moves both, after the results. In the base case, leaving out the dashboard reader barely touches the author's set and more than doubles the figure on the study's own releases for monitoring alone.

What the rule for a find assumes, moved after the results: wrong metric-days, mean of 20 runs
Rule for a findMonitoring alone, independentFull check and monitoring, independentWith the replay, independentMonitoring alone, study's ownFull check and monitoring, study's ownWith the replay, study's own
As scored: dashboard reader credited, fix the same day10775766
Dashboard reader credited, fix 1 day after the find201414981111
Dashboard reader credited, fix 3 days after the find4028281792323
Monitoring's own checks only, fix the same day107713576
Monitoring's own checks only, fix 1 day after the find2014141731211
Monitoring's own checks only, fix 3 days after the find4028282492423
The declared settings, one at a time

In the declared sweep, the metric band moves monitoring on the study's own releases from 53 to 70. Three times the traffic lifts it to 69, which looks backwards: with less daily noise the dashboard line crosses its band less often, so it finds the monthly billers' value in 7 of 20 runs against 16. The tight volume band costs the most in false alarms, 13 to 26 of 42 clean days. The tolerance also changes which releases count as breaking.

The declared settings, one moved at a time: wrong metric-days, mean of 20 runs
SettingBreaks, study's own, independentMonitoring alone, independentFull check and monitoring, independentWith the replay, independentMonitoring alone, study's ownFull check and monitoring, study's ownWith the replay, study's ownMonitoring alarm days on clean days
As declared19, 5107757665 to 11
Metric band 2 standard deviations19, 5107753666 to 17
Metric band 4 standard deviations19, 5107770664 to 11
Tolerance floor 1%20, 5107757665 to 11
Tolerance floor 5%19, 5107756665 to 11
Traffic times 0.3319, 5118754555 to 11
Traffic times 319, 5107769662 to 7
Landed share 99.5%19, 5107761665 to 11
Landed share 95%19, 5107759555 to 15
Volume band 0.8 to 1.2519, 51077566613 to 26
Volume band 0.6 to 1.6019, 5107757661 to 7
Read after the results: the slowest find at each declared setting, and the breaks monitoring's own checks miss in 28 days per run, lowest to highest of 20 runs
SettingMonitoring alone, independentOwn checks miss, independentWith the replay, independentMonitoring alone, study's ownOwn checks miss, study's own
As declaredday 20day 1day 262 to 5
Metric band 2 standard deviationsday 10day 1day 230 to 3
Metric band 4 standard deviationsday 20day 1day 263 to 6
Tolerance floor 1%day 20day 1day 262 to 5
Tolerance floor 5%day 20day 1day 262 to 5
Traffic times 0.33day 50 to 2day 1day 284 to 9
Traffic times 3day 10day 1day 262 to 3
Landed share 99.5%day 20day 1day 262 to 5
Landed share 95%day 20day 1day 282 to 5
Volume band 0.8 to 1.25day 20day 1day 262 to 3
Volume band 0.6 to 1.60day 10day 1day 262 to 5

What the study predicted before the test, and what held

6 of 7 held, one of them only because more of the author's breaks skip a release. The one that did not: monitoring was to miss two quiet breaks in the study's own releases on most runs, and found them in 20 and 16 of 20 runs; its own checks found the first in 12 runs and the second in none, so the other finds were the dashboard reader's. The design's own tests of what would change the conclusion are under What it means.

All 7 predictions
  1. The data layer check stops the breaks visible in the data layer of its three sessions, and none that sit in the tag layer, the consent banner, a campaign entry or the phone layout. Held: it stopped 4 of the 19 predicted breaks.
  2. The full check stops every predicted break except the two that ship outside a release. Held: it stopped 17 of the 19 predicted breaks.
  3. On the independent author's releases, the full check stops a smaller share of the breaks than on the study's own releases. Held on the point estimate: 60% against 89%, but the gap is the channel mix: 2 of the author's 5 breaks ship outside any release, against 2 of the 19 in the study's own releases, and on the channels it runs on it stopped all of both. The releases were written to a brief, not sampled, so no interval applies, and 5 breaks are too few to rank the two shares.
  4. Monitoring finds the loud breaks on the first morning, a median of at most 2 days among those it finds, and misses the lost double-submit guard and the monthly billers' value on most runs. Not held: the median was 1 on the study's own releases, but the lost double-submit guard was found in 20 of 20 runs; the monthly billers' value was found in 16 of 20 runs. Monitoring's own checks raised that last one in 0 runs; those finds are the dashboard reader's.
  5. Monitoring raises an alarm on both real behaviour changes, which break no metric. Held: 0 of 2 broke a metric, and each drew an alarm in 20 of 20 runs. It holds with the double-click rule listed under Method.
  6. The morning replay finds both breaks that ship outside a release on the first morning. Held: both were found on day 1. Monitoring found them that fast too in the base case, so the replay could not show a difference there.
  7. Each release's own prediction holds for at least 80% of the study's own releases. Held: 25 of the 27; the misses are the two quiet breaks, the lost double-submit guard and the monthly billers' value.

The study wrote these before any release ran. 9 of the study's own releases ran only after a first scoring of the other 30 had been read; Method lists them.

How I would run this with a team

Limits

Use this at your company

To decide which website tracking checks to run before a release and which after, paste this into an AI assistant along with your tracking plan and a list of past changes to the site and its tags.

This method comes from Diogo Travassos's study "A website's data layer and tags before release" (https://diogotravassos.dev/event-contracts/web-data-layer.html). If you can open links, read it first: it works the method through end to end and shows its checks. The steps below stand on their own if you can't.

Help me decide which website tracking checks to run before a release and which after, by replaying our own past changes to the site, the tags, the redirects and the consent banner.

The plan:
1. Write the measurement framework: each business question, its metric and the events it reads from. Write the event list and the data layer as a machine-checked schema, with required properties, types and allowed values, and do the same for what leaves the browser.
2. List the last few months of changes that could touch tracking, including tag publishes, redirect rules and vendor script updates that never passed through a site release, and mark which ones moved a metric we report.

Before release:
3. Drive a real browser through scripted sessions against a preview: read a page, change route, pick a plan and submit a form, with a failed first try and a double click. Assert every data layer push against the schema.
4. Capture the outgoing requests too, not only the data layer. Assert one hit per event, the right campaign values after a redirect, the right plan and value, and no hit at all after a reject or before a decision. Run the sessions across consent choices, campaign entries and a phone layout, and run them against a preview of any tag publish.

After release:
5. Run daily checks on the landed data: schema failures, volume against the same weekday, and the metrics against their recent spread. Replay the sessions each morning against the live site, for changes that never pass through a release.
6. Count each check's false alarms on days with no change, and for each past change, the days until a check would have found it and the wrong metric-days meanwhile.

Report back: which past changes each check would have stopped or found and how fast, the false alarms, which changes no check sees, what a consent break costs beyond the metrics, and the limits.

In your report, say which study you followed and link it: https://diogotravassos.dev/event-contracts/web-data-layer.html

Method and checks

Data

Synthetic, generated by the code on 20 fixed seeds. Each build runs 192 scripted visits in a headless browser: 4 entries, 4 consent behaviours, 2 devices and 6 paths, each in a fresh context with a fake clock and a seeded random source. Each run records the visitor's actions, every data layer push and every outgoing hit. A day's visitors on each kind of visit are drawn from a Poisson with a mean of 1,400 a weekday times its share, and 98.5% of them land, on the clean build too. The browser fixes what each kind of visitor sends under a build; the draw fixes how many come. The clean build was run twice: 0 of 192 visits differed, and it lands exactly its truth on all of them.

Design, set before the test
  • 42 clean days, then one release a week, each scored on its own against the clean build. A release reaches everyone at once.
  • Truth comes from what the visitor did in the browser under that build. People who reject or ignore the banner count as zero, since a correct build sends nothing about them.
  • A metric-day is wrong when it differs from the truth by more than its tolerance: 2%, or the clean build's own 99th percentile daily error, whichever is larger. A release is metric-breaking at 3 wrong metric-days in 28 days.
  • Monitoring: per event, more than 1% failing a required property; volume under 0.7 or over 1.4 times the same weekday's mean over four weeks; a metric beyond 3 standard deviations of the last 28 days.
  • The design, the sessions, the study's own releases and its predictions were committed before any result: the design file.
The independent author's releases

An independent author who never saw the checks, the sessions, the visits, the thresholds or the study's own releases wrote 12 releases in one run, as real code patches, from the site's source, the framework and the release format, with its own expectation for each. Its brief asked for releases of the kinds web and marketing teams ship over a few months, some that break a metric and some harmless, some obvious and some subtle, across varied channels. They are kept as written in the author's release file. That one writing run cannot be repeated from the downloads: everything after it can. Scored by the same code as the study's own releases, 0 failed to apply.

Added later, and why

The design was written before the test. These were settled afterwards, the first two before any release was scored and the others after the results.

  • A release that really changes a price: truth and the full check's value assertion read prices from the release's own code, not a fixed table.
  • The check code. The 14 sessions and the assertions were set in the design before the author wrote anything, but the code that runs them was written after the study had read the author's releases, before any was scored. Each stop on the author's set traces to an assertion the design lists: one hit per expected event (the form reset), the plan and value on the lead hit (the stored value), one page view per page (the shared route) and a session that reaches its end (the locked form).
  • Visits a release cannot touch. A rule that copied such visits from the clean build's record would have covered 1,662 visits across 16 builds; here every visit is run in the browser. 55 of them differ in what the scoring reads, on 3 of the author's releases, and 216 differ on 7 builds once data layer pushes count; only the check sessions read pushes, and those were never copied. All 55 are people who reject or ignore the banner, who send nothing and count as zero, so no truth, no hit and no metric-day moves. One count does: the locked form stops 32 scripted visits, 16 more than the copies show.
  • The running order, and when the last of the study's own releases ran. All of the independent author's releases ran first, then the study's own releases in an order fixed before any of those ran, harmless ones first because the first fourteen were all predicted breaks. 9 of the study's own releases ran last, after a full scoring of the other 30 had been read: Channel fields dropped from the demo tag; A copied page view tag fires beside the original; Vendor update makes Reject keep analytics on; Campaign values kept for the landing page only; Visitor cookie loses its site-wide path; New article event, specification updated with it; Currency dropped from the plan tag; Articles labelled blog in page views; Monthly billers' annual value sent as one month. Their patches, the checks, the thresholds and the study's predictions for them were already committed and did not change, and adding them changed no earlier release's score.
  • Double clicks. After a double click the second request aborts the first navigation, but the visitor still arrives. Read as a stopped visitor, that visitor would have been dropped from the lost double-submit guard's truth, losing demo requests and inflating its left-alone count, so an aborted navigation that still arrives counts as arriving, and that release was run with this rule. No other build sends two requests.
  • Thinned paths. On the four releases that change behaviour, landed visitors are drawn from among the kept visitors, one draw per visitor. Drawn separately, they open a gap between truth and hits that no tag caused, and one harmless headline change reads as metric-breaking. Browser runs did not change. This rule favours one of the study's predictions, as it says above.
  • The worked example, chosen after the results as the plainest case of a right data layer and a lost hit.
  • The money paragraph, on costs copied from the first round and a range set after the results.
  • Readings added after the results: what the rule for a find assumes (a later fix, no dashboard reader), the floor, exact intervals (kept in the results file, not on this page), the money range and the locked form's value. These were written down in a short file before the code that computes them, and they change no number above.
  • Readings added after the results: each declared setting's days to a find, with and without the dashboard reader, and the locked form's pipeline against margin. The prediction that the full check stops a smaller share on the author's releases counts as held on the point estimate only, with no interval, since the releases are not a sample. These readings were declared before their code, and they change no earlier number. The tests of the full check also carry planted faults for the three assertions that would otherwise have had none.
  • Readings added after the results: at a third of the traffic, the runs in which monitoring's automated checks left 2 of the author's breaks unfound, 16 of 20. That count was declared before its code and changes no earlier number.