Fuel flow IAP -> LinkSpin made obvious (Marty 2026-10-25: "I clicked set up conversion tracking, it took me to LinkSpin and I don't know how to pick up from there"). Engine Room links now follow the site the member is on (engine.js build({site})): Set up conversion tracking on InstantAdPay opens /my#conversions (Campaigns > Conversion tracking card, scrolled to, highlighted, goal box focused; same goals LinkSpin counts) with the /conversion-tracking guide beside the button; buy/refuel/top-up and the Fuel part stay on this site. Only LinkSpin-only tools cross over (Banner Spin -> /links#b, spin link, page, testing), labelled "on LinkSpin" and tagged ?from=iap&task=<job> so LinkSpin shows an arrival strip with Step 1. Streak line and Refuel card get a "Refuel LinkSpin" link to linkspin.app/credits#refuel when the second engine is still open. Part labels wrap cleanly. Chatbot canned + prompt routes, KNOWLEDGE_DATE 2026-10-25. engine.js / engine-room.js stay byte-identical with LinkSpin. QA: fuel 12/12 engine incl. new site-links test, member walk 0 bugs. my.js, fuel.js, engine-room.js ?v=20261025ff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-25 09:05:53 -05:00
parent 7f80d82486
commit 47638ac1fe
8 changed files with 87 additions and 33 deletions
+1 -1
View File
@@ -4792,7 +4792,7 @@ const server = http.createServer(async (req, res) => {
const s = await auth.fromRequest(req); if (!s || !s.email) return json(res, 401, { error: 'Sign in first.' });
const rv = await refuel.view(s.email); if (!rv.on) return json(res, 200, { on: false });
const [own, peer] = await Promise.all([engine.facts({ site: 'iap', adminMember, ads, coach }, s.email), engineFromLinkSpin(s.email, u.searchParams.get('fresh') === '1')]);
return json(res, 200, engine.build({ refuel: rv, iap: own, ls: peer, goal: rv.goal }));
return json(res, 200, engine.build({ site: 'iap', refuel: rv, iap: own, ls: peer, goal: rv.goal }));
}
if (p === '/api/my/engine/goal' && req.method === 'POST') {
const s = await auth.fromRequest(req); if (!s || !s.email) return json(res, 401, { error: 'Sign in first.' });