Join page records the ?src= tag in the first-touch source (Marty 2026-11-12: 'we need the source tag so we can know where these things come from'): joinedRef = <referrer host>/<src> or just <src> when the referrer was stripped; a tagged visit replaces an untagged 'direct' first touch; a real earlier source is kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (PolHunter/Drip Runner arrivals stay untagged for the bounty proof.)
This commit is contained in:
@@ -2378,9 +2378,15 @@ const server = http.createServer(async (req, res) => {
|
||||
// pays a referral bounty only for people it actually sent, so that proof has to be reliable
|
||||
// rather than dependent on a header (Marty, 2026-09-24: "not just members that come on board
|
||||
// IAP and work their way over to POL Hunter").
|
||||
if (!cookies['iap.ref']) {
|
||||
// A ?src= tag on the link (every mailer / traffic-source spin link carries one) is recorded with the host, so a sign-up
|
||||
// says "mailer.gold/mailergold" or just "mailergold" when the referrer was stripped, and a tagged visit replaces an
|
||||
// untagged "direct" first touch (Marty, 2026-11-12: "we need the source tag so we can know where these things come from").
|
||||
const srcTag = String(u.searchParams.get('src') || '').toLowerCase().replace(/[^a-z0-9_.-]/g, '').slice(0, 30);
|
||||
const prevRef = decodeURIComponent(cookies['iap.ref'] || '');
|
||||
if (!prevRef || (srcTag && prevRef === 'direct')) {
|
||||
const host = u.searchParams.get('from') === 'polhunter' ? 'polhunter.com' : u.searchParams.get('from') === 'driprunner' ? 'driprunner.saasy.top' : coach.refHost(req.headers.referer);
|
||||
set.push('iap.ref=' + encodeURIComponent(host) + cookieTail);
|
||||
const fromGame = /^(polhunter|driprunner)$/.test(String(u.searchParams.get('from') || '')); // PolHunter's bounty proof reads the bare host: never tag it
|
||||
set.push('iap.ref=' + encodeURIComponent(srcTag && !fromGame ? (host && host !== 'direct' ? host + '/' : '') + srcTag : host) + cookieTail);
|
||||
}
|
||||
return serveJoinPage(res, tok, ang ? angle : '', ang, set);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user