metadata__referral_source
Incoming subscribe URL ?ref= token
Never displayed raw; used only to attribute a confirmed subscriber to an inviter.
Referral wiring
This is the implementation bridge for MY-2571 and MY-2577: static invite links, Buttondown metadata, private review, then a safe public leaderboard artifact.
Internal prep only: no webhook, subscriber email, reward fulfilment, public leaderboard refresh or sponsor-backed prize is triggered from this static page.
Metadata contract
metadata__referral_source
Never displayed raw; used only to attribute a confirmed subscriber to an inviter.
metadata__reader_token
Can be mapped to an approved display name after opt-in.
metadata__signup_market
Market filter for multi-newsletter dashboards.
tag
Operational filter only; never shown to readers.
Manual refresh sequence
Use Buttondown confirmed subscriber data only after credentials and approval exist; never commit raw exports or private emails.
Deduplicate by subscriber email and reader token, then review same-IP clusters, disposable domains and suspicious bursts before publishing.
Update only /leaderboard/leaderboard.json with initials, area labels, confirmed counts and reward tiers after manual approval.
Publication gates
Export or webhook source must include only confirmed Buttondown subscribers.
Referral counts must be deduplicated by subscriber email and reader token before any ranking is shown.
Public display names must use initials, explicit opt-in names or area labels; never raw emails.
Prize eligibility must be reviewed manually before any sponsor-backed draw is announced.
Leaderboard JSON must be generated as a static artifact; no private subscriber API response is exposed client-side.