Skip to content

add initPrebidAnalytics to prebid analytics addon#305

Open
etiennelatendresse-optable wants to merge 1 commit into
masterfrom
add-prebidanalytics
Open

add initPrebidAnalytics to prebid analytics addon#305
etiennelatendresse-optable wants to merge 1 commit into
masterfrom
add-prebidanalytics

Conversation

@etiennelatendresse-optable

@etiennelatendresse-optable etiennelatendresse-optable commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Why

Using the prebid analytics addon would previously require some boilerplate code in order to initialize it.

What Changed

  • Add initPrebidAnalytics to the prebid analytics addon (lib/addons/prebid/analytics.ts)
  • Takes the SDK constructor as a parameter so the module keeps a type-only SDK import
  • Forwards the analytics config straight to the OptablePrebidAnalytics constructor, so options such as getSplitTestAssignment (Get splitTestAssignment from SDK bundle, if provided #304) flow through without extra plumbing.
  • Tests + README for the new helper.

Notes

Composes with #304 (splitTestAssignment) rather than duplicating it.

How to Test

  • Tested
  • Docs / README updated

@etiennelatendresse-optable etiennelatendresse-optable changed the title add initPrebidAnalytics addon Add initPrebidAnalytics bootstrap to the prebid analytics addon Jul 17, 2026
@etiennelatendresse-optable etiennelatendresse-optable changed the title Add initPrebidAnalytics bootstrap to the prebid analytics addon add initPrebidAnalytics to prebid analytics addon Jul 17, 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