For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set up your referral program

This article's section starts at 0:00 in the video.

By the end of this guide you'll have a live referral program: existing customers get a shareable code, their friends get a discount at checkout, and the referrer earns store credit when the friend's order comes through.

Prerequisites

  • DollarBack is installed and your storefront widgets are active. Customers see their referral code inside the floating widget, their account pages, and the loyalty page, so at least one of those surfaces should be live. See How customers share referral links.

  • You don't need any cashback program running; referrals work on their own.

Step 1. Create your first config

  1. Go to DollarBack admin β†’ Referral Program.

  2. Click Add Config. A new configuration card appears (labeled Config 1).

  3. Give it an Internal Title, e.g. "Give $10, get 10%". This name is only visible to you in the admin.

  4. Set a Code Prefix of up to 5 characters (e.g. REF). Every customer's referral code starts with this prefix, followed by random letters and digits, 15 characters in all (e.g. REFA7K2Q9XM4TB1).

  1. Leave Customer Tags empty for your first config. Tags are how you target a config at a specific group of referrers (say, VIPs). A config with no tags is the fallback: it applies to every customer that no tagged config matches. See Run multiple referral configs.

  2. Set Who can see the referral program. See Who can see the referral program below.

Expanded referral config VIP with Internal Title, Who can see the referral program set to Logged-in customers, a greyed-out Code Prefix VIP, and Customer Tags with 1 selected.
Open a config to set its name, who sees it, the code prefix and the customer tags.

Who can see the referral program

This decides who sees the referral program in the floating widget and on the loyalty page:

Option
Shown to

Everyone

All shoppers. Guests see the program with a prompt to sign in, because a referral link belongs to a customer account.

Logged-in customers (default)

Only shoppers signed in to a customer account

A customer who already has a referral code from this config always sees their own program, whatever this setting says.

Visibility controls what shoppers see in the widgets. It doesn't change who can use a referral code: a friend's code works at checkout whatever this setting says.

Step 2. Set the referrer reward

Under Referrer Reward, choose what the person doing the referring earns:

Field
Options
Example

Cashback Type

Percentage of Order Β· Fixed Amount

Percentage of Order

Cashback Value

Number

10 (%)

The referrer is always paid in store credit: Shopify-native credit they can spend at checkout. For a "Give $10, get 10%" program, this side is the "get 10%".

Step 3. Set the referee discount

Under Referee Discount, choose what the referred friend gets when they use the code:

Field
Options
Example

Discount Type

Percentage of Order Β· Fixed Amount

Fixed Amount

Discount Value

Number

10 ($)

Minimum Order Value

Number

30 ($)

The referee's reward is a discount code applied at checkout, the same code the referrer shares. The Minimum Order Value is the smallest order the code will work on.

Referrer Reward with Cashback Type Fixed Amount and Cashback Value $10, and Referee Discount with Discount Type Fixed Amount, Discount Value $10 and Minimum Order Value $35.
The referrer earns store credit. The friend gets a discount at checkout when the order reaches the minimum.

Step 4. Set conditions and limits

Under Usage Limits:

  • Allow discounts for new customers only: on for a classic refer-a-friend program; existing customers can't use a referral code on their own account.

  • Maximum discount code uses per referee: how many times one referred customer can use the discount. Set to 1 for first-order-only. Only orders that earned the referrer a reward count as uses.

  • Referrer reward expires: Never, After a number of days (counted from when the reward is issued), or On a date (one date and time, in your store's time zone, for every reward this config issues).

Usage Limits section with the Allow discounts for new customers only switch off, a uses field set to 1 and Referrer reward expires set to Never.
Usage limits decide who can use the code, how often, and how long the referrer's credit lasts.

Each condition is covered in depth, with pass/fail examples, in Referral conditions & limits.

Step 5. Check the combination rules

The Combination Rules section controls which other discounts the referral discount can stack with at checkout: Product Discounts, Shipping Discounts, Order Discounts. These toggles apply to all referral configs, not just this one.

Combination Rules card with Product Discounts, Shipping Discounts and Order Discounts switched on.
Combination Rules apply to every referral config at once.

Step 6. Switch the config on

A new config starts Disabled (the badge next to its title). Click the switch at the top right of the config card so the badge reads Enabled.

New referral config Config 3 with a yellow Disabled badge, its switch off, an empty Code Prefix field and the note Code prefix cannot be changed once the config is saved.
A new config shows a Disabled badge until you turn on its switch. The Code Prefix takes up to 5 characters and locks when you save.

Step 7. Save and let code generation run

Save the config. You'll see Referral settings saved successfully and then Code generation queued successfully!. DollarBack now generates a referral code for every eligible customer and attaches the whole batch to a shared Shopify discount. While this runs you'll see a Bulk Operation in Progress banner ("Referral codes are being generated. Please wait until the operation completes before making changes.") and the editor is locked.

This is expected: the codes are written to Shopify in bulk, and editing the config mid-generation would leave half the codes on old rules. On large customer bases it can take several minutes. You'll see a "Bulk operation completed successfully" toast when it's done. Details in Referral codes & bulk sync.

What customers see

Once the codes are generated, a signed-in customer finds their code in the floating widget, and a friend who uses it gets the referee discount at checkout.

Floating widget Referral tab with the text Refer a friend and earn cashback when they make a purchase, You get $5.00 and They get $5.00, the customer's referral code with a copy button, and Share this code with friends to earn rewards.
Your customers see both sides of the offer and their own code, with a copy button, in the widget's Referral tab.
Checkout order summary with the referral code ALLJRCC1MPAKQBH applied, an Order discount line of βˆ’$5.00 on a $62.00 subtotal, and a total of $65.00.
When a friend opens a referral link, the code is already applied at checkout and the referee discount shows as an order discount.

Verify it works

  1. On your storefront, sign in as a test customer and open the floating widget or account page. A referral code with your prefix should be visible.

  2. In an incognito window, add $30+ of product to the cart (to clear the minimum order value) and apply the code at checkout as a brand-new customer. The referee discount should apply.

  3. Complete the order. When it reaches your Give cashback when trigger (Settings β†’ Trigger & Timing), the referrer's store credit lands and the order appears in DollarBack admin β†’ Analytics β†’ Activity β†’ Referrals.

Common issues

  • The code doesn't apply at checkout β†’ check that the config is Enabled, then the minimum order value and the new-customers-only toggle; see A referral wasn't tracked.

  • The referrer got no credit even though the discount applied β†’ the order may not have reached your trigger yet, or it was paid with store credit or gift cards (see Special Order Types in Settings); see How referral rewards are calculated & tracked.

  • No referral code shows on the storefront β†’ generation may still be running, or the widget isn't active; see A widget isn't showing on my store.

Last updated