3.4 KiB
tags, updated, status
| tags | updated | status | ||||
|---|---|---|---|---|---|---|
|
2026-11-11 | draft |
TD: Pixel Definition: CPM Permanent Breakage Metric (macOS/iOS)
Author: Alex M Reviewer: TBD (previous CPM pixel designs: Michal) Stakeholders: Michal, Konrad, Russell (from the previous Tech Designs; confirm) Project: CPM: root-cause the stuck embedded extension messaging (macOS/iOS)
Background & Requirements
The goal is permanent CPM failures below 1% of DAU, but no pixel measures it. The number is derived from web_extension_cpm_episode, which is a poor basis: a four-second navigation timer opens an episode (on iOS 7.244, 6.0% of episodes closed with a late answer on the same page), and an open episode is lost when the app exits.
Requirements: no navigation timer, a rate against DAU, no URLs, page content or persistent identifiers.
Problem Statement
Report the tabs whose pages never hear from the extension, and tell one broken page from a broken extension.
Recommended Approach
- The extension already sends the app a message from a tab while a page initializes. A tab is silent when it loaded a page that should get a message and heard nothing for 30 s of app time; a late message still counts as an answer. There is no timer: the check runs when another event arrives (page load, tab close, message, app to background or wake) [1].
- Pages that count: http(s), extension loaded, not an error page, not a back/forward restore, not a restored session. Suspended time is not counted.
- A message carries the extension's tab number and the page URL. The app learns which tab it is from the first message that matches exactly one open page (host and path). A message it cannot place answers every tab it could belong to [2].
- Two pixels, no expiry date (permanent metric):
| Pixel | Trigger | Frequency |
|---|---|---|
web_extension_cpm_breakage |
A tab is silent. Parameter tabs: one (no other tab was silent since the extension last answered: likely the page) or many (another tab was too: likely the extension). |
Daily + count |
web_extension_cpm_breakage_persistent |
A second tab is silent and the extension answered nothing in between. Once per series. | Daily + count |
- Remove
web_extension_cpm_episode,web_extension_cpm_background_load_restartandweb_extension_cpm_network_process_recovery_appliedwith the code that only fed them, in the same release. Success metric: installs with the persistent pixel / DAU.
Notes
[1] A silent tab left open until the app exits is not reported (iOS reports it when going to the background); a page left within 30 s is not reported.
[2] The mapping is a heuristic: tabs on the same host and path hide each other, and rarely a working extension is reported. An alternative is to have the extension send its tab index; it needs an extension change.
Testing
Unit tests for each rule, pixel definition validators, app-hosted macOS and iOS tests. Not done: a real-WebKit run.
Additional Considerations
- Privacy
- Two new pixel names, one enumerated parameter, no URLs or identifiers. Privacy Triage not filed yet.
- Security
- No new private WebKit selectors.
- Site Breakage
- None.
- Experimentation
- None.
- Operational
- No new infrastructure.
- Localization / Internationalization
- Not affected.