Skip to content

Revert banner:none event dispatch - #15349

Closed
dskamiotis wants to merge 1 commit into
mainfrom
ds/check-pre-banner-close-and-none-event-change
Closed

dskamiotis wants to merge 1 commit into
mainfrom
ds/check-pre-banner-close-and-none-event-change

Conversation

@dskamiotis

@dskamiotis dskamiotis commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Gates the banner:none event dispatch behind a 0% A/B test (commercial-banner-ad-coordination) using the new beta AB testing framework.

The event logic is preserved but disabled. Uses useBetaAB() to check if users are in the test variant before dispatching events.

Why?

The CMP banner currently blocks mobile sticky ads even though it renders "outside of react's world" and doesn't occupy the banner space. This may be causing incorrect ad suppression and impacts revenue.

By gating behind a 0% test, we:

  • 100% of users (not in test) → will get banner:none event (current production behavior)
  • 0% in variant → do not get banner:none event (disabled for testing)
    Related to: guardian/commercial#2351

@github-actions

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@dskamiotis
dskamiotis force-pushed the ds/check-pre-banner-close-and-none-event-change branch from 199761e to 7620299 Compare February 12, 2026 17:31
@dskamiotis
dskamiotis requested a review from a team as a code owner February 12, 2026 17:31
@dskamiotis dskamiotis added feature Departmental tracking: work on a new feature fix Departmental tracking: fix and removed feature Departmental tracking: work on a new feature labels Feb 12, 2026
@github-actions

github-actions Bot commented Feb 12, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Feb 12, 2026

Copy link
Copy Markdown

@dskamiotis dskamiotis added the run_chromatic Runs chromatic when label is applied label Feb 12, 2026
@dskamiotis
dskamiotis force-pushed the ds/check-pre-banner-close-and-none-event-change branch from 7620299 to c666048 Compare February 12, 2026 17:47
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Feb 12, 2026
@dskamiotis dskamiotis closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant