diff --git a/chatbot.js b/chatbot.js index 441a380..7fbb83b 100644 --- a/chatbot.js +++ b/chatbot.js @@ -25,7 +25,7 @@ let DATA_DIR = null; let chain = null; const MODEL = process.env.OPENROUTER_MODEL || 'deepseek/deepseek-v4-flash:nitro'; const CONTRACT = '0x26Bdc556b94399bEdd69ae3ACA5aA6c54D946e8b'; -const KNOWLEDGE_DATE = '2026-10-27'; // the day the CANNED answers and FACTS below were last checked against the site +const KNOWLEDGE_DATE = '2026-10-28'; // the day the CANNED answers and FACTS below were last checked against the site function init(opts) { if (opts && typeof opts.refuelOn === 'function') REFUEL_ON = opts.refuelOn; DATA_DIR = opts.dataDir; chain = opts.chain; return kb.init({ dataDir: DATA_DIR, seeds: seeds() }); } @@ -85,6 +85,9 @@ const CANNED = [ { id: 'conversions', title: 'Conversion tracking (the conversion pixel)', q: ['How do I track sign-ups or sales from my ads?', 'What is the conversion pixel?', 'How do I see cost per lead?', 'How do I set up conversion tracking on WordPress?'], tags: ['conversion pixel', 'goal', 'cost per goal', 'landing tag', 'thank-you page', 'tracking', 'wordpress', 'setup guide'], re: /(conversion (pixel|tracking)|goal pixel|landing tag|\bt\.js|cv\.(gif|js)|cost per (goal|conversion|lead|sale|sign ?up|subscriber)|track (a |my )?(goal|sale|sign ?up|subscriber|lead)s?|lsclk|thank.?you page|aweber|getresponse)/i, a: 'The conversion pixel counts what happens after the click: a subscriber, a sale, any goal you name. Open Conversions in your Control Room and add a goal (for example subscriber). Then 1) paste the landing tag once on your landing page, 2) paste the goal pixel on your thank-you page, 3) press Send a test conversion (to check your real thank-you page, add &test=1 to its pixel and open the page once; the last test time updates). Every click on your LinkSpin and InstantAdPay ads, your spin links and your Banner Spins (banners that go straight to a page included) carries a click id (lsclk) the tag keeps on your site, so each goal counts once per click, within 30 days of the click, and only for clicks on your own ads and links. Your OWN clicks on your own ads, spin links or Banner Spins are kept as tests and never counted, so test with the button, not by signing up yourself. Reports show conversions and cost per goal by ad campaign, spin link, Banner Spin, page and traffic source, plus how each one was matched (from the address, kept by the tag, LinkSpin\'s cookie, or a 24-hour match). If your autoresponder (Aweber, GetResponse) shows its own thank-you page, set its thank-you redirect to a page on your own site that carries the pixel. A postback set to the event goal tells your tracker too. The step-by-step guide, with copy-paste examples for plain HTML, WordPress, page builders and autoresponder thank-you pages, how to read the report and a troubleshooting checklist: https://linkspin.app/conversion-tracking' }, + { id: 'trafficguide', title: 'Which traffic for which offer', q: ['What traffic should I use for my offer?', 'Is pop or push better?', 'Which ad network is best for a crypto offer?'], tags: ['sources', 'traffic guide', 'paid traffic'], + re: /((what|which|best|right) (kind|type)s? of (traffic|ads?)|(what|which|best) (traffic|ad network|network)s?\b.{0,40}\b(for|to use|should)|traffic guide|pop(under)?s? (or|vs\.?|versus) push|push (or|vs\.?|versus) (pop|native)|native (or|vs\.?|versus)|what converts|which (format|ad format))/i, + a: 'Open the Traffic guide: https://linkspin.app/traffic-guide (also the Traffic guide button on your Sources screen). Pick what you are promoting and it shows which ad formats tend to convert for it and which networks sell those formats. Quick version: free sign-ups, email capture, games and giveaways do best on popunder, push and in-page push (cheap volume, one-step pages). Courses, software and story-style pre-sells do best on native ads. Things people already look for, like advertising tools, do best on search. For a crypto or team-build opportunity, use native or push to a pre-sell or squeeze page and capture the email first; Google, Microsoft, Facebook, Taboola, Revcontent and MGID restrict crypto and income offers, and no network accepts income promises. Networks marked adult-heavy sell a lot of adult traffic, so target their mainstream sites. Whatever you pick, set the network up under Sources so Reports shows what actually converts, and start small.' }, { id: 'sources', title: 'Traffic sources and postbacks', q: ['How do I track traffic I buy?', 'How do postbacks work?', 'Can I use PropellerAds or Zeropark?'], tags: ['sources', 'postback', 'paid traffic', 'ad network'], re: /(traffic ?sources?|postback|macros?|propeller ?ads|zeropark|adsterra|exoclick|hilltop ?ads|rich ?ads|traffic ?stars|pop ?ads|campaign url|buy(ing)? traffic|paid traffic|ad network|s2s)/i, a: 'Sources, in your Control Room, is for traffic you buy on networks like PropellerAds, Zeropark, Adsterra or ExoClick. Pick the network from the catalog (or define your own), fill in your account details, and the source remembers that network\'s macros and conversion postback. Point a spin link at it and the Share kit gives you the exact campaign URL to paste into the network, macros included. When a click from that source joins, leaves a lead, links a wallet or buys, LinkSpin fires the network\'s own postback with its click id, so the network learns what converts, and Reports breaks clicks and conversions down by source and by the zone or placement the macro carried. The older account-level Postbacks on the Links screen still work for your tracker.' }, @@ -172,7 +175,7 @@ function systemPrompt(kbBlock) { FACTS: - LEVEL 4 OVERRIDE (LIVE 2026-10-26, first payout Monday 2026-11-02): company paid, decided off chain, paid on chain. 3% of every LinkSpin package purchase (the POL actually paid) goes to the buyer's 4th upline on the LinkSpin contract sponsor chain if that member's contract buyerCount is 5 or more (qualifying buyer = referral whose first package was $25 or more; same bar as level 3); otherwise it hunts up to the next qualified upline, max 25 hops; company account #1 or nobody qualified = company keeps it; exactly one recipient per purchase. Paid weekly in POL every Monday after 9 AM Central for the previous Monday to Sunday Central week, from a company payer wallet via the contract's award(memberId); shown on the Wallet screen as 'Level 4 override' with a Polygon link. Under 0.01 POL carries to the next week. Purchases from the start date only, no back pay. Funded from the platform's 20%; the contract split is unchanged. Separate from InstantAdPay's override; qualification does not carry between sites. Never promise amounts. -${refuelFact()}${synFact()}- PRODUCT, all free with an email account: SPIN LINKS (the rotator: one short link, /r/, rotates between destinations by weight; pause any destination; a fallback for when all are off; one-hop redirect; every click recorded with day, country, source, device and a daily-salted visitor hash; bots filtered on the server; click ids and sub ids such as clickid, subid, s1 to s4 pass through to the destination; split tests by tagging the same link with different sub ids; a demo spin on the home page needs no account; DAYPARTING is live: a 7x24 hours grid per spin and per destination, time zone by name or the local time of the visitor, presets, and 'my best hours' from the clicks of the member after 200 clicks; automatic HEALTH CHECKS are live: every destination is checked every 30 minutes, a dead or parked one is paused after three failing checks and resumed when it passes twice, the owner is told once, and Check now runs it on demand). PAGES (page builder: scan any offer URL, get a bridge, review or squeeze page; designs, palettes, layouts and niche presets with hero images; leads to the member's own list, CSV or webhook; published on the pages domain lookfirst.page; sales, advertorial and press-release layouts are coming). ZONES (an ad slot on the member's own site: one async script tag, nine sizes 728x90, 468x60, 300x250, 336x280, 250x250, 125x125, 160x600, 120x600, 320x50; waterfall = LinkSpin member campaign, then a network ad for 728x90 and 468x60, then the LinkSpin house banner; pays ad credits per VIEWABLE impression, half the banner on screen for one second, bots never, 50 credited views per visitor per zone per day; rates 1 credit per 5 viewable member-ad views and 1 per 10 network-ad views, 1 per 8 on a Verified zone; warm-up: a zone earns after its first 100 on-site views with at least 40 percent viewable and goes on hold below that; origin lock: paid ads serve only on the declared site and its subdomains, elsewhere the house banner shows and nothing is earned; up to 50 zones per account; PUBLISHER PROGRAM at /publishers for site owners, tiers Standard (default) and Verified (admin-reviewed site, better network rate)). AUDIENCES (first-party retargeting: "My visitors" collects everyone who viewed the member's pages and zones for 30 days; a pixel tag /p.js for other sites; campaigns can "show only to" or "never show to" an audience; nothing personal stored). PROMO TOOLS at /tools#promo (social posts, text-a-friend, email swipes, banners, objection bank, hook videos; five hook angles with videos: links, pages, zones, audiences, stack; angle links are the invite link plus ?v=). REPORTS (every link in one view, plus Pages, Zones, and since 2026-10-12 Traffic sources and Placements). BLOG at /blog with RSS at /blog/feed.xml. TRAFFIC SOURCES at /sources (2026-10-12): a source is a record of a network the member buys traffic on, created from a catalog of networks (PropellerAds, Zeropark, Adsterra, ExoClick, HilltopAds, TrafficStars, PopAds and more, with each network's macro tokens and conversion postback URL; account-specific slots such as a goal id are filled in at creation) or defined by hand; a spin link is pointed at one source (Share kit on the Links screen, or the Sources screen), and then the Share kit's first row is the exact campaign URL for that network with its macros already in place; when a click that came through that source converts (join, lead, wallet, purchase, or a partner-reported conversion; the member picks which) LinkSpin fires that network's own postback with the network's click id and the payout, server to server, and only the network that sent the click is told; Reports show clicks, uniques and conversions by source and by placement (the value the network's zone, placement, site, campaign, creative, banner or keyword macro carried); up to 30 sources per account, 20 params each; a source with no postback still builds the campaign URL and shows in Reports; the account-level Postbacks list on the Links screen (for the member's own tracker) still works alongside. Knowledge checked on ${KNOWLEDGE_DATE}. +${refuelFact()}${synFact()}- PRODUCT, all free with an email account: SPIN LINKS (the rotator: one short link, /r/, rotates between destinations by weight; pause any destination; a fallback for when all are off; one-hop redirect; every click recorded with day, country, source, device and a daily-salted visitor hash; bots filtered on the server; click ids and sub ids such as clickid, subid, s1 to s4 pass through to the destination; split tests by tagging the same link with different sub ids; a demo spin on the home page needs no account; DAYPARTING is live: a 7x24 hours grid per spin and per destination, time zone by name or the local time of the visitor, presets, and 'my best hours' from the clicks of the member after 200 clicks; automatic HEALTH CHECKS are live: every destination is checked every 30 minutes, a dead or parked one is paused after three failing checks and resumed when it passes twice, the owner is told once, and Check now runs it on demand). PAGES (page builder: scan any offer URL, get a bridge, review or squeeze page; designs, palettes, layouts and niche presets with hero images; leads to the member's own list, CSV or webhook; published on the pages domain lookfirst.page; sales, advertorial and press-release layouts are coming). ZONES (an ad slot on the member's own site: one async script tag, nine sizes 728x90, 468x60, 300x250, 336x280, 250x250, 125x125, 160x600, 120x600, 320x50; waterfall = LinkSpin member campaign, then a network ad for 728x90 and 468x60, then the LinkSpin house banner; pays ad credits per VIEWABLE impression, half the banner on screen for one second, bots never, 50 credited views per visitor per zone per day; rates 1 credit per 5 viewable member-ad views and 1 per 10 network-ad views, 1 per 8 on a Verified zone; warm-up: a zone earns after its first 100 on-site views with at least 40 percent viewable and goes on hold below that; origin lock: paid ads serve only on the declared site and its subdomains, elsewhere the house banner shows and nothing is earned; up to 50 zones per account; PUBLISHER PROGRAM at /publishers for site owners, tiers Standard (default) and Verified (admin-reviewed site, better network rate)). AUDIENCES (first-party retargeting: "My visitors" collects everyone who viewed the member's pages and zones for 30 days; a pixel tag /p.js for other sites; campaigns can "show only to" or "never show to" an audience; nothing personal stored). PROMO TOOLS at /tools#promo (social posts, text-a-friend, email swipes, banners, objection bank, hook videos; five hook angles with videos: links, pages, zones, audiences, stack; angle links are the invite link plus ?v=). REPORTS (every link in one view, plus Pages, Zones, and since 2026-10-12 Traffic sources and Placements). BLOG at /blog with RSS at /blog/feed.xml. TRAFFIC SOURCES at /sources (2026-10-12): a source is a record of a network the member buys traffic on, created from a catalog of networks (PropellerAds, Zeropark, Adsterra, ExoClick, HilltopAds, TrafficStars, PopAds and more, with each network's macro tokens and conversion postback URL; account-specific slots such as a goal id are filled in at creation) or defined by hand; a spin link is pointed at one source (Share kit on the Links screen, or the Sources screen), and then the Share kit's first row is the exact campaign URL for that network with its macros already in place; when a click that came through that source converts (join, lead, wallet, purchase, or a partner-reported conversion; the member picks which) LinkSpin fires that network's own postback with the network's click id and the payout, server to server, and only the network that sent the click is told; Reports show clicks, uniques and conversions by source and by placement (the value the network's zone, placement, site, campaign, creative, banner or keyword macro carried); up to 30 sources per account, 20 params each; a source with no postback still builds the campaign URL and shows in Reports; the account-level Postbacks list on the Links screen (for the member's own tracker) still works alongside. TRAFFIC GUIDE at /traffic-guide (2026-10-28, public, linked from the Sources screen header and each source's detail): pick an offer type (free sign-up or email capture; crypto or team-build opportunity; advertising tools and ad credits; games and play-to-earn; software, apps and AI tools; courses and info products; giveaways and freebies) to see each ad format rated best / good / weak / avoid with a reason, a tip, and the catalog networks that sell the good formats (strict-policy networks Google, Microsoft, Facebook, Taboola, Revcontent, MGID left out for the crypto offer; adult-only TrafficJunky only for games and giveaways); cards for the 8 formats (popunder, push, in-page push, native, search, social, banners, domain redirect: what it is, how you pay, what converts, what struggles, landing page); a table of all 30 catalog networks with the formats each sells, adult-heavy and strict-policy flags and best-for; ground rules (test small, track every click under Sources, one change at a time, block zones that waste money, no income promises, mainstream vs adult inventory). The New source picker shows the same format tags and can be searched by format (push, native...). Never promise results; the guide says Reports are the final word. Knowledge checked on ${KNOWLEDGE_DATE}. - CONVERSION PIXEL (LIVE 2026-10-23, Control Room > Conversions at ${SITE_URL}/conversions; InstantAdPay members see the same goals under Campaigns > Conversion tracking, held on their LinkSpin account): a member names GOALS (subscriber, sale, any word, optional default value, up to 20); each goal has a PUBLIC pixel id (px + 10 characters) that can only count clicks the member owns. EVERY CLICK GETS AN ID: LinkSpin ad clicks (banner, text, zones) and InstantAdPay ad clicks add lsclk= to the target address (other params kept); a spin link reached through an ad passes its own id on and inherits the ad as its source; spin links of a member with a goal add lsclk to the destination too, and so do Banner Spin clicks that go straight to a page (since 2026-10-26; a banner pointed at a spin link gets the spin link's id). SETUP, 3 steps: 1) the LANDING TAG on the landing page, one line , keeps the id on the member's own site 30 days (localStorage + a first-party cookie), fills hidden form fields named lsclk, lsid or clickid and adds the id to links that stay on the same site; 2) the GOAL PIXEL on the thank-you page, an image cv.gif?px=PIXEL_ID&goal=NAME (optional &value=19.95) or the script version cv.js that reads what the tag kept; 3) Send a test conversion (recorded apart, never counted). MATCHING ORDER: the click id in the address, then the id the tag kept, then LinkSpin's own cookie, then a 24-hour match on network + browser (a hash, no IP stored); the method is shown per goal so members see how solid each count is. RULES: each goal counts once per click (an ad click and the spin-link click it led to are one click), only within 30 days of a real click, only for the pixel owner's own clicks, rate limited per pixel and per visitor. OWN CLICKS (2026-10-26): the goal owner's own click on ANY click type (ads, spin links, Banner Spins) is kept as a test and never counted: a click made while signed in as the owner, or a click or conversion from a browser (network + browser soft key) the owner has signed in from on LinkSpin or InstantAdPay; the Conversions screen says 'N from your own clicks, kept as tests and left out'. To test, use Send a test conversion and the &test=1 page check, never a sign-up of your own. REPORTS per goal: conversions and cost per goal (the campaign's credits spent / its conversions, in that site's ad credits) by ad campaign (LinkSpin and InstantAdPay), spin link, Banner Spin (banners straight to a page), destination page and traffic source, plus CSV export. POSTBACKS: a postback or traffic source set to the event 'goal' fires for every goal with {event} = the goal name. AUTORESPONDERS: when Aweber, GetResponse or another provider hosts the thank-you page, set its thank-you (success) redirect to the member's own page that carries the pixel; otherwise the pixel still counts through the cookie or the 24-hour match, less surely. The tag and pixel never break the page if LinkSpin cannot be reached and work inside traffic-exchange frames. SETUP GUIDE (public, 2026-10-24): ${SITE_URL}/conversion-tracking (InstantAdPay's copy: https://instantadpay.com/conversion-tracking): why track, the flow, the 4 steps (goal, landing tag, goal pixel, test), copy-paste examples (plain HTML, WordPress footer plugin + Custom HTML block, page builders, Aweber/GetResponse custom thank-you page), the page check (add &test=1 to the pixel address, open the thank-you page, the last test time updates, then remove it), what to do without code on the thank-you page (image pixel = cookie or 24-hour match; LinkSpin.goal(pixelId, name) from the page's own code for a pop-up form; postbacks), how to read the report and a troubleshooting checklist (same domain for landing and thank-you page, goal pixel only on the thank-you page, the script version is surest, a Banner Spin banner pointed straight at a page now carries its own click id and counts under By Banner Spin; the member's own clicks on ads, spin links and Banner Spins are all kept as tests). Send members there for any setup question. - TOOL LIMITS BY TIER (2026-10-21): spin links and pages each: Free (no package) 3, Starter (any package of your own) 10, Builder (level 2 open, 2 qualifying buyers) 50, Leader (level 3 open, 5 qualifying buyers) unlimited (fair use). Each spin link rotates up to 25 destinations at every tier; clicks are unlimited. Nothing already made is ever removed when a cap applies; new ones wait for the upgrade. Banner Spin has its own ladder (Starter 2 x 5, Builder 5 x 15, Leader 10 x 25). Other limits, same for everyone: 50 zones, 20 audiences, 20 postbacks, 5 linked positions. - BANNER SPIN (LIVE 2026-10-18, reports and health checks 2026-10-20): one image address (/i/.gif on a link domain) and one click address (/c/) that rotate up to 25 banners, each with its own target (any https page or one of the member's spin links), weights 1 to 100, random by weight on every view or one banner per visitor per day, the dayparting grid per Banner Spin and per banner, pause, a fallback page and an optional fallback banner image, and a traffic source so its conversions fire that network's postback. Built on the Links screen (${SITE_URL}/links#b). WHO GETS IT: a free add-on for members with their own package of $25 or more; tiers: Starter 2 Banner Spins x 5 banners, Builder (level 2 open, 2 qualifying buyers) 5 x 15, Leader (level 3 open, 5 qualifying buyers) 10 x 25; dropping below a tier keeps everything serving, it only stops new ones. One size per Banner Spin (468x60, 728x90, 300x250, 125x125, 160x600, 120x600, 336x280, 250x250, 320x50); JPG, PNG or GIF (animated is fine), 150 KB at most, uploads count toward the 10 files a day. EMBEDS: the image + click pair (traffic exchanges, safelists, downline builders), an HTML snippet (own sites, blogs, HTML email), a script tag (writes the banner and its own link, so every click matches exactly) and forum BBCode; every link domain answers every code. MATCHING: with the pair, the server remembers which banner a visitor saw on which page for 15 minutes and sends the click there; an unmatched click goes to the fallback. LIMITS: paid ad networks (Froggy, PropellerAds and the like) copy the image at upload, so it freezes on one banner there; Gmail and some mail apps fetch images through a caching proxy, so email readers mostly see one banner and clicks fall back: use a single-banner Banner Spin for email. REPORTS: per banner and per placement views, unique viewers (daily sample), clicks, CTR, match rate and conversions, by Central day, country and device, bots and server loads shown separately and never counted; a WINNER badge once two or more live banners have 1,000 views each and one leads on click rate (LinkSpin never changes weights by itself); a CACHED flag on a placement that copies banners to its own server; totals also on the Reports screen. HEALTH: every 30 minutes each live banner's image must load as an image of the right size and its target must pass the spin-link checks (dead, parked, slow); three failures in a row pause that banner, two clean passes resume it, the last live banner is never auto-paused, and the status shows on each banner row. diff --git a/public/assets/sources-screen.js b/public/assets/sources-screen.js index 8f202fd..0ac4cf9 100644 --- a/public/assets/sources-screen.js +++ b/public/assets/sources-screen.js @@ -5,7 +5,11 @@ (function () { const $ = id => document.getElementById(id); const esc = CR.esc, fmt = CR.fmt, api = CR.api, toast = CR.toast, dialog = CR.dialog; let S = [], CAT = [], ROT = [], SEL = null, DET = null, FILTER = '', KEYS = [], EVENTS = ['join', 'lead', 'wallet', 'purchase', 'external'], LIMITS = {}, URL_ROT = null, PE = []; - CR.mount({ active: 'sources', title: 'Traffic sources', sub: 'loading', actions: '' }); + CR.mount({ active: 'sources', title: 'Traffic sources', sub: 'loading', actions: 'Traffic guide ' }); + // traffic guide (2026-10-28): formats each network sells, adult-heavy / strict-policy flags, what it suits best + const TG = window.TRAFFIC_GUIDE || null; + const gTags = key => { const n = TG && TG.NETWORKS[key]; if (!n) return ''; return n.f.map(f => '' + esc(TG.fmtName(f)) + '').join('') + (n.adult === 'adult' ? 'adult sites' : n.adult === 'mixed' ? 'adult-heavy' : '') + (n.strict ? 'strict policy' : ''); }; + const gText = key => { const n = TG && TG.NETWORKS[key]; return n ? n.f.map(f => (TG.FORMATS[f] || {}).name || f).join(' ') : ''; }; const ago = ts => { if (!ts) return 'never'; const s = Math.max(0, Math.round((Date.now() - ts) / 1000)); return s < 60 ? 'just now' : s < 3600 ? Math.round(s / 60) + ' min ago' : s < 86400 ? Math.round(s / 3600) + ' h ago' : Math.round(s / 86400) + ' d ago'; }; const netOf = s => CAT.find(c => c.key === s.template) || null; const netName = s => { const n = netOf(s); return n ? n.name : (s.template === 'custom' ? 'Custom' : s.template); }; @@ -43,6 +47,9 @@ $('dOn').innerHTML = s.enabled ? 'ON' : 'OFF' + (s.fails >= 10 ? ' (postback failed 10 times)' : '') + ''; $('togBtn').textContent = s.enabled ? 'Disable' : 'Enable'; $('tiles').innerHTML = [CR.tile({ k: 'Clicks, 30 d', v: fmt(s.hits30 || 0), hi: true }), CR.tile({ k: 'Unique, 30 d', v: fmt(s.unique30 || 0) }), CR.tile({ k: 'Conversions, 30 d', v: fmt(s.conv30 || 0) }), CR.tile({ k: 'Postbacks sent', v: fmt(s.sent || 0), note: s.lastAt ? 'last ' + ago(s.lastAt) + ' · ' + s.lastStatus : 'none yet' }), CR.tile({ k: 'Links using it', v: fmt(s.links || 0) })].join(''); + const gb = TG && TG.NETWORKS[s.template], bf = gb ? TG.bestFor(s.template) : []; + $('dGuide').hidden = !gb; + if (gb) $('dGuide').innerHTML = (gb.f.length ? 'Sells' + gTags(s.template) : gTags(s.template)) + (bf.length ? '· Best for: ' + esc(bf.join(', ')) + '' : (gb.note ? '' + esc(gb.note) + '' : '')) + 'Which traffic for which offer →'; renderUrl(s); renderPb(s, null); renderSettings(s); if (!quiet) window.scrollTo({ top: 0 }); try { DET = await CR.get('/api/my/sources/' + id); } catch (e) { DET = null; } @@ -102,14 +109,14 @@ async function newSource() { if (!CAT.length) { try { CAT = (await CR.get('/api/sources/catalog')).catalog || []; } catch (e) {} } let chosen = null; - const row = c => '
' + esc(c.name) + '' + esc(c.site || '') + (c.costModel ? ' · ' + esc(c.costModel) : '') + '
' + (c.hasClickId ? '' : 'no click id') + (c.hasPostback ? 'postback' : (c.hasClickId ? 'no postback' : '')) + (c.verified ? '' : 'unverified') + '
'; - const p1 = dialog({ title: 'New source', text: 'Pick the network you buy traffic on. Its macros and postback come prefilled; you can change anything later under Settings.', + const row = c => '
' + esc(c.name) + '' + esc(c.site || '') + (c.costModel ? ' · ' + esc(c.costModel) : '') + '' + (gTags(c.key) ? '
' + gTags(c.key) + '
' : '') + '
' + (c.hasClickId ? '' : 'no click id') + (c.hasPostback ? 'postback' : (c.hasClickId ? 'no postback' : '')) + (c.verified ? '' : 'unverified') + '
'; + const p1 = dialog({ title: 'New source', text: 'Pick the network you buy traffic on. Its macros and postback come prefilled; you can change anything later under Settings. Search by name or by format (pop, push, native...). Not sure which fits your offer? See the Traffic guide.', html: '
' + CAT.map(row).join('') + '
', ok: 'Custom (define your own)', no: 'Cancel' }); const host = $('crModalHost'); const wire = () => host.querySelectorAll('.cat').forEach(el => { const go = () => { chosen = el.dataset.key; host.querySelector('#dlgOk').click(); }; el.addEventListener('click', go); el.addEventListener('keydown', e => { if (e.key === 'Enter') { e.preventDefault(); go(); } }); }); wire(); const flt = host.querySelector('#catFilter'); flt.focus(); - flt.addEventListener('input', () => { const q = flt.value.trim().toLowerCase(); const list = CAT.filter(c => !q || c.name.toLowerCase().includes(q) || (c.site || '').toLowerCase().includes(q) || c.key.includes(q)); host.querySelector('#catList').innerHTML = list.length ? list.map(row).join('') : '
No network by that name. Use Custom and paste its macros yourself.
'; wire(); }); + flt.addEventListener('input', () => { const q = flt.value.trim().toLowerCase(); const list = CAT.filter(c => !q || c.name.toLowerCase().includes(q) || (c.site || '').toLowerCase().includes(q) || c.key.includes(q) || gText(c.key).toLowerCase().includes(q)); host.querySelector('#catList').innerHTML = list.length ? list.map(row).join('') : '
No network by that name. Use Custom and paste its macros yourself.
'; wire(); }); flt.addEventListener('keydown', e => { if (e.key === 'Enter') { e.preventDefault(); e.stopPropagation(); const first = host.querySelector('.cat[data-key]'); if (first) first.click(); } }); const ok = await p1; if (!ok) return; const tpl = chosen ? CAT.find(c => c.key === chosen) : null; diff --git a/public/assets/traffic-guide-data.js b/public/assets/traffic-guide-data.js new file mode 100644 index 0000000..0e0b6e4 --- /dev/null +++ b/public/assets/traffic-guide-data.js @@ -0,0 +1,149 @@ +// LinkSpin traffic guide data (2026-10-28, Marty: members ask "what traffic for what kind of offer?"). +// Shared by the Traffic guide page (/traffic-guide) and the Sources screen (format tags, "good for" line). +// Network formats are what each network is known to sell; members should still confirm in their own ad panel. +window.TRAFFIC_GUIDE = (function () { + const FORMATS = { + pop: { + name: 'Popunder', short: 'Pop', + what: 'Your page opens in a new window or tab behind (or over) the site the visitor was reading.', + buy: 'Usually CPM or CPV (per thousand views). The cheapest clicks you can buy, and the most of them.', + wins: 'One-step offers that need no trust: free sign-ups, email capture, giveaways, games, app installs.', + fails: 'Anything that needs explaining or trust first: long sales letters, high-ticket offers, a cold opportunity pitch.', + page: 'Fast, mobile, one headline and one big button. If it takes more than a few seconds to load, the visitor is gone.', + }, + push: { + name: 'Push notifications', short: 'Push', + what: 'A short notification with an icon and a headline, sent to people who allowed notifications from some site.', + buy: 'CPC (per click). You only pay when someone taps.', + wins: 'Curiosity and news-style hooks: lead capture, giveaways, games, "how I..." stories, free tools.', + fails: 'Sending the click straight to a checkout or a signup that asks for a lot. Push readers want a quick payoff.', + page: 'Use a short pre-lander that continues the headline, then the sign-up. Refresh the headline and icon often; push audiences tire fast.', + }, + inpage: { + name: 'In-page push', short: 'In-page', + what: 'An ad that looks like a push notification but shows inside the web page (works on iPhones too).', + buy: 'CPC or CPM.', + wins: 'The same offers as push and pop: free sign-ups, giveaways, games, quick lead forms.', + fails: 'Offers that need a long read before anyone acts.', + page: 'Same as push: a headline that promises one thing, and a page that delivers it right away.', + }, + native: { + name: 'Native ads', short: 'Native', + what: 'A thumbnail and headline inside "recommended stories" boxes on news and content sites.', + buy: 'CPC. Clicks cost more than pop or push, but readers are in reading mode.', + wins: 'Story-style pre-sells: courses and info products, software, an opportunity explained through your own story.', + fails: 'Hard sells and hype. Mainstream native networks reject income claims and are strict about crypto.', + page: 'An article or "my story" page that warms the reader up, then sends them to the sign-up. Never a bare sign-up form.', + }, + search: { + name: 'Search ads', short: 'Search', + what: 'Text ads next to search results, shown to people typing a keyword you bid on.', + buy: 'CPC on keywords. Can be pricey on popular words, cheap on specific ones.', + wins: 'Things people already look for: advertising tools, buying website traffic, software, how-to courses.', + fails: 'Offers nobody searches for. Google and Microsoft also restrict crypto, income opportunities and MLM.', + page: 'Match the keyword in your headline. A searcher wants the answer to what they typed, not a detour.', + }, + social: { + name: 'Social ads', short: 'Social', + what: 'Ads in social feeds and stories, aimed by interests, age and location.', + buy: 'CPM or CPC, set by auction.', + wins: 'Video and story content, free lead magnets, community and webinar invites, software and courses.', + fails: 'Direct crypto or "make money" pitches: Facebook restricts them, and accounts get banned for it.', + page: 'Lead with something free and useful (a guide, a video, a webinar), then follow up by email.', + }, + display: { + name: 'Banners', short: 'Banner', + what: 'Image ads in fixed spots on websites (728x90, 300x250 and so on).', + buy: 'CPM or CPC.', + wins: 'Retargeting people who already know you, brand reminders, simple free offers.', + fails: 'Cold, complex offers. Banner click rates are low, so the offer has to be obvious at a glance.', + page: 'Bold, simple creative with one message. Test several sizes; some spots convert far better than others.', + }, + redirect: { + name: 'Domain redirect', short: 'Redirect', + what: 'Visitors who typed a parked or expired domain are sent straight to your page (also called zero-click).', + buy: 'CPV (per visit).', + wins: 'Lead capture, giveaways, simple sign-ups in the right niche.', + fails: 'Offers that need a pre-sell. The visitor did not choose your ad.', + page: 'Fast and simple, like pop traffic.', + }, + }; + + // offer types LinkSpin members promote; rating per format: best / good / weak / avoid, with a one-line why + const OFFERS = [ + { key: 'join', name: 'Free sign-up or email capture', ex: 'a free join page, a squeeze page, a lead magnet', + fit: { pop: ['best', 'Cheap volume for a one-field page'], inpage: ['best', 'Works on every phone, fast decision'], push: ['good', 'Use a short pre-lander first'], native: ['good', 'Pre-sell with a story, then the form'], redirect: ['good', 'Simple page, quick decision'], social: ['good', 'Offer something free and useful'], display: ['weak', 'Low click rates for cold sign-ups'], search: ['weak', 'Few people search for a page they have never heard of'] }, + tip: 'Ask for the email only. Every extra field costs sign-ups. Follow up by email; most people join on a later message.' }, + { key: 'opp', name: 'Crypto or team-build opportunity', ex: 'an on-chain team build, a crypto earning program', + fit: { native: ['good', 'Explain it through your story, check each network\'s crypto rules first'], push: ['good', 'Curiosity hook to a pre-sell or squeeze page, never straight to a buy'], inpage: ['good', 'Same as push'], pop: ['weak', 'Cold and skimming; only to a free squeeze page'], display: ['weak', 'Too much to explain in a banner'], redirect: ['weak', 'No pre-sell'], search: ['avoid', 'Google and Microsoft restrict crypto and income offers'], social: ['avoid', 'Facebook restricts crypto and money-making ads; accounts get banned'] }, + tip: 'Capture the email first and explain by email or video. No income promises in ads or pages; networks reject them and they draw complaints.' }, + { key: 'ads', name: 'Advertising tools and ad credits', ex: 'InstantAdPay, LinkSpin, traffic tools', + fit: { search: ['best', 'People search for "buy website traffic" and "advertise my site"'], push: ['good', '"Free ad credits" is a strong hook'], pop: ['good', 'Send to a free join that gives credits'], inpage: ['good', 'Same as push'], native: ['good', 'A how-I-get-traffic story'], social: ['good', 'Target small business owners and marketers'], display: ['weak', 'Fine for retargeting'], redirect: ['weak', 'Rarely the right audience'] }, + tip: 'Sell the free starting credits, not the plan. "Get your first ads seen free" beats "join my business".' }, + { key: 'games', name: 'Games and play-to-earn', ex: 'browser games, game rewards', + fit: { pop: ['best', 'Gamers click fast; send to the game itself'], inpage: ['best', 'Mobile-heavy, quick tap to play'], push: ['good', 'Short, playful headlines'], social: ['good', 'Short gameplay video'], native: ['weak', 'Readers are not in play mode'], display: ['weak', 'Only with an eye-catching game image'], redirect: ['weak', 'Hit and miss'], search: ['weak', 'Only for the game\'s own name'] }, + tip: 'Land them in the game, not on a sign-up wall. Let them play first and ask for an account when they win something.' }, + { key: 'software', name: 'Software, apps and AI tools', ex: 'an AI writer, a page builder, an app', + fit: { search: ['best', 'High intent: people search for the job the tool does'], native: ['good', 'Review-style or how-to articles'], social: ['good', 'Show the tool working in a short video'], push: ['good', 'A free trial or free tool hook'], inpage: ['good', 'Same as push'], display: ['weak', 'Retargeting only'], pop: ['weak', 'Low attention for a tool that needs a demo'], redirect: ['weak', 'Rarely the right audience'] }, + tip: 'Lead with the free trial or free version and one clear result ("write a week of posts in 5 minutes").' }, + { key: 'info', name: 'Courses and info products', ex: 'a course, an ebook, a coaching program', + fit: { native: ['best', 'Story pre-sell to a free lesson'], social: ['good', 'Free lesson or webinar invite'], search: ['good', 'How-to keywords'], push: ['good', 'Only through a pre-lander'], inpage: ['good', 'Only through a pre-lander'], pop: ['weak', 'Too cold for a paid course'], display: ['weak', 'Retargeting only'], redirect: ['weak', 'No pre-sell'] }, + tip: 'Give a free first lesson for an email, then sell by email. Cold traffic rarely buys a course on the first visit.' }, + { key: 'sweeps', name: 'Giveaways and freebies', ex: 'a contest, a free gift, a spin-to-win', + fit: { pop: ['best', 'The classic pop offer'], push: ['best', '"You could win" headlines work'], inpage: ['best', 'Same as push'], redirect: ['good', 'Quick entry form'], display: ['good', 'A clear prize image'], native: ['weak', 'Pricey clicks for a freebie'], social: ['weak', 'Strict contest rules on social'], search: ['avoid', 'Almost nobody searches for it'] }, + tip: 'Show the prize and the deadline. Keep the entry to one field and say clearly what happens next.' }, + ]; + + // formats each catalog network sells (by catalog key). adult: 'mixed' = big adult inventory with mainstream + // options (pick mainstream / non-adult in the targeting), 'adult' = mostly adult sites. + // strict: mainstream ad policies (crypto, income claims, MLM are restricted or need approval). + const NETWORKS = { + '7search-ppc': { f: ['search', 'display'], note: 'Small search network, cheaper and less strict than Google' }, + activerevenue: { f: ['pop', 'push', 'inpage', 'native'] }, + adskeeper: { f: ['native'], note: 'Native network from the MGID family' }, + adsterra: { f: ['pop', 'inpage', 'display', 'native'], note: 'Social Bar is its in-page push format' }, + bidvertiser: { f: ['pop', 'push', 'native', 'display'] }, + clickadu: { f: ['pop', 'inpage', 'push', 'display'] }, + exoclick: { f: ['pop', 'display', 'native', 'push', 'inpage'], adult: 'mixed' }, + ezmob: { f: ['pop', 'push', 'native', 'display'] }, + facebook: { f: ['social'], strict: true }, + froggyads: { f: ['pop', 'push', 'inpage', 'display'] }, + 'google-adwords': { f: ['search', 'display'], strict: true, note: 'Also YouTube video ads' }, + hilltopads: { f: ['pop', 'inpage', 'display'] }, + mgid: { f: ['native'], strict: true }, + 'microsoft-advertising': { f: ['search'], strict: true, note: 'Bing, Yahoo and partner search' }, + mondiad: { f: ['push', 'inpage', 'native'] }, + mybid: { f: ['pop', 'push', 'native', 'display'] }, + plugrush: { f: ['pop', 'display', 'native'], adult: 'mixed' }, + popads: { f: ['pop'] }, + popcash: { f: ['pop'] }, + propellerads: { f: ['pop', 'push', 'inpage'] }, + pushground: { f: ['push', 'inpage'] }, + reacheffect: { f: ['push', 'pop'] }, + revcontent: { f: ['native'], strict: true }, + taboola: { f: ['native'], strict: true }, + tonic: { f: [], note: 'Mostly a search-monetization partner; confirm what traffic they sell before you spend' }, + trafficjunky: { f: ['display', 'native'], adult: 'adult', note: 'Adult sites; also video pre-roll' }, + trafficshop: { f: ['pop', 'display'], adult: 'mixed' }, + trafficstars: { f: ['pop', 'display', 'native', 'push', 'inpage'], adult: 'mixed' }, + ungads: { f: [], note: 'Check the ad formats in your account' }, + zeropark: { f: ['pop', 'push', 'redirect', 'search'] }, + }; + + const RULES = [ + ['Test small, then scale', 'Start each network with a small daily budget and one offer. Keep what converts, cut what does not, then raise the budget on the winners.'], + ['Track every click', 'Set the network up under Sources so its click id and postback are on the link. Then Reports shows which network, zone and creative actually converts.'], + ['Change one thing at a time', 'New headline or new page or new network, not all three at once, or you will not know what made the difference.'], + ['Block the zones that waste money', 'Pop, push and native networks sell from thousands of sites. After a day or two, block the sites and zones with clicks and no sign-ups.'], + ['No income promises', 'Ads and pages that promise earnings get rejected and draw complaints. Show what the program is and let people decide.'], + ['Mainstream vs adult inventory', 'Networks marked adult-heavy sell a lot of adult traffic. Target their mainstream (non-adult) sites unless your offer fits that audience.'], + ]; + + const fmtName = k => (FORMATS[k] || {}).short || k; + // the formats a source sells, and the offers those formats suit best (for the Sources screen line) + function bestFor(key) { + const n = NETWORKS[key]; if (!n || !n.f.length) return []; + return OFFERS.filter(o => n.f.some(f => o.fit[f] && o.fit[f][0] === 'best') && !(n.strict && o.key === 'opp') && !(n.adult === 'adult' && !['games', 'sweeps'].includes(o.key))).map(o => o.name); + } + return { FORMATS, OFFERS, NETWORKS, RULES, fmtName, bestFor }; +})(); diff --git a/public/assets/traffic-guide.js b/public/assets/traffic-guide.js new file mode 100644 index 0000000..17786c0 --- /dev/null +++ b/public/assets/traffic-guide.js @@ -0,0 +1,52 @@ +// LinkSpin Traffic guide page (2026-10-28): offer picker, the ad formats, the networks, ground rules. +(function () { + const G = window.TRAFFIC_GUIDE, $ = id => document.getElementById(id), esc = CR.esc; + CR.mount({ active: 'sources', crumb: 'Control room · Sources', title: 'Traffic guide', sub: 'which traffic for which offer', actions: '← Sources' }); + let CAT = [], OFF = null, NF = ''; + const nameOf = k => { const c = CAT.find(x => x.key === k); return c ? c.name : k; }; + const ORDER = ['best', 'good', 'weak', 'avoid']; + function tags(k) { + const n = G.NETWORKS[k] || { f: [] }; + return n.f.map(f => '' + esc(G.fmtName(f)) + '').join('') + + (n.adult === 'adult' ? 'adult sites' : n.adult === 'mixed' ? 'adult-heavy' : '') + + (n.strict ? 'strict policy' : ''); + } + function renderOffers() { + $('offers').innerHTML = G.OFFERS.map(o => '').join(''); + $('offers').querySelectorAll('.chip').forEach(b => b.addEventListener('click', () => { OFF = OFF === b.dataset.k ? null : b.dataset.k; try { history.replaceState(null, '', OFF ? '#' + OFF : location.pathname); } catch (e) {} renderOffers(); renderResult(); })); + } + function renderResult() { + const o = G.OFFERS.find(x => x.key === OFF); + if (!o) { $('result').innerHTML = '
Pick one above.
'; return; } + const rows = Object.keys(o.fit).sort((a, b) => ORDER.indexOf(o.fit[a][0]) - ORDER.indexOf(o.fit[b][0])); + const good = rows.filter(f => o.fit[f][0] === 'best' || o.fit[f][0] === 'good'); + // networks that sell at least one best/good format; strict-policy networks are left out for the opportunity offer + const nets = Object.keys(G.NETWORKS).filter(k => { const n = G.NETWORKS[k]; if (n.strict && o.key === 'opp') return false; if (n.adult === 'adult' && !['games', 'sweeps'].includes(o.key)) return false; // adult-only sites suit few offers return n.f.some(f => good.includes(f)); }) + .map(k => ({ k, score: G.NETWORKS[k].f.reduce((s, f) => s + (o.fit[f] ? (o.fit[f][0] === 'best' ? 3 : o.fit[f][0] === 'good' ? 1 : 0) : 0), 0) })) + .sort((a, b) => b.score - a.score || nameOf(a.k).localeCompare(nameOf(b.k))); + $('result').innerHTML = '
' + + rows.map(f => '
' + esc(G.FORMATS[f].name) + '' + o.fit[f][0] + '' + esc(o.fit[f][1]) + '
').join('') + + '
Tip. ' + esc(o.tip) + '
' + + '
Networks that sell those formats
' + nets.map(x => '' + esc(nameOf(x.k)) + '').join('') + '
' + + (o.key === 'opp' ? '
Google, Microsoft, Facebook, Taboola, Revcontent and MGID are left out: their policies restrict crypto and income offers.
' : '') + + '
'; + } + function renderFormats() { + $('fmts').innerHTML = Object.keys(G.FORMATS).map(k => { const f = G.FORMATS[k]; + return '

' + esc(f.name) + '

' + esc(f.what) + '

How you pay: ' + esc(f.buy) + '

Converts: ' + esc(f.wins) + '

Struggles: ' + esc(f.fails) + '

Landing page: ' + esc(f.page) + '

'; }).join(''); + } + function renderNets() { + const fs = Object.keys(G.FORMATS); + $('nfilter').innerHTML = '' + fs.map(f => '').join(''); + $('nfilter').querySelectorAll('.chip').forEach(b => b.addEventListener('click', () => { NF = b.dataset.f; renderNets(); })); + const keys = Array.from(new Set(CAT.map(c => c.key).concat(Object.keys(G.NETWORKS)))).filter(k => !NF || ((G.NETWORKS[k] || {}).f || []).includes(NF)).sort((a, b) => nameOf(a).localeCompare(nameOf(b))); + $('nrows').innerHTML = keys.length ? keys.map(k => { const n = G.NETWORKS[k] || { f: [] }, c = CAT.find(x => x.key === k) || {}, bf = G.bestFor(k); + return '
' + esc(nameOf(k)) + '' + esc(c.site || '') + '
' + (tags(k) || 'check in your account') + '
' + + '
' + (bf.length ? 'Best for: ' + esc(bf.join(', ')) + '. ' : '') + esc(n.note || '') + '
'; }).join('') + : '
No network sells that format.
'; + } + $('rules').innerHTML = G.RULES.map(r => '
' + esc(r[0]) + '' + esc(r[1]) + '
').join(''); + OFF = (location.hash.slice(1) && G.OFFERS.some(o => o.key === location.hash.slice(1))) ? location.hash.slice(1) : null; + renderOffers(); renderResult(); renderFormats(); renderNets(); + CR.get('/api/sources/catalog').then(r => { CAT = r.catalog || []; renderResult(); renderNets(); }).catch(() => {}); +})(); diff --git a/public/sources.html b/public/sources.html index d136287..ec5ca56 100644 --- a/public/sources.html +++ b/public/sources.html @@ -42,6 +42,9 @@ .cat:last-child{border-bottom:0} .cat:hover{background:rgba(31,111,235,.05)} .cat b{display:block} .cat .site{font-family:var(--mono);font-size:11px;color:var(--muted)} .cat .tags{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end} .prev{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:grid;gap:6px;font-size:12px} +.gfor{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12.5px;color:var(--ink-2);background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:8px 12px} +.gfor a{font-weight:700} +.cat .fm{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px} .prev .mono{font-size:11px;overflow-wrap:anywhere} .prev dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 10px;margin:0} .prev dt{font-family:var(--mono);font-size:11px;color:var(--ink-2)} .prev dd{margin:0;font-family:var(--mono);font-size:11px;overflow-wrap:anywhere} @media (max-width:900px){.two{grid-template-columns:1fr}.form{grid-template-columns:1fr}.prm .hd,.log .hd,.pe .hd{display:none}.prm .rw{grid-template-columns:1fr}.log .rw{grid-template-columns:1fr 1fr}.pe .rw{grid-template-columns:1fr 1fr}} @@ -75,6 +78,7 @@
+
@@ -124,6 +128,7 @@
- + + diff --git a/public/traffic-guide.html b/public/traffic-guide.html new file mode 100644 index 0000000..72c819d --- /dev/null +++ b/public/traffic-guide.html @@ -0,0 +1,70 @@ + + + + + + +Traffic guide · LinkSpin + + + + + +
+
+
Every traffic network sells different kinds of ads, and each kind suits some offers far better than others. Pick what you are promoting to see where it tends to convert, or read the formats and networks below. These are starting points from how the formats usually behave; your own Reports are the final word.
+ +
+

What are you promoting?

+
+
+
+ +

The ad formats

+
+ +

The networks

+
+
NetworkSellsNotes
+
Formats change; confirm in your own ad panel. Set a network up under Sources so every click is tracked.
+ +

Ground rules

+
+
+
+ + + + + diff --git a/server.js b/server.js index 2483aa8..44d6b2d 100644 --- a/server.js +++ b/server.js @@ -4103,6 +4103,7 @@ const server = http.createServer(async (req, res) => { if (p === '/pages') return sendFile(res, path.join(PUBLIC_DIR, 'pages.html')); if (p === '/zones') return sendFile(res, path.join(PUBLIC_DIR, 'zones.html')); if (p === '/sources') return sendFile(res, path.join(PUBLIC_DIR, 'sources.html')); // Control Room: traffic sources, network macros + postbacks (2026-10-12) + if (p === '/traffic-guide') return sendFile(res, path.join(PUBLIC_DIR, 'traffic-guide.html')); // which traffic for which offer (Marty 2026-10-28) if (p === '/ads') return sendFile(res, path.join(PUBLIC_DIR, 'ads.html')); if (p === '/team') return sendFile(res, path.join(PUBLIC_DIR, 'team.html')); if (p === '/wallet') return sendFile(res, path.join(PUBLIC_DIR, 'wallet.html'));