Conversion tracking fixes (Marty approved 2026-10-26): own clicks are tests on every click type, Banner Spin straight-to-page clicks carry lsclk

1. Own clicks: a goal owner's own click on ANY click type (LinkSpin/InstantAdPay ads, spin links, Banner Spins) is kept as a test, never counted, never fires a goal postback. Own = ad click flagged self for that owner, a spin-link / Banner Spin click marked at click time (signed in as the owner, or from an owner soft key: markOwnClick in server.js), or the clicking or converting browser's soft key is one the owner signs in from. auth.onSeen notes LinkSpin session soft keys (throttled, kept 31 days in convtrack.json S.own); /api/partner/clicks takes owners [{owner, sk, ts}] from InstantAdPay before the clicks, so IAP members' own browsers are known too. Linked positions share the owner's email. X-LS-Result adds ;self. partnerSummary returns selfTests for the IAP card. Conversions screen copy: test with Send a test conversion and the &test=1 page check, own clicks never count (conversions.js ?v=20261026a).
3. Banner Spin: a click whose target is a direct page (not a /r/ spin link) gets ?lsclk=<k click id> when the owner tracks goals (string insert like lsconv.withClickId: params kept, before #hash, an existing lsclk never replaced). convtrack.lookup resolves k ids through bannerspin.clickById; conversions record k:'bspin' with the Banner Spin, banner, page and source; report By Banner Spin, CSV site 'Banner Spin', postback ctx with its sub ids.
Guides: /conversion-tracking (Banner Spin straight to a page now counted, own clicks on every type are tests, By Banner Spin), /refuel tile. Chatbot CANNED + FACTS, KNOWLEDGE_DATE 2026-10-26.
QA: convpixel 77/77 (new: owner soft keys, own ad/spin/Banner Spin/IAP clicks as tests, stranger still counts, own-browser conversion, withClickId, Banner Spin lsclk + By Banner Spin + spin-link banner untouched, selfTests in the IAP summary, no postback for own clicks); lsid 31/31; fuel all pass (engine.js / engine-room.js / kit.js untouched, byte-identical with InstantAdPay); bannerspin 75/75; member walk 0 bugs; public 0 bugs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-26 06:19:54 -05:00
parent 28192b61e9
commit 98e3ed36d8
10 changed files with 206 additions and 48 deletions
+2 -1
View File
@@ -28,7 +28,7 @@
snippets();
const m = D.methods || {}; const tot = METH.reduce((n, [k]) => n + (m[k] || 0), 0);
$('methRows').innerHTML = METH.map(([k, label]) => '<div class="m"><span class="k">' + label + '</span><span class="v">' + fmt(m[k] || 0) + '</span><span class="muted mono" style="font-size:11px">' + (tot ? Math.round((m[k] || 0) / tot * 100) + '%' : '·') + '</span></div>').join('');
$('totalNote').textContent = D.selfTests ? D.selfTests + ' from your own clicks, kept as tests and left out' : '';
$('totalNote').textContent = D.selfTests ? D.selfTests + ' from your own clicks (ads, spin links, Banner Spins), kept as tests and left out' : '';
$('goalReports').innerHTML = (D.byGoal || []).filter(G => G.n || !G.removed).map(G => {
const camp = G.campaigns.length ? G.campaigns.map(c => '<div class="rw"><span>' + esc(c.name || ('Campaign #' + c.id)) + '<span class="muted" style="display:block;font-size:11px">' + esc(c.site) + ' #' + c.id + (c.spentAsOf ? ' · spend as of ' + esc(ago(c.spentAsOf)) : '') + '</span></span><span class="r num">' + (c.spent != null ? fmt(c.spent) + ' cr' : '·') + '</span><span class="r num">' + fmt(c.clicks) + '</span><span class="r num">' + fmt(c.n) + '</span><span class="r num">' + (c.rate != null ? c.rate + '%' : '·') + '</span><span class="r num">' + (c.costPer != null ? fmt(c.costPer) + ' cr' : '·') + '</span></div>').join('') : '<div class="rw"><span class="muted">No ad campaign conversions for this goal yet.</span><span></span><span></span><span></span><span></span><span></span></div>';
const lst = (rows, f) => rows && rows.length ? rows.map(x => '<div class="rw"><span style="overflow-wrap:anywhere">' + f(x) + '</span><span class="r num">' + fmt(x.n) + '</span></div>').join('') : '<div class="rw"><span class="muted">nothing yet</span><span></span></div>';
@@ -37,6 +37,7 @@
+ '<div class="panel"><h2>By ad campaign</h2><div class="tbl camps"><div class="hd"><span>Campaign</span><span class="r">Spent</span><span class="r">Clicks</span><span class="r">Goals</span><span class="r">Rate</span><span class="r">Cost / goal</span></div>' + camp + '</div><div class="muted" style="margin-top:8px">Cost per goal = the credits the campaign has spent so far / its conversions of this goal, in that site\'s ad credits. Clicks and goals are for the range above; spend is the campaign\'s total.</div></div>'
+ '<div class="two"><div class="panel"><h2>By spin link</h2><div class="tbl lst"><div class="hd"><span>Link</span><span class="r">Goals</span></div>' + lst(G.links, x => esc(x.name || x.code) + ' <span class="pill">/r/' + esc(x.code) + '</span>') + '</div></div>'
+ '<div class="panel"><h2>By destination page</h2><div class="tbl lst"><div class="hd"><span>Page</span><span class="r">Goals</span></div>' + lst(G.dests, x => '<span class="mono">' + esc(x.k) + '</span>') + '</div></div></div>'
+ '<div class="panel"><h2>By Banner Spin</h2><div class="tbl lst"><div class="hd"><span>Banner Spin</span><span class="r">Goals</span></div>' + lst(G.banners, x => esc(x.name || x.code) + ' <span class="pill">/c/' + esc(x.code) + '</span>') + '</div><div class="muted" style="margin-top:8px">Banners that point straight at a page. A banner that points at a spin link is counted under that spin link.</div></div>'
+ '<div class="panel"><h2>By traffic source</h2><div class="tbl lst"><div class="hd"><span>Source</span><span class="r">Goals</span></div>' + lst(G.sources, x => esc(x.name)) + '</div><div class="muted" style="margin-top:8px">A named source is one you set up under <a href="/sources">Sources</a>; otherwise it is the referring site or the ad placement.</div></div>';
}).join('');
$('goalRows').querySelectorAll('[data-pick]').forEach(b => b.addEventListener('click', () => { PICK = b.dataset.pick; $('goalPick').value = PICK; snippets(); $('snTag').scrollIntoView({ behavior: 'smooth', block: 'center' }); }));
+7 -7
View File
@@ -130,7 +130,7 @@
<li><div>
<h3>Create a goal</h3>
<p>Open <b>Conversions</b> in your Control Room and press <b>Add a goal</b>. Name it with one word for what you count: <b>subscriber</b>, <b>sale</b>, <b>signup</b> (letters, numbers, - or _, up to 32). The default value is optional, in US dollars, used when the pixel carries none. Up to 20 goals per account.</p>
<p>Each goal gets its own pixel id: <b>px</b> plus 10 letters and numbers. It is public and safe to paste: it can only count clicks that are yours. Once you have a goal, your spin links add the click id to your destinations automatically.</p>
<p>Each goal gets its own pixel id: <b>px</b> plus 10 letters and numbers. It is public and safe to paste: it can only count clicks that are yours. Once you have a goal, your spin links and Banner Spins add the click id to your destinations automatically.</p>
<div class="rg-where"><span class="rg-chip">LinkSpin: Control Room, Conversions</span><span class="rg-chip iap">InstantAdPay: Campaigns, Conversion tracking</span></div>
</div></li>
<li><div>
@@ -150,7 +150,7 @@
<li><div>
<h3>Send a test conversion</h3>
<p>Press <b>Send a test conversion</b> next to the snippets. It loads your real pixel, is recorded apart and never counted, and the goal row shows when the last test arrived. That proves your pixel id works.</p>
<p>To check the pixel on your real thank-you page, add <code class="i">&amp;test=1</code> to the end of the pixel address, open your thank-you page once, then reload Conversions: the last test time updates. Take <code class="i">&amp;test=1</code> back out afterwards. Last, open your own spin link or ad and look at the address bar on your landing page: you should see <code class="i">lsclk=</code> in it.</p>
<p>To check the pixel on your real thank-you page, add <code class="i">&amp;test=1</code> to the end of the pixel address, open your thank-you page once, then reload Conversions: the last test time updates. Take <code class="i">&amp;test=1</code> back out afterwards. Last, open your own spin link, Banner Spin click link or ad and look at the address bar on your landing page: you should see <code class="i">lsclk=</code> in it. That click is yours, so anything you finish after it is kept as a test, never counted.</p>
</div></li>
</ol>
</div>
@@ -218,7 +218,7 @@
<table>
<thead><tr><th>You see</th><th>What it means</th></tr></thead>
<tbody>
<tr><td>Counted</td><td>Goals counted in the range you picked (7, 30 or 90 days), tests and your own ad clicks left out.</td></tr>
<tr><td>Counted</td><td>Goals counted in the range you picked (7, 30 or 90 days), tests and your own clicks (ads, spin links, Banner Spins) left out.</td></tr>
<tr><td>Cost / goal</td><td>The credits the ad campaign has spent so far, divided by its goals of this goal type, in that site's ad credits. Clicks and goals follow the range; spend is the campaign's total, so on an older campaign the figure reads high.</td></tr>
<tr><td>Rate</td><td>Goals divided by the campaign's tracked clicks in the range.</td></tr>
<tr><td>Address</td><td>Surest. The thank-you page's own address still carried the click id.</td></tr>
@@ -228,7 +228,7 @@
<tr><td>Test / last test</td><td>When your last test conversion arrived. Tests are recorded apart and never counted.</td></tr>
</tbody>
</table>
<div class="pb" style="border-top:1px solid var(--line)"><p class="muted" style="font-size:13px">Each goal gets its own report: by ad campaign (LinkSpin and InstantAdPay), by spin link, by destination page and by traffic source (a source you named under Sources, or else the referring site or ad placement). Press CSV for every conversion with its time in Central time, goal, value, match method, campaign, spin link, page, source, country and device. The counting rules: each goal counts once per click, only within 30 days of a real click, and only for clicks on your own ads and links. Your own clicks on your own ads, made while signed in, are kept as tests: the note at the top of "How sure is each count" says how many.</p></div>
<div class="pb" style="border-top:1px solid var(--line)"><p class="muted" style="font-size:13px">Each goal gets its own report: by ad campaign (LinkSpin and InstantAdPay), by spin link, by Banner Spin, by destination page and by traffic source (a source you named under Sources, or else the referring site or ad placement). Press CSV for every conversion with its time in Central time, goal, value, match method, campaign, spin link, page, source, country and device. The counting rules: each goal counts once per click, only within 30 days of a real click, and only for clicks on your own ads, links and Banner Spins. Your own clicks on any of them (made while signed in, or from a browser you sign in from) are kept as tests: the note at the top of "How sure is each count" says how many.</p></div>
</div>
<div class="panel">
@@ -237,13 +237,13 @@
<ul class="cg-check">
<li><b>Is the pixel id right?</b> It is <code class="i">px</code> plus 10 letters and numbers, copied from Snippets. A removed goal's pixel stops counting.</li>
<li><b>Did the test arrive?</b> Press Send a test conversion. If the last test time updates, the goal is live. If the <code class="i">&amp;test=1</code> check on your real page does not update it, the pixel is not on that page or the page strips it.</li>
<li><b>Does the click id reach your page?</b> Open your own spin link or ad: your landing page's address should show <code class="i">lsclk=</code>. If it does not, something between the click and your page (another redirect or a link shortener) is dropping it. Point the link straight at the page with the landing tag.</li>
<li><b>Banner Spin straight to a page?</b> The goal pixel counts ad clicks and spin-link clicks. A Banner Spin banner that points straight at a page is not matched; point the banner at one of your spin links and the spin link carries the click id.</li>
<li><b>Does the click id reach your page?</b> Open your own spin link, Banner Spin or ad: your landing page's address should show <code class="i">lsclk=</code>. If it does not, something between the click and your page (another redirect or a link shortener) is dropping it. Point the link straight at the page with the landing tag.</li>
<li><b>Banner Spin straight to a page?</b> That works too. Once you have a goal, a Banner Spin banner that points straight at a page adds its own click id (<code class="i">lsclk=</code>) to the page address, and its goals show under By Banner Spin. A banner that points at one of your spin links is counted under that spin link.</li>
<li><b>Is the landing tag on the page the click lands on?</b> Exactly that address, not another page of your site.</li>
<li><b>Same domain for both pages?</b> The landing tag keeps the id on one domain. If the landing page is on <code class="i">www.yoursite.com</code> and the thank-you page on <code class="i">yoursite.com</code> (or another site), the script pixel cannot read it and only the cookie or 24-hour match is left.</li>
<li><b>Goal pixel only on the thank-you page?</b> Not in a site-wide footer, not on the landing page.</li>
<li><b>Scripts stripped?</b> Some builders and hosted blogs remove scripts. Use the image version of the goal pixel there.</li>
<li><b>Testing with your own clicks?</b> Your own ad clicks are kept as tests and never show in the counts. A sign-up you finish yourself through your own spin link counts like anyone's, so use the test steps above instead.</li>
<li><b>Testing with your own clicks?</b> Your own clicks on your own ads, spin links and Banner Spins are kept as tests and never show in the counts, whether you are signed in or not on that browser (LinkSpin knows the browsers you sign in from). Use Send a test conversion and the <code class="i">&amp;test=1</code> check above to test.</li>
<li><b>Older than 30 days, or the same click twice?</b> A sign-up more than 30 days after the click does not count, and each click counts once per goal.</li>
</ul>
</div>
+2 -2
View File
@@ -40,7 +40,7 @@
<ol class="steps">
<li><b>Landing page:</b> paste the landing tag once, before &lt;/body&gt;. It keeps the click id on your own site for 30 days.</li>
<li><b>Thank-you page:</b> paste the goal pixel for the goal (the image works anywhere; the script version is surer).</li>
<li><b>Test it:</b> press <b>Send a test conversion</b> below, then click one of your own ads or spin links and finish your own form once.</li>
<li><b>Test it:</b> press <b>Send a test conversion</b> below. To check your real thank-you page, add <span class="mono">&amp;test=1</span> to its pixel, open the page once, and the last test time updates (take it back out afterwards). Your own clicks on your ads, spin links and Banner Spins are kept as tests and never counted, so finishing your own form proves nothing in the counts.</li>
</ol>
<div class="gsel" style="margin-top:12px"><span class="muted">Snippets for</span><select class="field" id="goalPick" style="width:auto;min-width:160px"></select><button class="btn" type="button" id="testBtn">Send a test conversion</button><span class="muted" id="testNote"></span></div>
<div class="snip"><span class="sec">1. Landing tag</span><code class="code mono" id="snTag"></code><div><button class="btn sm" type="button" data-copy="snTag">Copy</button></div></div>
@@ -69,6 +69,6 @@
</div>
</div>
<script src="/assets/cr-shell.js?v=20261025ff"></script>
<script src="/assets/conversions.js?v=20261023a"></script>
<script src="/assets/conversions.js?v=20261026a"></script>
</body>
</html>
+1 -1
View File
@@ -110,7 +110,7 @@
<p style="margin:0;font-size:16px;color:var(--ink-2)">Traffic is what makes an offer work, and traffic stops the day your credits run out. A Banner Spin or spin link that runs for a week and then goes quiet gives people one look. Most people don't act on the first look. They act after they've seen your offer a few times, over days and weeks. Refueling every month keeps your offer in front of people the whole month, not just the week you bought.</p>
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:12px">
<div class="tile" style="display:grid;gap:4px;padding:12px 14px;font-size:14.5px"><b>Steady beats bursts</b><span>One big push, then nothing, means every new visitor sees you once. A monthly refuel keeps your rotation running every day, so the people who saw you last week see you again this week. That repeat exposure is what turns a click into a sign-up.</span></div>
<div class="tile" style="display:grid;gap:4px;padding:12px 14px;font-size:14.5px"><b>Your numbers get useful</b><span>With traffic running all month, Banner Spin reports and conversion tracking collect enough clicks and goals to crown a winner. Next month's fuel goes behind the banner and the page that actually convert.</span></div>
<div class="tile" style="display:grid;gap:4px;padding:12px 14px;font-size:14.5px"><b>Your numbers get useful</b><span>With traffic running all month, Banner Spin reports and conversion tracking collect enough clicks and goals to crown a winner. Once you track a goal, every Banner Spin click carries a click id, banners that go straight to your page included, so goals on a page with your landing tag are counted per Banner Spin. Next month's fuel goes behind the banner and the page that actually convert.</span></div>
<div class="tile" style="display:grid;gap:4px;padding:12px 14px;font-size:14.5px"><b>Fresh creative every month</b><span>The Refuel Kit loads new banners with your name and QR code straight into your Banner Spin, so the same audience sees something new instead of tuning out.</span></div>
<div class="tile" style="display:grid;gap:4px;padding:12px 14px;font-size:14.5px"><b>Each month buys more</b><span>The bonus climbs the longer you keep the streak, so the same package delivers more in month four than in month one. Refuel InstantAdPay too and it climbs faster.</span></div>
</div>