Banner Spin phase 3: reports, health checks, postbacks verified, admin switch button
- bannerspin.js: every image load also counted raw per placement (bots/prefetch and servers/mail image proxies kept apart from views); one aggregation for the Stats tab and a new summary() for Reports: per banner (views, uniques, clicks, CTR, match rate, conversions), per placement with a "caches banners" flag, by Central day, country and device, bots shown separately; WINNER badge once two live banners have 1,000 views each and one leads on CTR. Click params now keep the banner macro (same list as spin links). Owner pause/resume clears an auto-pause; a new image or target resets health. - health.js: the 30-minute pass also checks each live banner: image must load as an image (magic bytes) at the Banner Spin size, target must pass the spin-link checks (a spin-link target only has to exist). 3 failures pause, 2 clean passes resume, the last live banner is never auto-paused; owner gets an inbox notice. checkBannerSpins() for admin. - server.js (own blocks): health.init gets bannerspin; /api/my/reports adds bannerSpins; POST /api/admin/bannerspins/health runs the checks now. - Builder: health line + AUTO-PAUSED tag on every banner row; Stats tab adds uniques, WINNER, CACHED placements, loads, country/device, bots line. - Reports screen: Banner Spin section + Banner views/clicks tiles beside spin links. - Admin > Member content: real Banner Spin on/off button (with confirm) and "Run banner checks". - Traffic-source postbacks on Banner Spin clicks verified end to end (network click id, event, payout, lsid reach the source postback). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -218,6 +218,12 @@
|
||||
</div>
|
||||
|
||||
<div class="pane" id="pane-content" hidden>
|
||||
<!-- Banner Spin feature switch (2026-10-20): the whole feature off = every placement shows a neutral blank image and clicks go to each fallback -->
|
||||
<div class="card" id="bsSwitchCard" style="display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px">
|
||||
<div style="flex:1;min-width:220px"><b>Banner Spin</b> <span class="st" id="bsSwitchState">...</span><div class="small muted" id="bsSwitchNote">Switching it off blanks every member's Banner Spin at once (a neutral blank image, clicks to each fallback). Members keep everything and it comes back as it was.</div></div>
|
||||
<button type="button" class="btn small" id="bsSwitchBtn" disabled>...</button>
|
||||
<button type="button" class="btn small sec" id="bsHealthBtn" title="Check every live banner's image and target now">Run banner checks</button>
|
||||
</div>
|
||||
<div class="ct-totals" id="ctTotals"></div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h3>Everything members made</h3><span class="sub" id="ctSub">newest first</span></div>
|
||||
@@ -472,6 +478,6 @@
|
||||
</div>
|
||||
|
||||
<script src="/assets/common.js?v=20261018p25"></script>
|
||||
<script src="/assets/admin.js?v=20261018e1"></script>
|
||||
<script src="/assets/admin.js?v=20261020bs3"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user