Referral wiring
Buttondown-first referral attribution.
This is the implementation checklist for turning the static invite links into auditable referral metadata and a public leaderboard. It is prep only: no subscriber email, reward fulfilment or public leaderboard refresh happens from this page.
Do not publish standings, contact prize winners, send subscriber email or fulfil sponsor rewards until Buttondown attribution is live and the editor approves launch.
Test scenario
direct website signup
URL: /subscribe/?ref=test-direct
Expected metadata: referrer=test-direct, referral_source=subscribe-page, first_seen_path=/subscribe/, signup_region=Brighton and Hove
Pass condition: Internal test subscriber appears in Buttondown with all metadata intact and no public leaderboard change.
Test scenario
share-page signup
URL: /share/?ref=test-share
Expected metadata: referrer=test-share, referral_source=share-page, first_seen_path=/share/, signup_region=Brighton and Hove
Pass condition: Referral code persists from share page to subscribe route and survives Buttondown test submission.
Test scenario
forwarded email or social link
URL: /?ref=test-social
Expected metadata: referrer=test-social, referral_source=landing-page, first_seen_path=/, signup_region=Brighton and Hove
Pass condition: Landing-page referral is stored locally, reused on subscribe, and visible only in private metadata.
Test scenario
no referral code
URL: /subscribe/
Expected metadata: referrer=, referral_source=subscribe-page, first_seen_path=/subscribe/, signup_region=Brighton and Hove
Pass condition: Signup succeeds without inventing a referrer and is excluded from referral scoring until moderation.