Skip to content

IntimateMerger Analytics Adapter : initial release#14726

Merged
patmmccann merged 9 commits into
prebid:masterfrom
IntimateMerger:im-analytics-adapter-module
Apr 22, 2026
Merged

IntimateMerger Analytics Adapter : initial release#14726
patmmccann merged 9 commits into
prebid:masterfrom
IntimateMerger:im-analytics-adapter-module

Conversation

@eknis
Copy link
Copy Markdown
Contributor

@eknis eknis commented Apr 15, 2026

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Events Captured:
AUCTION_INIT
BID_WON
AUCTION_END

Other information

Copilot AI review requested due to automatic review settings April 15, 2026 03:55
@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

Tread carefully! This PR adds 3 linter errors and 1 linter warning (possibly disabled through directives):

  • modules/imAnalyticsAdapter.js (+3 errors, +1 warning)

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c438974ec

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread modules/imAnalyticsAdapter.js Outdated
Comment thread modules/imAnalyticsAdapter.js Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an initial IM (IntimateMerger) Analytics Adapter module to Prebid.js, with unit tests and module documentation, to send analytics beacons for key auction lifecycle events.

Changes:

  • Introduces modules/imAnalyticsAdapter.js analytics adapter capturing AUCTION_INIT, BID_WON, and AUCTION_END.
  • Adds unit tests validating PV and won-bid beacon behavior, batching, and consent/uid fields.
  • Adds modules/imAnalyticsAdapter.md with configuration and usage details.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
test/spec/modules/imAnalyticsAdapter_spec.js Adds unit tests for PV and won-bid batching/dedup behavior and consent fields.
modules/imAnalyticsAdapter.md Documents adapter purpose, required options, and example configuration.
modules/imAnalyticsAdapter.js Implements the analytics adapter, beacon sending, batching, and consent/uid extraction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/imAnalyticsAdapter.js
Comment thread modules/imAnalyticsAdapter.js
Comment thread modules/imAnalyticsAdapter.js
Comment thread modules/imAnalyticsAdapter.md
Comment thread modules/imAnalyticsAdapter.js Outdated
Comment thread modules/imAnalyticsAdapter.js
@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

Tread carefully! This PR adds 1 linter error and 1 linter warning (possibly disabled through directives):

  • modules/imAnalyticsAdapter.js (+1 error, +1 warning)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/imAnalyticsAdapter.md
Comment thread test/spec/modules/imAnalyticsAdapter_spec.js
Comment thread modules/imAnalyticsAdapter.js
Comment thread modules/imAnalyticsAdapter.js
Comment thread modules/imAnalyticsAdapter.js
Comment thread modules/imAnalyticsAdapter.js
@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/imAnalyticsAdapter.js Outdated
Comment thread modules/imAnalyticsAdapter.js Outdated
Comment thread modules/imAnalyticsAdapter.md
Comment thread modules/imAnalyticsAdapter.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

eknis and others added 2 commits April 15, 2026 14:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…js docs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

Tread carefully! This PR adds 1 linter warning (possibly disabled through directives):

  • modules/imAnalyticsAdapter.js (+1 warning)

1 similar comment
@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

Tread carefully! This PR adds 1 linter warning (possibly disabled through directives):

  • modules/imAnalyticsAdapter.js (+1 warning)

@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

@eknis eknis requested a review from patmmccann April 16, 2026 07:13
@patmmccann
Copy link
Copy Markdown
Collaborator

you don't pass tests

@eknis
Copy link
Copy Markdown
Contributor Author

eknis commented Apr 17, 2026

@patmmccann
The failing test (invibesBidAdapter: has capped ids if local storage variable is correctly formatted) is unrelated to this PR. This branch only modifies modules/imAnalyticsAdapter.js, modules/imAnalyticsAdapter.md, and test/spec/modules/imAnalyticsAdapter_spec.js. The invibesBidAdapter failure appears to be a pre-existing issue on the base branch, not caused by these changes.

@patmmccann
Copy link
Copy Markdown
Collaborator

Perhaps try pulling master? This test isn't flakey in master, you may be affecting it in some way

@patmmccann
Copy link
Copy Markdown
Collaborator

@codex review. Why is this test failing

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex couldn't complete this request. Try again later.

@github-actions
Copy link
Copy Markdown

Whoa there partner! This project is migrating to typescript. Consider changing the new JS files to TS, with well-defined types for what interacts with the prebid public API (for example: bid params and configuration). Thanks!

  • modules/imAnalyticsAdapter.js

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 24650094755

Coverage increased (+0.004%) to 96.391%

Details

  • Coverage increased (+0.004%) from the base build.
  • Patch coverage: 2 uncovered changes across 1 file (230 of 232 lines covered, 99.14%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
modules/imAnalyticsAdapter.js 82 80 97.56%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 229202
Covered Lines: 220930
Line Coverage: 96.39%
Relevant Branches: 53129
Covered Branches: 43197
Branch Coverage: 81.31%
Branches in Coverage %: No
Coverage Strength: 72.85 hits per line

💛 - Coveralls

@eknis
Copy link
Copy Markdown
Contributor Author

eknis commented Apr 22, 2026

@patmmccann
I passed the test.

@patmmccann patmmccann merged commit b84418d into prebid:master Apr 22, 2026
102 checks passed
oleksandrhn-code pushed a commit to DimaIntentIQ/Prebid.js that referenced this pull request Apr 28, 2026
* IntimateMerger Analytics Adapter : initial release

* IntimateMerger Analytics Adapter : fix event overlap

* IntimateMerger Analytics Adapter : refactoring

* IntimateMerger Analytics Adapter : Update modules/imAnalyticsAdapter.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* IntimateMerger Analytics Adapter : Update waitTimeout

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* IntimateMerger Analytics Adapter : Update modules/imAnalyticsAdapter.js docs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* IntimateMerger Analytics Adapter : Update docs

* IntimateMerger Analytics Adapter : cid optional

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants