Ad beacon accuracy
Victory+ · APMC, 2026
Deduplicating ad tracking beacons so revenue reports count each ad once.
Context
Ad-supported video sends tracking beacons as an ad plays. Those beacons are what revenue reporting is built on.
Problem
Completion events were overcounted, beacons fired again when the ad changed mid-break, and two open tabs could run separate ad sessions for the same viewer.
What I did
- Deduplicated beacons per ad, including when the ad ID changes mid-break.
- Fixed video completion overcounting.
- Shared one ad-session ID across tabs with BroadcastChannel.
Outcome
- Beacon counts that match what was actually played.
- It took a few reverts to get right. On async player code like this I now write the tests before the fix.
Stack
TypeScript, BroadcastChannel, Video player events
Want to talk about work like this?
I’m happy to go deeper on any of it, including what I’d do differently.