Referral codes are unique identifiers that can turn recommendations into trackable, incentivized sales. By assigning a personalized code to a customer or partner, you can turn a recommendation into a successful conversion, making advocacy a quantifiable part of your marketing mix.
Word-of-mouth marketing and referrals can turn social proof into sales. A referral tracking system, with codes issued to customers and advocates, can streamline the process. Laura Thompson, cofounder of the natural skin care brand Three Ships, says on an episode of the Shopify Masters podcast that her team provides referral codes only to content creators who promote the product authentically first. “Once they post, we’ll then set them up with an affiliate code for them to start earning commission,” she says.
Read on to learn about referral codes and how they differ from referral links and generic promo codes. You’ll learn how to design a sustainable incentive structure, automate your rewards using Shopify Flow and the Conjured Referrals apps, and implement a measurement system that proves the return on investment (ROI) of your word-of-mouth efforts.
What are referral codes?
A referral code is a sequence of alphanumeric characters, such as MARIA-567-XYZ or a personalized code like MICHAEL-SHIP. Each code gets assigned to a specific customer or partner within your brand’s referral program. Unlike a generic promo code that you share publicly on a coupon site, a referral code ties back to the referee, whether they share it publicly on social media, a podcast ad, a publication, or via direct messages to their network.
When a new user enters a code at checkout, the system identifies the referrer who shared it, rewarding the active promoters who drive the most value. Brands use referral codes to track customer journeys, identify how customers find them, and understand which channels convert best so they can measure the effectiveness of their customer acquisition efforts.
Referral codes vs. referral links vs. discount codes
These related terms serve different functions in the checkout flow and customer journey:
-
Referral codes. These are alphanumeric characters that shoppers enter manually at checkout. They work well for word-of-mouth campaigns, in-person events, and podcast ads because they’re easy to remember and type into a checkout field later.
-
Referral link. A referral link, also known as a unique link, contains the referral code embedded within a URL. When a user clicks the link, a cookie is placed on their browser that automatically applies the discount at checkout. This creates a seamless user experience where the person doesn’t have to remember a code.
-
Discount codes. All referral codes are discount codes, but not all discount codes are referral codes. A general SUMMER10 code is available to everyone and doesn’t track an individual referrer. A referral code is personalized, allowing the brand to know exactly who is responsible for the first order.
Referral programs may use both links and codes to incentivize customers. The unique link applies the code on the website, while the personalized code remains a backup for users who prefer to share a simple, memorable code.
How referral codes work
Referral codes follow sequential steps designed to capture data:
1. Referral code generation. A customer or creator joins the referral program or a loyalty tier, and the app creates a unique identifier for them to use to promote the business. For example, sock brand Bombas offers listeners of the podcast My Favorite Murder a 20% discount on their first order with the referral code MFM.
2. Distribution of referral code. The referrer shares their personalized code with their friends and community through podcasts, social media, email, text, or in-person conversations.
3. Customer interaction. The new user arrives at the site. They browse, select a product, and check out.
4. Activation of referral code. The user enters the referral code into the promo codes field.
5. Validation. The system checks the code against pre-set rules. Is this a new user? Does the order meet the minimum purchase amount, if applicable?
6. Conversion. If the code is valid, the discount is applied. The new customer completes their first order, and the referral is officially logged.
7. Reward trigger. The system identifies the referrer tied to that unique string and triggers an incentive, such as cash, credit, or exclusive rewards.
By using a referral management system rather than manual tracking, you ensure a seamless user experience where neither the referrer nor the customer has to manually submit a claim for a reward.
How to launch and promote a referral program
- Set goals and KPIs
- Design the incentive structure
- Build the infrastructure in Shopify
- Optimize the user experience
- Establish rules and terms
- Measure referral code performance
Build a referral program on Shopify using the following steps:
1. Set goals and KPIs
Before you create your first code, determine what you want to achieve. Are you looking to lower your investment in paid ads or use referral codes as part of a social media or podcast marketing campaign? Common key performance indicators (KPIs) include the referral participation rate—how many people share their unique link—and the conversion rates of referred leads compared to other channels.
2. Design the incentive structure
The incentive should be double-sided, meaning both the referrer and the referred friend receive a benefit. This removes the social tax of a friend feeling like they are profiting off their peers. The skin care brand Jaxon Lane, for example, has a loyalty program where customers accrue points when successfully referring friends. This system turns referrals into a form of currency within the site.
3. Build the infrastructure in Shopify
You can create a referral program on Shopify by using the following features:
-
Discount codes. Use this feature to manage and create unique referral discount codes directly in the Shopify admin.
-
Conjured Referrals app. Alternatively, you can use Shopify’s referrals app to create customizable referral programs. The app allows for automatic tracking and Shopify Flow integration to track referrals and deliver rewards automatically.
-
Shopify Flow. Use Shopify Flow to automate reward messages. You can set up triggers so that once a referred friend completes a purchase, the original referrer instantly receives a message with their store credit or cash reward.
4. Optimize the user experience
Ensure that your referral user experience is easy for all parties to follow. For example, keep personalized codes easy to remember or copy and test that any unique links you generate work across all devices. Use QR codes on physical packaging or post-purchase cards to incentivize customers to join the program when they are most aware and excited about their purchase.
5. Establish rules and terms
To prevent fraud and create a sustainable system, set clear rules. Common constraints include “one referral per family member or address” or “reward only applies to a first order over $50.” Being transparent about these rules helps maintain a healthy community of users.
6. Measure referral code performance
Use Shopify’s reporting tools to understand the ROI of your referral efforts. Track the velocity of your identifiers and ask, how quickly are they being shared?
Monitor the lifetime value (LTV) of referred customers. Do referred friends stay with a company longer because they were introduced by a trusted person? Compare the money spent on incentives against what you would have spent on Facebook ads to reach the same customer. If the conversion rates are higher and the success is repeatable, you’ve found a sustainable path to growth that doesn’t rely on a massive ad investment.
Referral codes FAQ
What is an example of a referral code?
An example of a personalized code is ALEX-15. ALEX represents the referrer, and 15 represents the 15% discount the referred friend receives at checkout. Some brands use a unique string like REF-992-X to prevent users from guessing promo codes.
How does a referral code work?
A referral code functions as a digital tracking system. When the user enters the code at checkout, the app or Shopify’s system validates the unique identifier, applies the discount, and then uses Shopify Flow to trigger the rewards for the original referrer.
How do I create a referral code?
To create a referral code using the Shopify admin, go to Discounts and create a new discount. To do this at scale, use an app like Conjured Referrals, which will create a unique identifier for every customer who joins your loyalty program, providing them with a personalized link and code they can share instantly.




