Skip to main content

Overview

The Thank You page (Order Status page) is the highest-converting placement for referral prompts — customers are happiest right after a purchase. This recipe walks you through setting up a campaign that captures that moment with a referral widget and an automated WhatsApp message. What you’ll build: Time to complete: ~10 minutes

Steps

1

Create Your Campaign

Go to Apps → Referbro → Campaign Settings and configure:
FieldRecommended Value
Campaign NameThank You Page Referral
Discount StrategyFixed Amount
Discount Amount150 (₹150 off for the friend)
Minimum Subtotal0 (no minimum)
Referrer Reward150
Referrer Reward TypeCashback
Reward Return Period7 days
Why Fixed Amount? For Thank You page campaigns, fixed discounts feel more tangible and are easier for referrers to communicate — “Get ₹150 off!” vs “Get some % off.”
Configure the widget text for the Thank You page context:
FieldExample
First Line₹150 off for your friends
Second Line₹150 in your pocket
Share MessageLoved my purchase! Use my link for ₹150 off your first order 👇
Click Save.
2

Add the Widget to the Thank You Page

  1. Go to Shopify Admin → Settings → Checkout → Customize (or Online Store → Themes → Customize → select the Checkout page).
  2. Navigate to the Thank You page.
  3. Add the Referbro Widget block.
  4. Click Save.
Also add the widget to the Order Status page — customers who return to check their order will see the referral prompt again.
3

Set Up the Post-Purchase WhatsApp Message

This sends an automated WhatsApp message right after the order, reinforcing the Thank You page prompt.
  1. Go to Apps → Referbro → WhatsApp Settings.
  2. Find the Post-Purchase Nudge template slot (orderConfig).
  3. Enter your approved template ID and parameters:
{
  "body.1": "Thanks for your order! Share your link and your friends get ₹150 OFF 👇",
  "body.2": "{{REFERRAL_LINK}}&source=order",
  "languageCode": "en",
  "button.url.0.1": "{{REFERRAL_CODE}}&source=order_cta"
}
  1. Toggle the template to Enabled.
You must create and get this template approved on your WhatsApp provider before mapping it here. See the Provider Setup Guide for instructions.
4

Test the Flow

  1. Place a test order on your store.
  2. On the Thank You page, verify:
    • The Referbro widget appears with your referral code
    • Clicking “Share on WhatsApp” opens a pre-filled message
  3. Check your phone — you should receive the Post-Purchase WhatsApp message.
  4. Go to Apps → Referbro → Analytics and confirm:
    • A LINK_GENERATED event appears
    • A WHATSAPP_SENT event appears (if WhatsApp is configured)

Best Practices

  • Keep the message short — The Thank You page already shows the widget, so the WhatsApp message is a reinforcement, not the primary touchpoint.
  • Use the Allow Without Code option — Enable this in Campaign Settings so referrers earn rewards even if their friend forgets to apply the discount code at checkout. The referral link tracking is usually sufficient.
  • Add an expiry feel — Use language like “Share in the next 24 hours” (even if there’s no actual expiry) to create urgency.