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.

Before, some ad beacons fired twice. After, each fires once, and open tabs share one ad session through BroadcastChannel.

What I did

  1. Deduplicated beacons per ad, including when the ad ID changes mid-break.
  2. Fixed video completion overcounting.
  3. 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.