Conversion tracking fixes (Marty approved 2026-10-26): real test pixel, own-click count, own-browser clicks as tests, cost per goal (30 days)
1. Own clicks: auth.onSeen notes the soft key of every InstantAdPay session (lsconv.noteSession, once per 6 h per email + soft key) and the click push carries them as owners [{owner, sk, ts}] (requeued on a failed push), so LinkSpin keeps members' own clicks on their ads, spin links and Banner Spins as tests. /api/ads/click flags a click self for conversions when signed in as the owner OR from a browser the owner signs in from; whether the click is counted and billed is unchanged (still the signed-in check). Linked positions share the owner's email.
2. Send a test conversion now loads the member's real LinkSpin pixel in test mode from the browser (cv.gif?px=..&test=1, reads X-LS-Result: test, the same request LinkSpin's button makes) and falls back to the signed partner call (op test) when the browser cannot load it; CSP connect-src adds https://linkspin.app. The card shows "N from your own clicks, kept as tests and left out" (selfTests from LinkSpin's summary).
4. Cost per goal (30 days): /api/my/conversions returns spend30 = each campaign's spend over the same 30 days from credit_log (ads.spendSince: delivery, login, buy, refund rows by Central day, ref = campaign id). Campaign lines read "Goals and cost per goal (30 days)"; a campaign started inside the window with no log rows uses its spend since start (labelled in the tooltip); an older campaign with no spend on record shows no cost rather than a lifetime figure.
Copy: Conversion tracking card note, /conversion-tracking (test button, own clicks, cost per goal (30 days) row). Chatbot CANNED + FACTS, KNOWLEDGE_DATE 2026-10-26. my.js ?v=20261026cv.
QA: convpixel all passed (new: owners pushed without raw IP, own-browser click self=1 and stranger 0, no re-push within 6 h, spend30 = 200 of the window with the 40-day-old row and another member left out, 50/200 credits each vs lifetime 75, no-log old campaign shows no cost, new campaign uses spend since start, own-click count on the card, test button loads cv.gif?px&test=1 in the browser (routed locally) and falls back to op test); fuel all pass (engine.js / engine-room.js / kit.js untouched, byte-identical with LinkSpin); member walk 0 bugs; public 0 bugs (known /shorts ellipsis warning).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
<div class="rg-two">
|
||||
<div class="rg-box"><h3>Clicks are not sign-ups</h3><p>One ad can get lots of clicks from people who never sign up. Another gets fewer clicks and brings you subscribers. Without tracking, both look the same, or the wrong one looks better.</p></div>
|
||||
<div class="rg-box"><h3>Find the winner</h3><p>Every goal is counted against the ad that sent the visitor. You see which campaign, which landing page and which traffic source produced the sign-up or the sale.</p></div>
|
||||
<div class="rg-box"><h3>A cost per goal, in credits</h3><p>Each campaign shows its goals and what each one cost: the credits the campaign has spent, divided by its goals. Lower is better. Compare two ads on the same offer and you know which to keep.</p></div>
|
||||
<div class="rg-box"><h3>A cost per goal, in credits</h3><p>Each campaign shows its goals and what each one cost: the credits the campaign spent in the last 30 days, divided by its goals in those 30 days. Lower is better. Compare two ads on the same offer and you know which to keep.</p></div>
|
||||
<div class="rg-box"><h3>Put next month's fuel behind it</h3><p>This is the "your numbers get useful" part of <a href="/refuel">Fuel Your Offers</a>. Run your ads all month, let the goals come in, then put next month's refuel behind the ad and the page that convert, instead of guessing.</p></div>
|
||||
</div>
|
||||
|
||||
@@ -144,11 +144,11 @@
|
||||
</div></li>
|
||||
<li><div>
|
||||
<h3>Send a test conversion</h3>
|
||||
<p>Press <b>Send a test conversion</b> on your goal. It shows under <b>Last test</b> and never counts in your numbers. That proves your pixel id is live.</p>
|
||||
<p>To check the pixel on your real thank-you page, add <code class="i">&test=1</code> to the end of the pixel address, open your thank-you page once, and reload your dashboard a minute later: Last test updates. Then take <code class="i">&test=1</code> back out. Last, click one of your own ads and look at the address bar on your landing page: you should see <code class="i">lsclk=</code> in it.</p>
|
||||
<p>Press <b>Send a test conversion</b> on your goal. It loads your real pixel in test mode, the same request your thank-you page makes. It shows under <b>Last test</b> and never counts in your numbers. That proves your pixel id is live.</p>
|
||||
<p>To check the pixel on your real thank-you page, add <code class="i">&test=1</code> to the end of the pixel address, open your thank-you page once, and reload your dashboard a minute later: Last test updates. Then take <code class="i">&test=1</code> back out. Last, click one of your own ads 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>
|
||||
<p class="rg-note">Your own clicks on your own ads are kept as tests. They never show in your numbers, so a full run-through of your own funnel will not inflate anything.</p>
|
||||
<p class="rg-note">Your own clicks are kept as tests: on your ads here, and on your spin links and Banner Spins on LinkSpin, whether you are signed in on that browser or it is one you sign in from. They never show in your numbers, so a full run-through of your own funnel will not inflate anything. The card says how many of your own clicks were kept as tests.</p>
|
||||
|
||||
<p class="rg-eye">Copy and paste</p>
|
||||
<h2>Where the code goes, by platform</h2>
|
||||
@@ -216,7 +216,7 @@
|
||||
<thead><tr><th>You see</th><th>What it means</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>Conversions (30 days)</td><td>Goals counted for this goal in the last 30 days, tests and your own clicks left out.</td></tr>
|
||||
<tr><td>Cost per goal, in credits</td><td>The credits the campaign has spent so far, divided by its goals in the last 30 days. Spend is the campaign's total, so on a campaign that has run longer than 30 days this figure reads high. It is in ad credits, never dollars.</td></tr>
|
||||
<tr><td>Cost per goal (30 days), in credits</td><td>The credits the campaign spent in the last 30 days, divided by its goals in the same 30 days, so an older campaign reads the same way as a new one. Spend comes from your credit activity (Campaigns, Credit activity). It is in ad credits, never dollars.</td></tr>
|
||||
<tr><td>url <span class="muted">(LinkSpin: Address)</span></td><td>Surest. The thank-you page's own address still carried the click id.</td></tr>
|
||||
<tr><td>stored <span class="muted">(LinkSpin: Kept)</span></td><td>Very sure. The landing tag kept the click id on your site and the goal pixel read it back.</td></tr>
|
||||
<tr><td>cookie <span class="muted">(LinkSpin: Cookie)</span></td><td>Fairly sure. Matched through LinkSpin's own cookie in the visitor's browser. Some browsers block it.</td></tr>
|
||||
@@ -226,7 +226,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="rg-two">
|
||||
<div class="rg-box"><h3>The counting rules</h3><p>Each goal counts once per click, so one person signing up twice from one click is one goal. A goal counts only within 30 days of a real click, and only for clicks on your own ads. Your own clicks on your ads are kept as tests.</p></div>
|
||||
<div class="rg-box"><h3>The counting rules</h3><p>Each goal counts once per click, so one person signing up twice from one click is one goal. A goal counts only within 30 days of a real click, and only for clicks on your own ads. Your own clicks are kept as tests, never counted.</p></div>
|
||||
<div class="rg-box"><h3>More detail on LinkSpin</h3><p>Sign in to LinkSpin with the same email and open <b>Conversions</b> in the Control Room for the full breakdown: by ad campaign (both sites), by destination page and by traffic source, a 7, 30 or 90 day range, and a CSV download.</p></div>
|
||||
</div>
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
<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 clicks on your ads are kept as tests and never show in the counts. Use the test steps above instead.</li>
|
||||
<li><b>Testing with your own clicks?</b> Your own clicks on your ads (and on your LinkSpin spin links and Banner Spins) are kept as tests and never show in the counts. Use Send a test conversion and the <code class="i">&test=1</code> check above instead.</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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user