Step 1 of 3
Turn on referrals
In the Referrals panel tick Count invites. Every user now has an invite link, {{user.referral_link}}, and an invite count, {{user.referrals}}.
Or start from the Referral program template, which has all of this set up.