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
Go to DollarBack admin β Referral Program.
Click Add Config. A new configuration card appears (labeled Config 1).
Give it an Internal Title, e.g. "Give $10, get 10%". This name is only visible to you in the admin.
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).
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.
Set Who can see the referral program. See Who can see the referral program below.

Who can see the referral program
This decides who sees the referral program in the floating widget and on the loyalty page:
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.
Step 2. Set the referrer reward
Under Referrer Reward, choose what the person doing the referring earns:
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:
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.

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).

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.

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.

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.


Verify it works
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.
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.
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.
Related articles
Last updated