A referral code is a traceable discount code (sometimes in the form of a vanity code ) that ties a transaction to the customer or brand advocate. An advantage of referral codes is that they can incentivize true word-of-mouth advertising especially if they are not single-use codes . A referral code is a unique code that customers can share with their friends and family to get rewards for referring your business. Learn how to create, share, and track referral codes with this guide and see examples of companies using them. Learn what a referral code is, how it works, and why you need one for your referral program. See examples of referral codes from different brands and how to create and distribute them. Referral code A referral code is a unique identifier used in analytics to attribute conversions or sign-ups to specific referrers via tracked links. Definition and Purpose This section explains what a referral code is and why it’s used in analytics.