Skip to content

analytics: report Optable RTD module presence in prebid analytics - #367

Closed
jplaroche wants to merge 1 commit into
masterfrom
jp/analytics-rtd-presence
Closed

jplaroche wants to merge 1 commit into
masterfrom
jp/analytics-rtd-presence

Conversation

@jplaroche

Copy link
Copy Markdown
Contributor

Summary

Adds two boolean fields to the auction payload of both the V2 (lib/addons/prebid/analytics.ts) and V1 (lib/addons/prototypes/analytics.js) Prebid analytics:

  • rtdInstalled: optableRtdProvider is in pbjs.installedModules, meaning it is compiled into the Prebid build.
  • rtdConfigured: pbjs.getConfig("realTimeData").dataProviders contains a provider named optable.

Today the payload only shows whether Optable EIDs reached bidders (optableTargetingDone). That cannot separate "RTD missing from the build" from "built in but not configured" from "configured but returned no EIDs". These fields can.

Both fall back to false when Prebid does not expose installedModules or getConfig.

Notes

  • The downstream witness processor or BigQuery schema may need the two new columns before the fields are persisted.
  • V1 has no test suite; V2 tests cover installed+configured, installed only, and missing APIs.

Testing

  • jest lib/addons/prebid: 88 passing
  • tsc -b lib, prettier --check: clean

Add rtdInstalled (optableRtdProvider in pbjs.installedModules) and
rtdConfigured (an "optable" provider in realTimeData.dataProviders) to
both the V1 and V2 auction payloads, so missing-from-build and
built-but-not-configured can be told apart.
@jplaroche
jplaroche requested review from a team as code owners October 15, 2026 14:24
@jplaroche

Copy link
Copy Markdown
Contributor Author

Superseded by #351. RTD presence is now reported there in the page object (first auction of the page) for both V1 and V2, as optableRTDInstalled and optableRTDConfigured (renamed from rtdOptable), alongside rtdDelay and udDelay.

@jplaroche jplaroche closed this Oct 15, 2026
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.

1 participant