Skip to content

Add bannerToShow to window.guardian.readerRevenue and log which banner is going to show on the page#14272

Closed
cemms1 wants to merge 2 commits intomainfrom
cemms1/log-banner-decisions
Closed

Add bannerToShow to window.guardian.readerRevenue and log which banner is going to show on the page#14272
cemms1 wants to merge 2 commits intomainfrom
cemms1/log-banner-decisions

Conversation

@cemms1
Copy link
Contributor

@cemms1 cemms1 commented Jul 23, 2025

What does this change?

Adds a new property to the window.guardian.readerRevenue page, bannerToShow, to indicate which banner should be showing on the page

Adds supporterRevenue logging to demonstrate when the pickMessage function was run and which banner is going to show on the page

Why?

Commercial development are implementing an adblock recovery solution and need to prevent it appearing at the same time as supporter revenue banners and the CMP

There is currently no way for the commercial scripts to know whether a supporter revenue banner is intended to show on the page

Screenshots

Before After
before after

@github-actions
Copy link

github-actions bot commented Jul 23, 2025

@cemms1 cemms1 force-pushed the cemms1/log-banner-decisions branch from 8ddc724 to 07896ea Compare July 23, 2025 16:50
@github-actions
Copy link

github-actions bot commented Jul 23, 2025

@cemms1 cemms1 force-pushed the cemms1/log-banner-decisions branch from 07896ea to 20686b6 Compare August 8, 2025 08:36
@cemms1 cemms1 force-pushed the cemms1/log-banner-decisions branch from 1ffaa3d to 68e6e4d Compare August 8, 2025 09:55
@cemms1 cemms1 closed this Sep 2, 2025
@cemms1 cemms1 deleted the cemms1/log-banner-decisions branch September 2, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant