How I built a free newsletter referral system for EmailOctopus in an hour


1. You know how to code a bit. Knowing vanilla Javascript is necessary for later part of the implementation.
2. AWS account
3. EmailOctopus account


  1. Setup EmailOctopus using custom fields
  2. Update EmailOctopus template with {{ID}} merge tags
  3. Get EmailOctopus API key
  4. Setup Serverless with AWS Lambda
  5. Update landing page with click event bound to "Subscribe" button.
  6. Detect referrer id in url params and make AJAX request to Serverless function using the id.
  7. Create a segment with desired referred count >=.
  8. Profit 🤑

Let me know if you have any questions below! And show me some ❤️ by subscribing to my newsletter ARK Watcher (only if you are interested in stocks!)

  1. 1

    V cool, thanks for writing it up too.

  2. 1

    Super awesome write up, and very clear to follow. I'm going to give it a crack after the holidays 👍 Thanks again!

    1. 1

      Glad you found it helpful! Let me know if you have any questions!

Trending on Indie Hackers
How I went from 500€ to 5300€ MRR in one month as a UX coach and indie founder 28 comments How I made $10k teaching vim online in one month 9 comments 💯 USERS 💯 DAYS 7 comments Launch went well. Traffic is falling. Now what? 6 comments Using Twitter questions to build a parallel community 6 comments Can you give me some feedback? 5 comments