Referral Code

Home > Blog > What Is a Referral Code? How It Works and Examples.

Reading Time: 16 min

What Is a Referral Code? How It Works and Examples.

A referral code is a unique alphanumeric identifier assigned to a customer, affiliate, influencer, employee, or business partner. When a new user enters the code during registration or checkout, the business can connect that conversion to the person or campaign that generated the referral.

A referral code helps businesses attribute conversions, validate rewards, and measure the performance of referral campaigns. Depending on the programme, the code may reward the referrer, give the referred customer a benefit, or provide incentives to both.

A referral code is not always the same as a discount or promo code. Its primary purpose is to identify the source of a referral. A promo code is primarily used to apply a discount or offer. However, one code can perform both functions when it is linked to a specific referrer and also gives the customer a discount.

For example, a brand can assign a unique code to an influencer. When a customer enters that code during checkout, the brand can attribute the order to the influencer, apply any eligible discount, and calculate the corresponding commission or reward.

Benefits of Referral Codes

Benefits of Referral Codes

Referral codes help businesses attribute referred conversions, manage rewards, and understand which customers, affiliates, influencers, or partners are contributing to programme performance.

  • Accurate Attribution: A referral code connects a conversion to a particular referrer, partner, or campaign. This is especially useful when the customer does not click a digital tracking link before converting.
  • Simpler Performance Measurement: Businesses can compare code usage, approved conversions, revenue, rewards, and conversion rates across different referrers or campaigns.
  • Performance-Based Rewards: Referral programmes can link commissions, account credits, discounts, or other rewards to validated actions such as a completed purchase, approved lead, or qualified signup.
  • Offline and Cross-Channel Tracking: Codes can be shared through videos, podcasts, events, print materials, word of mouth, and other channels where clicking a referral link may not be practical.
  • Better Partner Management: Unique codes make it easier to identify productive affiliates, influencers, customers, and other referral partners and calculate the rewards assigned to them.
  • Controlled Campaign Scaling: Businesses can assign different codes, validity periods, eligibility rules, usage limits, and reward structures as the programme expands.

How Does a Referral Code Work?

A referral code works by connecting a customer action to a predefined referrer or campaign. The code is stored against a customer, affiliate, influencer, or partner in the business’s referral or performance-marketing system. When the code is submitted during signup, checkout, or another qualifying action, the system uses it to attribute the conversion and determine whether a reward should be approved.

Example: If you are an e-commerce brand that is running an affiliate program, you provide a unique referral code to your affiliates like “AFF465”, so that they can share it with their potential customers.

Here is how it works:

  • Referral Process: Your affiliate (David) shares his referral code “AFF465” in his YouTube video. He might also share a direct referral link in the video description for users who prefer clicking over typing.
  • Customer Action: David’s potential customer (viewer), Harry, sees David’s YouTube video and uses the code “AFF465” when purchasing a product on your e-commerce site. Alternatively, he could click the referral link to visit the store directly.
  • Tracking and Attribution: Your system or a performance marketing software tracks the purchase and attributes it to David because Harry used his invite code during checkout or arrived via the unique referral link.
  • Rewards: After the conversion, David earns a commission based on the terms of your affiliate program.

Referral Code vs Promo Code: What Is the Difference?

Referral codes and promo codes can look similar, but they are created for different primary purposes.

A referral code identifies who or what generated a referral, while a promo code primarily gives a customer a discount or another promotional benefit.

FeatureReferral CodePromo Code
Primary purposeAttribute a referral to a customer, affiliate, influencer, partner, or campaignApply a discount, free trial, account credit, or another offer
Code assignmentOften assigned to a specific referrer or partnerMay be public, campaign-specific, or assigned to an individual
Referrer identificationUsually mapped to a known referrerDoes not necessarily identify a referrer
Customer benefitMay or may not include a discountUsually provides a direct promotional benefit
Referrer benefitMay trigger commission, cash, credit, points, or another rewardUsually does not reward a referrer unless linked to a referral programme
Common channelsCustomer referrals, influencer campaigns, affiliate programmes, employee referrals, offline promotionsSeasonal sales, product launches, email campaigns, paid advertising, checkout promotions
MeasurementTracks referred signups, purchases, revenue, rewards, and partner performanceTracks redemptions, discount usage, order value, and promotional performance

A code can function as both a referral code and a promo code. This happens when it identifies the referrer while also applying a benefit for the new customer.

Referral codes and referral links both help identify the source of a conversion, but the customer journey is different. A referral code must usually be entered during signup or checkout. A referral link records the source when the user clicks it, using the tracking configuration implemented by the business, such as a click identifier, cookie, pixel, or server-side attribution process.

Real-World Referral Code Examples

Referral programmes use different qualification rules and reward structures.

The following examples show how established brands use referral or invite codes in practice.

1. Google Workspace Referral Programme

The Google Workspace Referral Programme gives participants a unique referral link and individual promotional codes. The referrer receives a cash reward when an eligible new customer subscribes, while the promotional code gives the referred customer savings during the first year.

In India, Google currently lists rewards of USD 2 per eligible Business Starter user, USD 9 per Business Standard user, and USD 17 per Business Plus user. Google’s published example shows that referring one Business Plus account with ten eligible users would generate a USD 170 reward. Rates and eligibility vary by country.

Key Takeaway: A referral mechanism can combine source attribution, a referrer reward, and a customer-facing promotional benefit without treating all three as the same function.

2. Uber Refer-a-Friend Programme

Under Uber’s Refer-a-Friend Programme, eligible customers receive a referral code that they can share with a new user. The new user must add the code before requesting a trip and complete their first eligible trip. Once the qualifying action is completed, the applicable referral reward is added to the referrer’s Uber account.

The programme is offered on a limited-time and eligibility-based basis, and Uber directs users to the programme communication for the applicable reward and deadline.

Key Takeaway: The reward should be connected to a meaningful qualifying action, such as the first completed transaction, rather than registration alone.

3. Revolut Kids & Teens Referrals

The Revolut Kids & Teens referral programme allows eligible users to copy and share a personal invite code. The invited friend enters the code after signing up and completes the actions specified in the app. Both participants may receive rewards, and the referrer can monitor the invited user’s progress.

Revolut states that rewards may take up to five business days to be issued. Eligibility, minimum age, reward amount and referral limits vary by country and active campaign.

Key Takeaway: A visible progress tracker can make multi-step referral requirements clearer and reduce uncertainty about whether the reward has been earned.

How to Generate Referral Codes on Trackier?

When businesses partner with an affiliate or influencer, they generate unique codes to track conversions.

Trackier’s Coupon Tracking feature helps businesses attribute conversions generated through referral, coupon, or promotional codes. Codes can be connected to specific campaigns and publishers, allowing a conversion to be recorded even when the customer does not click an affiliate tracking link.

Trackier currently supports three code configurations:

  • Generic Codes: These codes can be used across multiple publishers. The publisher must use a Trackier tracking link for the conversion to be attributed correctly.
  • Exclusive Codes: These codes are assigned to a particular publisher. Conversions can be attributed to that publisher even when the customer reaches the advertiser’s website without using a Trackier tracking link.
  • Unique Codes: These work like exclusive codes but can be used for only one successful conversion. They are suitable for one-time referral rewards, personalised promotions, and VIP campaigns.

Codes can be configured under the Coupon Codes section of a campaign. Businesses can define the campaign, code type, publisher permissions, start date, end date, status, description, and any applicable payout.

For programmes that use a large number of codes, Trackier also supports bulk CSV imports. Conversions can be sent through a server-to-server postback, an iframe or image pixel, or the Trackier Web SDK using the coupon-code parameter. Coupon-generated conversions can then be reviewed through the conversion report.

How to Set Up a Referral Program?

How to Set Up a Referral Program?

A referral programme needs clear eligibility, attribution, reward, and validation rules.

Use the following process to build a programme that customers and partners can understand.

1. Define the Qualifying Action

Decide what a referred user must do before the referral is considered successful. Depending on the business, this may be a completed purchase, approved subscription, qualified lead, app installation, or first completed transaction.

Avoid rewarding registrations alone when they do not represent genuine customer value. Clearly define how cancellations, refunds, duplicate accounts, and failed payments will affect eligibility.

2. Choose Who Can Participate

Specify whether the programme is available to existing customers, affiliates, influencers, employees, business partners, or a combination of groups. Each participant should receive a code or identifier that can be connected to their account.

Also define any geographic, age, product, customer-status, or account restrictions before launching the programme.

3. Select the Reward Structure

Choose whether the programme will reward:

  • Only the referrer
  • Only the referred customer
  • Both the referrer and the referred customer

Rewards may include cash, account credit, discounts, loyalty points, free products, additional storage, or service upgrades. The value should be commercially sustainable after accounting for gross margin, average order value, returns, fraud risk, and customer lifetime value.

4. Choose the Appropriate Code Type

Use an exclusive code when every conversion should be attributed to one specific referrer. Use a one-time unique code when each code should generate only one approved conversion. A generic code is more suitable for a broad promotion, but it may not identify an individual referrer unless it is combined with another tracking method.

5. Set Attribution and Validation Rules

Define:

  • When the code must be entered
  • Whether a referral link can also be used
  • Which source receives credit when a link and code identify different partners
  • How long the code remains valid
  • Whether existing customers are eligible
  • Whether codes can be combined with other offers
  • How returns and cancellations are handled
  • When rewards move from pending to approved
  • How self-referrals and duplicate accounts are treated

6. Configure and Test the Tracking

Connect each code to the correct referrer, partner, or campaign. Test the full journey from code entry through conversion recording, validation, reporting, and reward approval.

Testing should include invalid codes, expired codes, duplicate usage, cancelled orders, conflicting attribution sources, and conversions completed without a tracking-link click.

7. Promote and Measure the Programme

Promote the referral programme through the channels already used by eligible participants, such as email, account dashboards, mobile apps, social media, post-purchase pages, and customer-support communication.

Monitor code usage, referred conversions, approval rate, conversion rate, revenue, reward cost, cancellations, repeat purchases, and suspicious activity. Use this data to improve the reward, eligibility rules, messaging, and programme experience.

How to Promote Your Referral Program?

To promote your referral program, you need a combination of strategic communication, the best offers in the industry, and various marketing channels.

1. Clear Value Proposition

Make sure you make a transparent offer that is beneficial for both a referrer and a referee, whether it is a discount, cash reward, or exclusive product. Keep your referral process simple and easy to follow, and avoid complicated rules.

2. Use Multiple Channels for Promotion

You can use a website, landing pages, email marketing, social media, and blogs to promote your referral program. Let’s see how it works:

  • Website & Landing Pages: You can feature your referral program on your website and landing page homepage, product pages, and checkout pages to explain how your program works, its benefits, and how it is differentiated from others.
  • Email Marketing: If you already have some customers, you can send them targeted emails, showing your referral program. Use a clear and concise subject line like “Earn rewards for spreading the word” or “Get $25 for referring a friend.”
  • Social Media: Social platforms can help customers, affiliates, and influencers share referral offers with their existing audiences. According to Statista’s April 2026 digital population data, there were approximately 5.79 billion social media user identities worldwide. Focus on the platforms your customers already use, and provide clear programme terms, approved creative, and an easy way to copy the referral code or link.
  • Blog Posts & Content Marketing: You can write articles on “Why [Your Brand] referral program is the best”.
  • SMS/Push Notifications: If you have an app, or a customer base, that uses SMS as a communication channel, you can send small and catchy messages about the referral offer.

3. Use Influencers

You can reach out to the micro and macro influencers in your niche to promote your referral program to their audience. They can write about it or share referral codes for their followers on their social media handles.

4. Provide a Limited-Time Offer

You can create an urgency and scarcity about your referral program like “Refer today and get 3x reward”. Use seasonal promotions like creating a post about your referral programs related to a particular event, holiday, or special occasion like “Refer your friend during our Black Friday Sale and earn 2x rewards”.

5. Simplify the Process

Make sure to have an easy process where your referral can easily share your referral links or codes via email, text, or social media so that their customers can click and complete the purchase. Trackier helps you to track your referral automatically, so both the referrer and the referee do not need to worry about it.

6. Highlight Social Proof

Show testimonials of your affiliates who already have benefited from your affiliate program. Social proof encourages other super affiliates to join your program. Show how many affiliates referred others or show the total commission you have given out.

7. Track & Optimize

Regularly check your referral program performance, and look at important metrics such as conversion rates, number of sign-ups, and referral-generated revenue with performance marketing software. With Trackier, you can experiment with different messages, incentives, and promotion strategies to see what your future affiliates resonate.


Promote Your Referral Program Easily with Trackier!


Conclusion

In conclusion, referral codes are an effective way to boost your sales, increase brand visibility, and build customer loyalty. By assigning unique referral codes to affiliates and influencers, brands can track their performance, reward top referrers, and optimize marketing efforts.

For your referral program, Trackier helps to enhance your affiliates tracking, fraud prevention, and marketing analytics to ensure maximum ROI.

FAQs

1. Can a referral code be used offline?

Yes, a referral code can absolutely be used in offline campaigns. You can include a unique referral code on print ads, posters, business cards, flyers, event banners, product packaging, or even share it verbally during word-of-mouth promotions.
When potential customers see your offline ad and decide to buy, they can manually enter the referral code at checkout whether online or in-store to claim their rewards or discounts. This allows you to track which offline sources are driving conversions and makes your referral marketing measurable beyond just digital channels.

2. How can I generate a referral code for my business?

A referral code can be created through your ecommerce platform, customer account system, referral-programme software, or another system responsible for issuing customer or partner identifiers.

Before creating codes, decide whether they will be generic, exclusive to one referrer, or limited to one use. Each code should be connected to the correct participant and campaign, along with its validity period, reward rules, usage limits, and status.

Trackier can be used to configure and attribute eligible coupon or referral-code conversions after the code has been supplied by the advertiser. Its current Coupon Tracking feature supports generic, exclusive, and one-time unique code configurations.

3. Is a referral code effective for scaling my business?

Referral codes can make a referral programme easier to measure because they connect qualifying conversions to specific customers, affiliates, influencers, or partners. They are particularly useful in offline, video, podcast, influencer, and word-of-mouth journeys where a user may not click a referral link.
Their effectiveness depends on the product, reward economics, customer satisfaction, programme visibility, eligibility rules, tracking accuracy, and quality of the referred customers. A referral code does not guarantee lower acquisition costs or higher conversion rates, so results should be assessed using approved conversions, revenue, reward cost, retention, and customer value.

4. Can referral codes be combined with other discount offers?

This depends entirely on your campaign settings. Many businesses restrict “stacking” to protect profit margins, while others allow it to maximize conversion rates. Using performance software like Trackier, you can set specific rules that determine whether a referral code functions as a standalone incentive or stacks with seasonal site-wide sales.

5. How do I prevent referral code fraud and self-referrals?

Start with clear rules that prohibit self-referrals, duplicate accounts, fabricated transactions, unauthorised code distribution, and incentive stacking. Validate new-customer status and hold rewards until the qualifying purchase or action has passed the applicable cancellation, return, or verification period.

Businesses may also review repeated account details, payment methods, devices, contact information, addresses, IP patterns, unusually high code usage, and rapid transaction activity, subject to applicable privacy and data-protection requirements.

Codes should have appropriate start dates, end dates, usage limits, publisher permissions, and status controls. Suspicious referrals should be reviewed before rewards are approved rather than automatically rejected using one signal alone.

6. What is the ideal reward for a referral program?

There is no universal ideal reward. The appropriate value depends on gross margin, average order value, purchase frequency, customer lifetime value, expected return rate, existing acquisition cost, and the effort required to complete the qualifying action.

Test a small number of commercially sustainable reward options and compare participation, approved referral rate, conversion rate, reward cost, repeat purchases, and incremental revenue. The reward should be valuable enough to motivate participation without making the programme unprofitable.

7. How long should a referral code remain active?

There is no standard validity period that applies to every referral programme. The duration should reflect the customer’s buying cycle, the length of the campaign, the referrer’s agreement, and the time needed to complete and validate the qualifying action.

Evergreen customer-referral programmes may keep codes active while the participant remains eligible. Influencer or campaign-specific codes may use defined start and end dates. The programme terms should state when the code expires and whether pending conversions can still qualify after the promotional period ends.

Remove the existing claim that a 30-to-90-day period is standard for influencer campaigns. The current article provides no authoritative source for that range, and programme durations differ materially by contract and conversion cycle.

Nandini Pathak
Content marketer and strategist crafting SEO-led stories, product messaging, and lifecycle content that builds brand authority and drives B2B SaaS growth.
Share Now

More to Explore

B2B Referral Program

7 Smart Steps to Build a B2B Referral Program That Works

Alright, marketers listen up. If you’re running a B2B company, agency, SaaS startup, or enterprise setup, we have some news for you: a B2B referral program can ABSOLUTELY make a world of difference when it comes to your lead-gen efforts. And if you’re already running partner programs or affiliate campaigns,

Referral Marketing Examples

12 Leading Referral Marketing Examples That Will Help You Cut Your CAC in Half

Marketers everywhere are asking one big question in 2025: how do we grow without overspending on ads?  Real referral marketing examples give us the answer. A smartly designed referral program doesn’t just cut acquisition costs, it builds trust and loyalty at the same time. And when coupled with the right

Growth Marketing Strategy

Growth Marketing Strategy: Frameworks, Examples, and Tactics

A growth marketing strategy focuses on building repeatable systems that help businesses grow consistently. Instead of running isolated campaigns, teams look at the entire customer journey and improve each stage with testing, data, and iteration. The goal is steady progress, not one-time spikes. Unlike traditional marketing plans that often stop