Uber's signup page lets you enter a friend's invite code so they can be opted into receiving a referral award. Referral award policies, requirements, and amounts will vary by city.
When you sign up directly from an email or text message/SMS invite, your friend's invite code is automatically applied. Click the link in your invite to sign up.