From ce977698b9c33ad056ebab6970c4a448cd97a219 Mon Sep 17 00:00:00 2001 From: martbost Date: Fri, 23 Oct 2026 18:01:08 -0500 Subject: [PATCH] Campaigns > Conversion tracking panel: goals (name, default value, pixel id, 30-day conversions, last test), add goal, landing tag + goal pixel snippets (JS version under a toggle), Send a test conversion, autoresponder thank-you page advice, how-sure legend; each campaign row shows goals and cost per goal in credits from the LinkSpin summary. LinkSpin down: the card says so, the rows omit the goal line. my.js?v=20261023cv Co-Authored-By: Claude Opus 5.5 --- public/assets/my.js | 90 ++++++++++++++++++++++++++++++++++++++++++++- public/my.html | 29 ++++++++++++++- 2 files changed, 116 insertions(+), 3 deletions(-) diff --git a/public/assets/my.js b/public/assets/my.js index be2fe63..9a16fe8 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -1063,6 +1063,90 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str pageList('credits', box, 'tbody tr'); } catch (e) {} } + // Campaigns > Conversion tracking (2026-10-23). Goals and counts come from LinkSpin through /api/my/conversions. Anything + // going wrong here only changes this card's own text: the campaign list never depends on it. + let convSel = null, convCamps = []; + const convFmt = n => Number(n || 0).toLocaleString(undefined, { maximumFractionDigits: 1 }); + function convSnips(host, g) { + const h = 'https://' + String(host || 'linkspin.app').replace(/^https?:\/\//, '').replace(/\/+$/, ''); + const px = encodeURIComponent(g.px), goal = encodeURIComponent(g.name); + const val = g.value != null && g.value !== '' ? '&value=' + encodeURIComponent(g.value) : ''; + return { + landing: ' - +