211eb5a0e8
A Source is a first-class record of a network a member buys traffic on (PropellerAds,
Zeropark, Adsterra, ExoClick and 25 more from the shipped catalog, or defined by hand).
It remembers the network's macro tokens and conversion postback, attaches to spin links,
builds the exact campaign URL to paste into the network, fires that network's own
postback only for clicks that came through it, and shows up in Reports by source and
by the zone / placement / site the macro carried.
- data/traffic-sources.json: catalog of 29 networks (BeMob template harvest), un-ignored
via data/* + !data/traffic-sources.json; loader tolerates missing fields, null costModel,
{{slot}} labels with spaces and parentheses, optional slots, unknown single-brace macros
- sources.js: DATA_DIR/sources.json model, 30 per account, 20 params, key allow-list,
postbacks.validateUrl on the filled postback; list/create/update/get/urlFor/test
- rotator.js: update() takes sourceId (owner-checked), pub() exposes it, hits and conversions
are stamped with the source at click time (sr), wider query allow-list (cost, creative,
site, banner, keyword, geo, os, browser, device, carrier, format, external_id, visitor_id),
summary() adds sources[] and placements[], sourceCounts(), detachSource()
- postbacks.js: fire() delivers the matching source's postback after the manual ones through
the same deliver() (guards, retry, rate cap, auto-disable); log rows carry source; convertFor,
inbound and the page lead path pass sourceId; fill/deliver/logForSource exported
- routes (GET and POST): /api/sources/catalog, /api/my/sources, /api/my/sources/<id>,
/api/my/sources/<id>/url; /sources screen
- /sources Control Room screen (list + Campaign URL / Postback / Settings tabs, two-step
New source dialog); Links share kit gets a source select and a "Campaign URL for <network>"
first row; Reports gets Traffic sources and Placements; rail entry; chatbot canned answer,
FACTS line and KNOWLEDGE_DATE 2026-10-12
- cr.css: phone rail icons only at 34px so ten entries fit; cache tags bumped to 20261012a
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
77 lines
7.8 KiB
HTML
77 lines
7.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<title>Reports · LinkSpin</title>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
|
<link rel="stylesheet" href="/assets/cr.css?v=20261012a">
|
|
<style>
|
|
.body{padding:16px 24px;display:grid;gap:16px}
|
|
.two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}
|
|
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
|
|
.kv{display:grid;grid-template-columns:minmax(0,1fr) 60px 70px;gap:8px;font-size:12px;align-items:center}
|
|
.range{display:flex;border:1px solid var(--line-strong);border-radius:var(--r);overflow:hidden;background:var(--panel-2)} .range button{background:transparent;border:0;color:var(--muted);font-family:var(--mono);font-size:12px;padding:5px 10px;cursor:pointer} .range button.on{background:var(--ink);color:#fff}
|
|
.top .hd,.top .rw{grid-template-columns:minmax(0,1fr) 80px 80px 80px}
|
|
.sect{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
|
|
.ph{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.legend{display:flex;gap:14px;font-size:11px;color:var(--ink-2)}.legend i{display:inline-block;width:10px;height:10px;vertical-align:middle;margin-right:5px}
|
|
.bars.stack i{position:relative}.bars.stack i b{position:absolute;left:0;right:0;bottom:0;display:block;background:var(--line);border-radius:2px 2px 0 0}.bars i.ghost{background:var(--line)}
|
|
.mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.mini .m{background:var(--panel-2);border:1px solid var(--line);border-radius:6px;padding:8px 10px;display:grid;gap:2px}.mini .m .k{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.mini .m .v{font-family:var(--display);font-weight:700;font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums}
|
|
.pages .hd,.pages .rw,.zones .hd,.zones .rw{grid-template-columns:minmax(0,1fr) 60px 60px 60px 60px;gap:8px}
|
|
.srcs .hd,.srcs .rw{grid-template-columns:minmax(0,1fr) 70px 70px 60px;gap:8px} .plc .hd,.plc .rw{grid-template-columns:minmax(0,1fr) 70px 60px;gap:8px}
|
|
@media (max-width:900px){.two,.grid2,.sect{grid-template-columns:1fr}.body{padding:12px 16px}.mini{grid-template-columns:repeat(2,minmax(0,1fr))}.pages .hd,.pages .rw,.zones .hd,.zones .rw{grid-template-columns:minmax(0,1fr) 48px 48px 48px 48px;gap:6px;padding:10px 12px;font-size:12px}}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="page">
|
|
<div class="body">
|
|
<div class="tiles" id="tiles"></div>
|
|
<div class="two">
|
|
<div class="panel">
|
|
<div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px"><h2>Unique visitors by day</h2><div style="display:flex;gap:14px;font-size:11px;color:var(--ink-2)"><span><span style="display:inline-block;width:10px;height:10px;background:var(--accent);vertical-align:middle;margin-right:5px"></span>unique</span><span><span style="display:inline-block;width:10px;height:10px;background:var(--line);vertical-align:middle;margin-right:5px"></span>bots</span></div></div>
|
|
<div class="bars" id="dayBars" style="height:190px"></div><div class="axis" id="dayAxis"></div>
|
|
<div class="grid2" style="margin-top:6px">
|
|
<div><div class="sec" style="margin-bottom:6px">By source</div><div class="kv" id="srcRows"></div></div>
|
|
<div><div class="sec" style="margin-bottom:6px">By country · device</div><div class="kv" id="geoRows"></div><div class="muted" id="devRow" style="margin-top:6px"></div></div>
|
|
</div>
|
|
</div>
|
|
<div style="display:grid;gap:16px;align-content:start">
|
|
<div class="panel"><h2>Top links</h2><div class="tbl top"><div class="hd"><span>Link</span><span class="r">Unique</span><span class="r">Clicks</span><span class="r">Conv.</span></div><div id="topRows"></div></div></div>
|
|
<div class="panel"><h2>Your best hours</h2><div class="bars" id="hourBars" style="grid-template-columns:repeat(24,minmax(0,1fr));height:80px"></div><div class="axis"><span>00</span><span>06</span><span>12</span><span>18</span><span>23</span></div><div class="muted" id="hourNote"></div></div>
|
|
<div class="panel"><h2>Conversions</h2><div class="kv" id="convRows"></div><div class="muted">Joins, wallets and purchases matched to a click on one of your links, plus anything a partner reported by postback.</div></div>
|
|
</div>
|
|
</div>
|
|
<!-- Pages: views, uniques, clicks through and leads on the member's bridge / review / squeeze pages (2026-10-10) -->
|
|
<div class="sec">Pages</div>
|
|
<div class="two sect">
|
|
<div class="panel">
|
|
<div class="ph"><h2>Page views by day</h2><div class="legend"><span><i style="background:var(--accent)"></i>views</span><span><i style="background:var(--sig)"></i>leads</span></div></div>
|
|
<div class="bars" id="pgBars" style="height:150px"></div><div class="axis" id="pgAxis"></div>
|
|
<div class="mini" id="pgTiles"></div>
|
|
</div>
|
|
<div class="panel"><h2>By page</h2><div class="tbl pages"><div class="hd"><span>Page</span><span class="r">Views</span><span class="r">Unique</span><span class="r">Clicks</span><span class="r">Leads</span></div><div id="pgRows"></div></div><div class="muted" style="margin-top:8px">Views exclude bots. Clicks are people who pressed the button on the page. Leads came in through the page's own form. <a href="/pages">Open Pages</a></div></div>
|
|
</div>
|
|
<!-- Traffic sources: clicks and conversions by the network a link is pointed at, and by the zone / placement / site its macro carried (2026-10-12) -->
|
|
<div class="sec">Traffic sources</div>
|
|
<div class="two sect">
|
|
<div class="panel"><h2>By traffic source</h2><div class="tbl srcs"><div class="hd"><span>Source</span><span class="r">Clicks</span><span class="r">Unique</span><span class="r">Conv.</span></div><div id="tsRows"></div></div><div class="muted" style="margin-top:8px">A click counts for a source when the link it hit was pointed at that source at the time. Conversions are joins, leads, wallets, purchases and partner reports matched to those clicks. <a href="/sources">Open Sources</a></div></div>
|
|
<div class="panel"><h2>Placements</h2><div class="tbl plc"><div class="hd"><span>Source · placement</span><span class="r">Clicks</span><span class="r">Conv.</span></div><div id="plRows"></div></div><div class="muted" style="margin-top:8px">The value the network's zone, placement, site, campaign, creative, banner or keyword macro carried on the click, top 12. Use it to cut the placements that click and never convert.</div></div>
|
|
</div>
|
|
<!-- Zones: ad-slot impressions on the member's own sites and the credits they earned (2026-10-10) -->
|
|
<div class="sec">Zones</div>
|
|
<div class="two sect">
|
|
<div class="panel">
|
|
<div class="ph"><h2>Zone views by day</h2><div class="legend"><span><i style="background:var(--accent)"></i>viewable</span><span><i style="background:var(--line)"></i>not seen</span></div></div>
|
|
<div class="bars" id="znBars" style="height:150px"></div><div class="axis" id="znAxis"></div>
|
|
<div class="mini" id="znTiles"></div>
|
|
</div>
|
|
<div class="panel"><h2>By zone</h2><div class="tbl zones"><div class="hd"><span>Zone</span><span class="r">Views</span><span class="r">Viewable</span><span class="r">Clicks</span><span class="r">Credits</span></div><div id="znRows"></div></div><div class="muted" style="margin-top:8px">A view counts when the tag loads; viewable means at least half the banner was on screen for a second. Credits are the zone's all-time earnings. <a href="/zones">Open Zones</a></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/assets/cr-shell.js?v=20261012a"></script>
|
|
<script src="/assets/reports.js?v=20261012a"></script>
|
|
</body>
|
|
</html>
|