Skip to content

Commit e4c87be

Browse files
committed
Use the stickybox placement 10% of the time
1 parent 042c620 commit e4c87be

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

readthedocs/core/static-src/core/js/doc-embed/sponsorship.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ function create_ad_placement() {
5353
class_name = 'ethical-rtd ethical-dark-theme';
5454
} else if (rtd.is_rtd_like_theme()) {
5555
selector = 'nav.wy-nav-side > div.wy-side-scroll';
56-
style_name = 'stickybox';
57-
ad_type = 'image';
56+
if (Math.random() <= 0.1) {
57+
// Use the stickybox placement 10% of the time during rollout
58+
style_name = 'stickybox';
59+
ad_type = 'image';
60+
} else {
61+
class_name = 'ethical-rtd ethical-dark-theme';
62+
}
5863
} else if (rtd.is_alabaster_like_theme()) {
5964
selector = 'div.sphinxsidebar > div.sphinxsidebarwrapper';
6065
class_name = 'ethical-alabaster';

0 commit comments

Comments
 (0)