Skip to content

analytics: stop dropping Optable EIDs in the V2 source dedupe - #366

Merged
mosherBT merged 2 commits into
masterfrom
mo/analytics-v2-optable-eid-dedupe
Oct 19, 2026
Merged

mosherBT merged 2 commits into
masterfrom
mo/analytics-v2-optable-eid-dedupe

Conversation

@mosherBT

@mosherBT mosherBT commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Why

V2 dedupes EIDs by source, keeping the last one, before picking out Optable's. A later non-Optable EID with the same source (e.g. LiveIntent's uidapi.com) hides the Optable one, so optableSources, optableMatchers and optableTargetingDone under-report. V1 doesn't dedupe and doesn't have the gap. Raised by @etiennelatendresse-optable on #364.

What Changed

  • toWitness: dedupe EIDs by source + inserter instead of source alone. The same Optable EID copied into user.ext.eids and user.eids still collapses to one, but another inserter's same-source EID no longer hides Optable's.

How to Test

  • Tested — new toWitness case: Optable EID followed by a non-Optable EID with the same source
  • Docs updated — n/a, payload shape unchanged

Notes

  • Breaking change
  • Requires release

@mosherBT mosherBT self-assigned this Oct 15, 2026
The dedupe kept the last EID per source, so a later non-Optable EID with
the same source hid an Optable one and optableSources, optableMatchers and
optableTargetingDone under-reported. The dedupe only fed the Optable filter,
whose outputs are already distinct, so filter the full EID list like V1.
@mosherBT
mosherBT force-pushed the mo/analytics-v2-optable-eid-dedupe branch from 2fea96b to ad7cfd0 Compare October 15, 2026 01:01
@mosherBT
mosherBT marked this pull request as ready for review October 15, 2026 01:02
@mosherBT
mosherBT requested review from a team as code owners October 15, 2026 01:02
Dropping the dedupe broke its intended job of collapsing the same Optable
EID copied into both user.ext.eids and user.eids. Keying on source and
inserter keeps that while stopping another inserter's same-source EID from
hiding Optable's.

@jplaroche jplaroche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@mosherBT
mosherBT merged commit 6a6b6cd into master Oct 19, 2026
7 checks passed
@mosherBT
mosherBT deleted the mo/analytics-v2-optable-eid-dedupe branch October 19, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants