📖 Scenario: You work for a company launching a new referral program to encourage customers to invite friends. The program rewards both the referrer and the friend with discounts.Your task is to build a simple step-by-step plan that outlines how the referral program works, including tracking referrals, setting reward thresholds, and finalizing the reward distribution.
🎯 Goal: Create a clear, structured outline of the referral program mechanics that can be used by the marketing team to implement and explain the program.
📋 What You'll Learn
Define the initial data structure to hold customer referrals
Add a configuration variable for the minimum number of referrals needed for a reward
Apply the core logic to identify customers who qualify for rewards
Complete the plan by specifying how rewards are assigned
💡 Why This Matters
🌍 Real World
Referral programs are common marketing strategies to grow customer base by rewarding existing customers for bringing in new ones.
💼 Career
Understanding referral program mechanics helps marketing professionals design effective campaigns and track their success.
Progress0 / 4 steps
1
DATA SETUP: Create the referral data structure
Create a dictionary called referrals with these exact entries: 'Alice': 3, 'Bob': 1, 'Charlie': 5, representing the number of friends each customer referred.
Digital Marketing
Hint
Use a Python dictionary with customer names as keys and referral counts as values.
2
CONFIGURATION: Set the referral reward threshold
Create a variable called reward_threshold and set it to 3, representing the minimum referrals needed to earn a reward.
Digital Marketing
Hint
This variable helps decide who qualifies for rewards.
3
CORE LOGIC: Identify customers who qualify for rewards
Create a list called qualified_customers that includes the names of customers from referrals who have referred at least reward_threshold friends. Use a for loop with variables customer and count to iterate over referrals.items().
Digital Marketing
Hint
Use a for loop to check each customer's referral count against the threshold.
4
COMPLETION: Define the reward assignment
Create a dictionary called rewards where each key is a customer from qualified_customers and the value is the string 'Discount Voucher' to represent the reward assigned.
Digital Marketing
Hint
Use a dictionary comprehension to assign rewards to qualified customers.
Practice
(1/5)
1. What is the main purpose of a referral program in digital marketing?
easy
A. To limit the number of customers
B. To increase the price of products
C. To encourage existing customers to bring in new customers
D. To reduce the quality of services
Solution
Step 1: Understand referral program goal
Referral programs aim to grow customer base by using existing customers as promoters.
Step 2: Identify correct purpose
The main goal is to encourage current customers to invite others, increasing new customers.
Final Answer:
To encourage existing customers to bring in new customers -> Option C
Quick Check:
Referral programs = customer growth [OK]
Hint: Referral programs reward sharing to grow customers fast [OK]
Common Mistakes:
Thinking referral programs increase prices
Believing referral programs reduce service quality
Assuming referral programs limit customers
2. Which of the following is a common reward given in referral programs?
easy
A. Free product or discount
B. Increased subscription fees
C. Delayed delivery times
D. Reduced customer support
Solution
Step 1: Identify typical referral rewards
Referral programs usually offer incentives like discounts or free products to motivate sharing.
Step 2: Match reward type
Free products or discounts are positive rewards, unlike fees or delays which discourage customers.
Final Answer:
Free product or discount -> Option A
Quick Check:
Referral rewards = discounts or freebies [OK]
Hint: Rewards are positive incentives like discounts, not penalties [OK]
Common Mistakes:
Confusing rewards with penalties
Thinking referral rewards increase costs
Assuming rewards reduce service quality
3. Consider this referral program rule: "For every 3 friends referred, the referrer gets a $10 credit." If a customer refers 7 friends, how much credit do they earn?
medium
A. $10
B. $30
C. $70
D. $20
Solution
Step 1: Calculate full groups of 3 referrals
7 friends referred means 2 full groups of 3 (since 3*2=6), with 1 leftover.
Step 2: Multiply groups by credit
2 groups x $10 credit = $20 total credit earned.
Final Answer:
$20 -> Option D
Quick Check:
Floor(7/3) x 10 = 20 [OK]
Hint: Divide referrals by 3, multiply by $10 credit [OK]
Common Mistakes:
Multiplying total referrals by $10 directly
Ignoring leftover referrals
Adding credit for incomplete groups
4. A referral program states: "Referrer and referee both get a 15% discount." A user tries to apply the discount twice on the same purchase and it fails. What is the likely issue?
medium
A. The program only allows one discount per purchase
B. The discount percentage is too high
C. The referee is not eligible for any discount
D. The referrer must pay extra fees
Solution
Step 1: Understand discount application rules
Most referral programs limit discounts to one per purchase to avoid stacking.
Step 2: Identify why applying twice fails
Trying to apply the same discount twice likely violates the one-discount-per-purchase rule.
Final Answer:
The program only allows one discount per purchase -> Option A
Quick Check:
One discount per purchase rule = failure on double apply [OK]
Hint: Check if multiple discounts are allowed per purchase [OK]
Common Mistakes:
Assuming referee gets no discount
Thinking discount percentage causes failure
Believing referrer pays extra fees
5. A company wants to design a referral program where the referrer earns $5 for each new customer, but only if the new customer spends at least $50. Which of these is the best way to ensure fairness and success?
hard
A. Give $5 to referrers immediately after referral regardless of purchase
B. Track new customer purchases and only reward referrers when spending meets $50
C. Reward referrers only after 10 referrals, ignoring purchase amounts
D. Offer rewards only to new customers, not referrers
Solution
Step 1: Understand program goal
The company wants to reward referrers only if new customers spend $50 or more.
Step 2: Choose method ensuring fairness
Tracking purchases and rewarding only when spending meets $50 ensures fairness and avoids wasted rewards.
Final Answer:
Track new customer purchases and only reward referrers when spending meets $50 -> Option B
Quick Check:
Purchase tracking ensures fair rewards [OK]
Hint: Reward only after verifying new customer spends $50+ [OK]
Common Mistakes:
Rewarding referrers without purchase verification
Ignoring purchase amount conditions
Rewarding only new customers, not referrers
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.