Skip to content

analytics: report LiveIntent EIDs in V2 prebid analytics - #364

Open
mosherBT wants to merge 1 commit into
masterfrom
mo/analytics-v2-liveintent-eids
Open

mosherBT wants to merge 1 commit into
masterfrom
mo/analytics-v2-liveintent-eids

Conversation

@mosherBT

@mosherBT mosherBT commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Why

V2 (lib/addons/prebid/analytics.ts) doesn't report LiveIntent EIDs, which V1 does. One of the parity gaps blocking the V1/V2 merge.

What Changed

  • toWitness: per bidder request, hasLiEids and liSources (EIDs with a uids[].ext.provider === "liveintent.com"); top level, liveintentEIDs (union of liSources).
  • Matched on user.ext.eids + user.eids before the dedupe by source, same input as V1.
  • Existing payload fields unchanged.

How to Test

  • Tested — new toWitness cases: LiveIntent present, absent, and mixed with Optable EIDs (including a LiveIntent EID that the source dedupe would drop)
  • Docs updated

Notes

V1 reports which LiveIntent-provided EIDs reached each bidder; V2 did not.
Match on the full EID list before the dedupe by source, the same input V1
uses, so a same-source Optable EID can't hide a LiveIntent one.
Comment on lines 400 to 402
const optableEIDS = eids.filter((e: { inserter: string }) => e.inserter === "optable.co");
const optableMatchers = [...new Set(optableEIDS.map((e: any) => e.matcher).filter(Boolean))];
const optableSources = [...new Set(optableEIDS.map((e: any) => e.source).filter(Boolean))];

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.

Pre-existing, but same issue as the LiveIntent fix below. If the optable uidapi.com EID comes before liveintent, optableSources loses the source and optableMatchers loses the matcher. Thats because the map above is keyed by source alone

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.

3 participants