
New vs Existing Customers in a Referral Program
In short
At the median Talkable program, existing customers produce 90% of advocate referral revenue (70 programs). New customers produce 80% of friend referral revenue (172 programs). Both figures are Talkable benchmark data, two years to June 2026. The advocate side is mostly existing customers, the friend side mostly new ones. Count what each group brings before giving it a different offer.
Why it matters
Talkable measures the advocate side and the friend side on their own: a single “new vs existing” number mixes the two. The split by side decides what to pay advocates who had not bought before sharing, whether existing customers may claim the friend reward, and how to read a drop in new customers.
First action: compute both sides' shares for one period (calculate it for your own program).
What new and existing mean in Talkable
Talkable calls the customer who shares the program the advocate and the person they refer the friend. An offer is the referral record Talkable creates when a customer sees the program: one per origin (a purchase, an event or a visit) and per campaign.
- A new customer is new to the program: Talkable has no earlier purchase on record for that person on the site.
- An existing customer has at least one earlier purchase on record.
The record holds the purchases the store sends to Talkable. A customer whose older orders never reached the program counts as new.
Talkable counts two kinds of referral sale, one per side:
- A friend referral sale is a friend's purchase that Talkable matched to an advocate inside the attribution window of its tracking method, or tracked by a coupon, and that is not blocked or voided. Its total is friend referral revenue.
- An advocate referral sale is any purchase made with a Talkable advocate-reward coupon. Its total is advocate referral revenue.
“New vs existing” hides three questions. Each has its own count and its own base.
1. Had the advocate bought before sharing?
Talkable classifies each advocate once, at their first share, into one of two groups:
- a new advocate had not bought before their first share;
- an existing advocate had bought before or at their first share. This includes a share made right after the order, from the Post-purchase offer that order created.
The answer comes from the advocate's own purchase history, never from the referral record.
A first-time sharer (never shared before) is not a new advocate (had not bought before their first share): one is sharing history, the other customer status. Question 3 classifies the buyer of an advocate-reward purchase, question 1 the sharer.
2. Is the referred friend a new customer?
Talkable counts referred customers: distinct friends who made at least one friend referral sale or referral event in the period. Each friend counts once.
New referred customers are the friends among them who were new to Talkable at their first friend referral sale or referral event in the period, with no earlier purchase on record. Talkable marks that order or event as a new customer's, and each friend counts once.
Referral events are actions other than a purchase that the store sends to Talkable; read the purchase row of a split by event category to leave them out. The script labels all-event people counts separately in its totals. Its placement and monthly people counts and every new-customer share use purchases only: combine the placement or period split with segment_by[event_categories]=true and read each purchase row. A missing purchase row means unavailable, not zero; its count and share print n/a.
The friend side by orders. Each new customer has exactly one first purchase, so on purchases only this is the share of friend referral sales that were a customer's first purchase:
new-customer share = new referred customers ÷ friend referral sales
Divide by friend referral sales, not by referred customers: people are counted once per period, so a share of people changes with the length of the period (the worked example shows it).
3. Who buys with advocate rewards?
Talkable splits advocate referral sales, and their revenue, by whether the buyer had bought before.
existing-customer share of advocate referral revenue = advocate referral revenue from existing customers ÷ advocate referral revenue
The count version uses advocate referral sales instead of revenue. Counts and revenue give different shares whenever the two groups place orders of different sizes.
The other part, advocate referral sales by new customers, counts purchases where an advocate reward paid for a first order (the abuse check).
A worked example
Round numbers chosen to show the arithmetic. They are not benchmarks and match no program.
A store reads one quarter, then the next: two windows of the same length.
| Figure for the store | This quarter | Next quarter |
|---|---|---|
| Friend referral sales | 1,000 | 1,000 |
| New referred customers | 700 | 550 |
| New-customer share (new referred customers ÷ friend referral sales) | 70% (700 ÷ 1,000) | 55% (550 ÷ 1,000) |
| Referred customers (people) | 900 | 900 |
| Advocate referral sales | 100 | 100 |
| Advocate referral sales by existing customers | 95 | 95 |
| Existing-customer share of advocate referral sales | 95% (95 ÷ 100) | 95% (95 ÷ 100) |
This quarter, month by month, read both ways:
| Period read | People: new referred customers ÷ referred customers | Orders: new referred customers ÷ friend referral sales |
|---|---|---|
| Month 1 | 75.0% (240 ÷ 320) | 70.6% (240 ÷ 340) |
| Month 2 | 74.2% (230 ÷ 310) | 69.7% (230 ÷ 330) |
| Month 3 | 71.9% (230 ÷ 320) | 69.7% (230 ÷ 330) |
| The three months added up | 73.7% (700 ÷ 950): wrong, the same friend is counted in more than one month | 70% (700 ÷ 1,000) |
| The quarter | 77.8% (700 ÷ 900): right, each friend counted once | 70% (700 ÷ 1,000) |
The trap. Read as a share of people, every month and the months added up sit below the quarter's 77.8%, yet nothing changed. Fifty friends bought in two of the months and are counted in both (950 against the quarter's 900), while each is new only once (700 either way).
Orders have no such trap. Friend referral sales add up month by month to the quarter's 1,000, so the new-customer share reads about 70% every month and 70% for the quarter.
The real change. Next quarter, a window of the same length, the new-customer share falls from 70% to 55% while the advocate side holds at 95%. Talkable's analysts read a share that moved by less than 10% of its own value as stable (a working rule, practice, not a statistical test); this one moved by more than a fifth.
What Talkable benchmark data shows
Talkable benchmark data gives each side three figures: the median program's share of revenue, and the pooled share of revenue and of orders, where all programs' purchases are added into one total.
| How the share is taken | Advocate side: share from existing customers | Friend side: share from new customers |
|---|---|---|
| Median program, share of referral revenue on that side | 90% (70 programs) | 80% (172 programs) |
| All programs pooled, share of referral revenue on that side | 75% (70 programs) | 67% (172 programs) |
| All programs pooled, share of referral sales (orders) on that side | 83% (71 programs) | 57% (172 programs) |
Share of each side's referral revenue or sales by customer type, new and existing as defined above. Talkable benchmark data, two years to June 2026: programs with at least 30 referral purchases on the side measured, revenue in US dollars.
The two medians are shares of revenue; the new-customer share you compute from the Talkable API is a share of orders, and its benchmark is the next table.
Talkable classified each friend referral sale by the buyer's own earlier purchases on the site (Talkable benchmark data, 149 programs with at least 30 friend referral sales, January 2025 – June 2026):
| The friend who made the referral purchase | Share of friend referral sales (median program) | Typical range across programs |
|---|---|---|
| New customer: no earlier purchase on record | 82.8% | 71.6–88.7% |
| Existing customer: an earlier purchase on record | 17.2% | 11.3–28.4% |
Share of friend referral sales by the buyer's customer type, median program and typical range (25th to 75th percentile); each row is its own median. Talkable benchmark data, 149 programs, January 2025 – June 2026.
Existing includes the friends' own repeat orders. A friend who first bought as a new customer and buys again through a referral counts as existing on that second order. A high existing share does not by itself mean that existing customers are taking the friend reward.
What new advocates bring, before you stop rewarding them
New advocates bring about a third of friend referral sales, in line with their share of the people who share.
At the median Talkable program, advocates who had not bought before their first share account for (Talkable benchmark data, January 2025 – June 2026):
- 33.3% of the people who share (typical range 13.4–56.7%, 129 programs);
- 38.0% of friend referral sales (20.4–67.6%, 126 programs);
- 38.0% of friend referral revenue (19.6–65.8%, 126 programs).
Per person, they bring about the same. Inside one placement, an existing advocate brings 1.10 times the friend referral sales of a new advocate on Standalone and 1.27 times on the Floating widget (Talkable benchmark data, median program, 96 and 60 programs, January 2025 – June 2026).
| Placement of the advocate's first share in the period | New advocates' share of the people who share | Existing ÷ new advocates: friend referral sales per advocate who shared |
|---|---|---|
| Standalone | 44.3% (106 programs) | 1.10× (96 programs) |
| Floating widget | 65.3% (64 programs) | 1.27× (60 programs) |
| Post-purchase | 0.7% (56 programs) | 0.91× (31 programs) |
| All placements together | 33.3% (129 programs) | 0.87× (114 programs) |
New advocates' share of the people who share, and existing ÷ new friend referral sales per advocate who shared, taken in each program; median program, program count in brackets. Talkable benchmark data, January 2025 – June 2026.
Why all placements together read 0.87×. Post-purchase sharers are almost all existing customers and bring few friend referral sales each. Counted with the other placements, they pull the existing advocates' figure below where it sits inside any one placement.
The friends they bring are equally new to the store. At the median Talkable program, 84.4% of new advocates' friend referral sales were the friend's first purchase, against 82.2% for existing advocates (Talkable benchmark data, 119 and 118 programs, January 2025 – June 2026).
The abuse check: new advocates use their rewards a little less. For advocate coupon rewards issued 2024–2025, at the median Talkable program (Talkable benchmark data):
- 9.6% of new advocates' rewards were used within 180 days, against 12.7% of existing advocates' rewards (79 programs; the existing rate is higher at 61 of them);
- 46.6% of the rewards new advocates use pay for their own first order (78 programs);
- that is 3.4% of all the rewards issued to new advocates (79 programs).
Their share is growing. At the median Talkable program (Talkable benchmark data):
- new advocates' share of friend referral sales rose from 34.8% in 2023 (196 programs) to 41.4% in the first half of 2026 (79 programs);
- existing ÷ new friend referral sales per advocate who shared moved from 0.66× (187 programs) to 0.93× (75 programs): per person, the two groups are now close.
What it supports. Before excluding new advocates from a reward, count what they bring and check how they use their rewards (split your own program). At the median program, that sets about a third of friend referral sales against the 3.4% of their rewards that pay for their own first order.
No purchase is not fraud. Talkable's analysts keep the two questions apart: self-referral and cross-referral are handled by the fraud settings, which flag or block the referral.
Different offers for new and existing customers
Talkable's data sizes the decision; the offer itself is then tested. The working rules Talkable's analysts apply (practice, not a statistical test):
For advocates
- Advocates who had not bought. Talkable's analysts keep their reward as it is unless the count says otherwise: what they bring and how they use their rewards (above).
- Existing advocates. To reward them more, Talkable's analysts raise the reward for existing customers and change the new-customer reward little, if at all: a smaller reward can lower new advocates' advocacy. Your Talkable CSM sets up the reward by customer status.
- Test it. Run the change as an A/B test and read the advocacy rate: sharers (offers shared at least once) ÷ impressions (the times the offer was shown). A test of the friend reward or its restriction is read on friend conversion (friend referral sales ÷ visits) and new referred customers.
For friends who already bought
- Check first whether a reward already requires the friend to be a new customer. An incentive, the friend's or the advocate's, can carry that condition (incentive criteria; how to read it). A reward set this way is not granted when the friend had bought before; the referral's details show “Friend is not a new customer” (who should get the reward).
- Pay them less, not nothing. Talkable's analysts usually give friends who already bought a smaller reward instead of none: about half the new-customer reward or less, for example $10 off where new customers get $20 off. Your Talkable CSM sets up the second, smaller reward.
- The price, both ways. The cost is friend rewards not granted for that reason × friend reward redemption rate × the smaller reward. Against it, Talkable's analysts set the friend referral revenue those orders would carry: the same rewards × redemption rate × friend referral AOV (friend referral revenue ÷ friend referral sales). Your Talkable CSM can count those rewards.
- The redemption rate. Friend coupons used ÷ friend coupons issued in the same period: “% Friend coupons used” in the Metrics Aggregation Report (
friend_coupons_used_percentage), a site-level figure. Pricing with it assumes existing customers redeem at the same rate. - When the restriction is off. The friend rewards existing customers use are already in your orders: the Purchases export, filtered to orders with a friend coupon and not marked as a first purchase, lists them. Your Talkable CSM can size the change with you.
- The friend reward against the store's own offer. A new customer can also take the site's sign-up discount, so the friend reward must beat it.
Talkable's “ineligible” campaign is the fallback for visitors who are not allowed to advocate, such as self-referrers. It is not the path for an existing customer arriving as a friend, and its sales are never reported as “existing customers converting”.
Deep dive: who the top advocates are
One cut goes past the headline split: Talkable's top advocates, those with three or more approved referrals.
Top advocates and their purchases
Talkable benchmark data shows whether top advocates have any purchase on record at all:
| Top advocates who… | Share of the program's top advocates (median program) | Typical range across programs |
|---|---|---|
| had no purchase on record (through June 2026) | 15.2% | 5.9–30.5% |
| were referred as a friend before their first share | 4.6% | 2.6–10.0% |
Share of top advocates (three or more approved referrals), median program and typical range (25th to 75th percentile); one person can be in both rows, so the rows are not added. Talkable benchmark data, 144 programs with at least 20 top advocates, referrals January 2024 – June 2026.
Top advocates carry the program. They bring a median 54.4% of a program's approved referrals (typical range 32.5–72.9%, same 144 programs).
What “no purchase on record” covers. It leaves out orders the store never sent to Talkable, such as those from before the integration. It also says nothing about timing: a top advocate who bought only after their first share counts as having a purchase on record.
So the 15.2% has a different base from new advocates, who are classified at their first share.
For example, to see how often advocate rewards in your own program pay for a buyer's first order (question 3), ask the Talkable AI Assistant: “For July 1 – September 30, 2026, how many advocate referral sales were made by new customers, and what share of all advocate referral sales and of advocate referral revenue is that?”
Calculate it for your own program
Every figure the two sides need comes from Talkable: ten metrics for one period, then a split by placement and by month. There are three ways to get it:
- Talkable AI Assistant, in your Talkable admin: ask in one sentence, no set-up.
- Talkable MCP server: your own agent (OpenClaw, Claude Code or any other) calls the tool
calculate_metric. - Talkable metrics API: an HTTP request or the Python script below, with your API key.
The Talkable MCP server and the AI Assistant are enabled per site by your Customer Success Manager (CSM). The HTTP and Python examples need only the API key.
Get your API key
- In the Talkable admin, open All site settings → General → Integrations → API integration.
- Copy two values: the API key (the site's private key; keep it server-side) and the Site ID, which is the site slug. A scoped key that an account admin creates under Account settings → API Keys & MCP works too.
- Set them as
TALKABLE_API_KEYandTALKABLE_SITE_SLUGin your environment. No example on this page contains a key.
Authentication and error codes: Talkable API introduction.
What Talkable tracks
| Article term | API metric identifier | Metrics Aggregation | Returns |
|---|---|---|---|
| Friend referral sales | ideal_ | # Ideal FR sales | number of orders |
| Friend referral revenue | ideal_ | $ Ideal FR sales | money, after the discount |
| Referred customers | customers | Customers | number of people |
| New referred customers | new_ | New customers | number of people |
| Advocate referral sales | ideal_ | # Ideal AD sales | number of orders |
| Advocate referral revenue | ideal_ | $ Ideal AD sales | money, after the discount |
| Advocate referral sales by new customers | ideal_ | # Ideal AD sales new customers | number of orders |
| Advocate referral revenue from new customers | ideal_ | $ Ideal AD sales new customers | money, after the discount |
| Advocate referral sales by existing customers | ideal_ | # Ideal AD sales existing customers | number of orders |
| Advocate referral revenue from existing customers | ideal_ | $ Ideal AD sales existing customers | money, after the discount |
The three shares divide these: new_customers (purchase row) ÷ ideal_friend_sales_count on the friend side; the existing-customer count or sum ÷ the advocate-side total on the advocate side. The new and existing advocate-side parts add up to the total, which checks that both calls covered the same period.
How a call works
- One metric:
GET https://www.talkable.com/api/v2/metrics/{metric}withsite_slug,start_dateandend_date. - A split (by placement, by month, by event category): add
/segmentizeto the same path. - The answer: one value as
{"plain": …, "formatted": "…", "result_type": …}. A split returns{"segmented": [ … ]}, one value per row with its label (campaign_type,period,event_category). - Precision: counts come back whole; percents with two decimals and ratios with up to four.
- Money comes back in the site's reporting currency;
formattedcarries its symbol. - Through the Talkable MCP server the tool is
calculate_metric: the same identifiers, several metrics in one call.
API reference: Talkable API documentation.
Filters and segmentations for this question
| Parameter | Values | Use it to |
|---|---|---|
start_, end_ (MCP: period_, period_) | YYYY-MM-DD, for example 2026-07-01. REST also reads M/D/YYYY, month first, so 1/7/2026 is January 7: send YYYY-MM-DD. Both days included; days run in the account time zone | Set the window. Compare windows of the same length; MCP presets such as last quarter are rolling windows, so send custom dates |
segment_ (MCP: ["date_ with aggregate_) | REST: day, week, month, quarter, year, rows labelled "period": "7/1/26 - 7/31/26". MCP: day, week, month, rows keyed date_. Up to 1,000 rows per request | Follow the shares month by month; referred customers are counted once per row |
segment_ (MCP: ["campaign_) | One row per placement or campaign type the store runs: post_, standalone, dashboard, floating_, gleam, claim_ | Both sides by placement. Campaigns with no type count in the total only: add “Other campaigns (no type)” = total − sum of the rows for orders and money; for referred and new referred customers it is n/a |
segment_ (MCP: ["event_) | One row per event category, such as purchase and a review event | Read referred customers, new referred customers and friend referral sales on the purchase row; a row outside the total is not part of it |
campaign_ (MCP: campaign_) | Campaign ids from the campaign list or the campaign's admin URL | Read one campaign on its own |
exclude_ (MCP: exclude_) | Default true | Test traffic is already out of the activity metrics; sales metrics always leave it out |
MCP only: "segment_ (also segment2, segment3), exclude_ | One row per value the store sends in a custom segment; true leaves refunded orders out of the money metrics | Cut both sides by a loyalty tier or region the store passes; read revenue net of refunds |
Examples in four tabs
The same split four ways: ask in plain language, call the Talkable MCP server, send the HTTP requests, or run the Python script.
Talkable AI Assistant (in your Talkable admin; what it can report)
The Assistant already knows the Talkable metrics and your campaigns, so one sentence is enough:
For July 1 – September 30, 2026, on purchases only, show # Ideal FR sales, New customers and New customers ÷ # Ideal FR sales, and advocate referral sales and advocate referral revenue split into new and existing customers, as totals and by placement.
Your own agent (OpenClaw, Claude Code or any other agent)
Your agent does not know how Talkable defines new and existing customers on each side. Send it the same sentence and use the method in this report:
For July 1 – September 30, 2026, on purchases only, show # Ideal FR sales, New customers and New customers ÷ # Ideal FR sales, and advocate referral sales and advocate referral revenue split into new and existing customers, as totals and by placement. Use the method in this report: https://get.talkable.com/analytics/new-vs-existing-advocates
The agent also needs your API key or a connection to the Talkable MCP server.
Talkable MCP server, tool calculate_metric
To connect your agent (endpoint, credentials, client set-up), see the Talkable MCP server documentation. The metrics of the three shares, by placement, in one call:
{
"site_slug": "your-site",
"metrics": ["ideal_friend_sales_count", "new_customers", "customers",
"ideal_advocate_sales_count", "ideal_advocate_sales_existing_customers_count",
"ideal_advocate_sales_sum", "ideal_advocate_sales_existing_customers_sum"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30",
"segment_by": ["campaign_types"]
}
The answer, shaped as the server returns it, on the worked example's quarter (illustrative):
{"metrics": {
"ideal_friend_sales_count": {"campaign_types=post_purchase": 230, "campaign_types=standalone": 740,
"campaign_types=floating_widget": 30, "total": 1000},
"new_customers": {"campaign_types=post_purchase": 160, "campaign_types=standalone": 520,
"campaign_types=floating_widget": 20, "total": 700},
"customers": {"campaign_types=post_purchase": 210, "campaign_types=standalone": 660,
"campaign_types=floating_widget": 30, "total": 900},
"ideal_advocate_sales_count": {"campaign_types=post_purchase": 20, "…": "…", "total": 100},
"ideal_advocate_sales_existing_customers_count": {"campaign_types=post_purchase": 20, "…": "…", "total": 95},
"…": "…"},
"filters": {"period": {"from": "2026-07-01", "to": "2026-09-30"},
"exclude_qa_generated": true, "exclude_refunded": false},
"segmentations": ["campaign_types"],
"metrics_aggregation_url": "/sites/your-site/reports/metrics_aggregation?…"}
- Period totals: drop
segment_by; each metric then returns one number. Addideal_friend_sales_sumand the twoideal_advocate_sales_new_customers_*metrics for the full set of ten. - A missing entry means 0: MCP lists only the rows with activity.
- The
totalof a split adds up its rows. By month or by placement it counts a friend in every row they appear in. Read the period's referred customers from a call withoutsegment_by. - Purchases only: add
"event_categories": ["purchase"], or split by["event_categories"]and read theevent_categories=purchaseentry. metrics_aggregation_url, a path underhttps://admin.talkable.com, opens the same numbers in the Metrics Aggregation Report in the Talkable admin.
HTTP (curl): the raw request any language can send
The responses below are the shapes the Python script parses, on the worked example's numbers (illustrative). Authentication and errors: Talkable API introduction.
# 1. one metric for one period (repeat for each identifier in the metrics table)
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/new_customers?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30"
# -> {"ok":true,"result":{"plain":700,"formatted":"700","result_type":"number"}}
# 2. the advocate side: purchases with advocate-reward coupons by existing customers
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/ideal_advocate_sales_existing_customers_count?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30"
# -> {"ok":true,"result":{"plain":95,"formatted":"95","result_type":"number"}}
# 3. by placement: one row per campaign type the store runs, zero rows included
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/new_customers/segmentize?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30&segment_by[campaign_types]=true"
# -> {"ok":true,"result":{"segmented":[
# {"plain":20,"formatted":"20","result_type":"number","campaign_type":"floating_widget"},
# {"plain":160,"formatted":"160","result_type":"number","campaign_type":"post_purchase"},
# {"plain":520,"formatted":"520","result_type":"number","campaign_type":"standalone"}]}}
# 4. by month
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/new_customers/segmentize?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30&segment_by[period]=month"
# -> {"ok":true,"result":{"segmented":[
# {"plain":240,"formatted":"240","result_type":"number","period":"7/1/26 - 7/31/26"},
# {"plain":230,"formatted":"230","result_type":"number","period":"8/1/26 - 8/31/26"},
# {"plain":230,"formatted":"230","result_type":"number","period":"9/1/26 - 9/30/26"}]}}
# 5. purchases only: the purchase row of the event-category split
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/customers/segmentize?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30&segment_by[event_categories]=true"
# -> {"ok":true,"result":{"segmented":[
# {"plain":900,"formatted":"900","result_type":"number","event_category":"purchase"}, ...]}}
- The
-gflag stops curl from interpreting the square brackets insegment_by[…]. - The splits list every placement or event category the site has, zero rows included.
- Money metrics return
"result_type":"money", with the currency symbol informatted. - An error comes back as
{"ok":false,"error_message":"…"}, for exampleNo metric found.for an unknown identifier.
Python: the full script
Save it as new_vs_existing.py. It prints the ten totals, the tie check, the three shares next to the Talkable medians with the same base, the advocate-reward purchases that were a buyer's first order, and the splits by placement and by month. Needs Python 3 and requests (pip install requests); reads the key from TALKABLE_API_KEY and TALKABLE_SITE_SLUG.
"""New vs existing customers in one Talkable referral program, on both sides, from the Talkable metrics API.
Friend side: the new-customer share = new referred customers / friend referral sales (orders, purchases only).
Advocate side: the existing-customer share of advocate referral sales (orders) and of advocate referral revenue.
Prints the period totals, the three shares next to the matching Talkable medians, the advocate-reward purchases that
were a buyer's first order, the split by placement and by month, and checks that the advocate-side new and existing
parts add up to the total.
Usage:
pip install requests
export TALKABLE_API_KEY=... # All site settings -> General -> Integrations -> API integration: "API key"
export TALKABLE_SITE_SLUG=... # same page, "Site ID"
python3 new_vs_existing.py 2026-07-01 2026-09-30
Send dates as YYYY-MM-DD: M/D/YYYY is also read, month first, so 1/7/2026 is January 7. Both days are included, in
the account time zone. For a long period, run one quarter at a time. Money is in the site's reporting currency.
Shares are percents to 1 decimal, "n/a" when the denominator is 0 or the purchase count is unavailable. Referred customers and new referred customers are
people: a friend can sit in two rows of a split, so the "Other campaigns (no type)" row prints n/a for them. Friend
referral sales count purchases only. All-event people counts are printed separately in the totals; every split
uses purchases only for people and their shares. Missing purchase rows print n/a, not zero. The script makes 26 calls.
"""
import os
import re
import sys
import time
import requests
API = "https://www.talkable.com/api/v2"
TOTALS = [ # article term -> API metric identifier
("Friend referral sales", "ideal_friend_sales_count"),
("Friend referral revenue", "ideal_friend_sales_sum"),
("Referred customers", "customers"),
("New referred customers", "new_customers"),
("Advocate referral sales", "ideal_advocate_sales_count"),
("Advocate referral revenue", "ideal_advocate_sales_sum"),
("Advocate referral sales, new customers", "ideal_advocate_sales_new_customers_count"),
("Advocate referral revenue, new customers", "ideal_advocate_sales_new_customers_sum"),
("Advocate referral sales, existing customers", "ideal_advocate_sales_existing_customers_count"),
("Advocate referral revenue, existing customers", "ideal_advocate_sales_existing_customers_sum"),
]
ROW = [ # what every split row needs
("Friend referral sales", "ideal_friend_sales_count"),
("New referred customers", "new_customers"),
("Referred customers", "customers"),
("Advocate referral sales", "ideal_advocate_sales_count"),
("Advocate referral sales, existing customers", "ideal_advocate_sales_existing_customers_count"),
("Advocate referral revenue", "ideal_advocate_sales_sum"),
("Advocate referral revenue, existing customers", "ideal_advocate_sales_existing_customers_sum"),
]
PLACEMENT = { # API campaign_type -> placement or campaign type name in the Talkable admin
"post_purchase": "Post-purchase", # Post Event campaigns (e.g. a review-email popup) count here too
"standalone": "Standalone",
"dashboard": "Advocate dashboard",
"floating_widget": "Floating widget",
"gleam": "Reward Gleam",
"claim_by_name": "Claim by name",
}
OTHER = "Other campaigns (no type)" # Leaderboard, Tiered Rewards, full-bleed Invite on a page of their own: in the total only
# Talkable benchmark data, median program, read against the share with the same base:
FRIEND_MEDIAN = 82.8 # % of friend referral sales from new customers, 149 programs, January 2025 - June 2026
ADVOCATE_MEDIAN = 90 # % of advocate referral revenue from existing customers, 70 programs, two years to June 2026
def get(path, **params):
params = {"site_slug": SITE, **params}
for attempt in range(5):
r = requests.get(f"{API}/{path}", params=params,
headers={"Authorization": f"Bearer {KEY}"}, timeout=120)
if r.status_code in (429, 503) and attempt < 4: # 429 API throttle, 503 metrics request budget
time.sleep(5 * 2 ** attempt) # 5, 10, 20, 40 s
continue
try:
body = r.json()
except ValueError:
body = {}
if body.get("ok") is False: # e.g. 400 "No metric found.", 422 over 1,000 segmentation rows
raise RuntimeError(f"{path}: HTTP {r.status_code}: {body.get('error_message')}")
r.raise_for_status()
if "result" not in body:
raise RuntimeError(f"{path}: HTTP {r.status_code}: the answer has no result")
return body["result"]
def iso(day):
"""YYYY-MM-DD (2026-7-1 is padded), or M/D/YYYY (month first, as the API reads it) turned into YYYY-MM-DD."""
m = re.fullmatch(r"(\d{1,2})/(\d{1,2})/(\d{4})", day)
if m and int(m.group(1)) <= 12:
out = f"{m.group(3)}-{int(m.group(1)):02d}-{int(m.group(2)):02d}"
print(f" note: {day} is read month first, as {out}; send YYYY-MM-DD to avoid a day-first mix-up.")
return out
m = re.fullmatch(r"(\d{4})-(\d{1,2})-(\d{1,2})", day)
if not m:
sys.exit(f"cannot read the date {day}: write YYYY-MM-DD, e.g. 2026-07-01")
return f"{m.group(1)}-{int(m.group(2)):02d}-{int(m.group(3)):02d}"
def metric(name, start, end):
return get(f"metrics/{name}", start_date=start, end_date=end)
def segmented(name, start, end, **segment):
params = {f"segment_by[{k}]": v for k, v in segment.items()}
return get(f"metrics/{name}/segmentize", start_date=start, end_date=end, **params)["segmented"]
def split_counts(name, start, end, key, **segment):
"""REST does not forward an event_categories filter: add that dimension and select purchase."""
people = name in ("customers", "new_customers")
if people:
segment["event_categories"] = "true"
rows = segmented(name, start, end, **segment)
labels = dict.fromkeys(r[key] for r in rows)
values = {r[key]: r["plain"] for r in rows if not people or r.get("event_category") == "purchase"}
return {label: values.get(label) for label in labels}
def pct(a, b):
return round(100 * a / b, 1) if a is not None and b else None
def show(x, unit=""):
if x is None:
return "n/a"
if unit == "%":
return f"{x:.1f}%"
if unit == "money":
return f"{x:,.2f}"
return f"{x:,}"
def shares(v):
"""The three shares of the article from one dict of ROW terms."""
return (pct(v["New referred customers"], v["Friend referral sales"]),
pct(v["Advocate referral sales, existing customers"], v["Advocate referral sales"]),
pct(v["Advocate referral revenue, existing customers"], v["Advocate referral revenue"]))
def print_rows(title, rows):
"""rows: list of (label, {term: value}) with the ROW terms; prints both sides and the three shares."""
print(f"\n{title}")
head = ("row", "FR sales", "new (purchase)", "new %", "referred (purchase)", "AD sales", "existing", "exist %", "AD revenue",
"existing", "exist %")
out = []
for label, r in rows:
s = shares(r)
out.append((label, show(r["Friend referral sales"]), show(r["New referred customers"]), show(s[0], "%"),
show(r["Referred customers"]), show(r["Advocate referral sales"]),
show(r["Advocate referral sales, existing customers"]), show(s[1], "%"),
show(r["Advocate referral revenue"], "money"),
show(r["Advocate referral revenue, existing customers"], "money"), show(s[2], "%")))
widths = [max(len(str(x[i])) for x in [head] + out) for i in range(len(head))]
for x in [head] + out:
print(" " + " ".join(str(c).ljust(w) if i == 0 else str(c).rjust(w)
for i, (c, w) in enumerate(zip(x, widths))))
def by_placement(start, end, total):
cols = {term: split_counts(m, start, end, "campaign_type", campaign_types="true") for term, m in ROW}
seen = {ct for col in cols.values() for ct in col} # the types this site runs, as the API returns them
types = [ct for ct in PLACEMENT if ct in seen] + sorted(seen - set(PLACEMENT))
rows = [(PLACEMENT.get(ct, ct), {term: cols[term].get(ct, None if m in ("customers", "new_customers") else 0) for term, m in ROW}) for ct in types]
other = {term: (None if m in ("customers", "new_customers") else
round(total[term] - sum(r[term] for _, r in rows), 2)) for term, m in ROW}
# People overlap across placements, so subtraction cannot recover the untyped count.
other = {t: x if x is None or x >= 0 else None for t, x in other.items()} # below 0 = rows overlap: n/a
return rows + [(OTHER, other), ("Total", total)] # campaigns with no type count in the total only; Other always printed
def by_month(start, end, total):
cols = {term: split_counts(m, start, end, "period", period="month") for term, m in ROW}
labels = list(cols["Friend referral sales"]) # every month, empty ones included, in the API's order
rows = [(p, {term: cols[term].get(p, None if m in ("customers", "new_customers") else 0) for term, m in ROW}) for p in labels]
return rows + [("Whole period", total)]
def purchases_only(start, end):
"""Referred and new referred customers on purchases only: the purchase row of the event-category split."""
out = {}
for term, m in (("Referred customers", "customers"), ("New referred customers", "new_customers")):
rows = {r["event_category"]: r["plain"] for r in segmented(m, start, end, event_categories="true")}
out[term] = rows.get("purchase")
return out
def main():
global KEY, SITE
if len(sys.argv) != 3:
sys.exit("usage: python3 new_vs_existing.py START END (dates YYYY-MM-DD, e.g. 2026-07-01 2026-09-30)")
KEY = os.environ.get("TALKABLE_API_KEY")
SITE = os.environ.get("TALKABLE_SITE_SLUG")
if not KEY or not SITE:
sys.exit("set TALKABLE_API_KEY and TALKABLE_SITE_SLUG first (see the docstring)")
start, end = iso(sys.argv[1]), iso(sys.argv[2])
if end < start:
sys.exit("END is before START")
raw = {term: metric(m, start, end) for term, m in TOTALS}
v = {term: r["plain"] for term, r in raw.items()}
currency = re.sub(r"[\d.,\s-]", "", raw["Friend referral revenue"]["formatted"]) # e.g. "$"
print(f"New vs existing customers {SITE} {start} -> {end} (money in the site's reporting currency, {currency})")
for term, m in TOTALS:
label = term + (" (all events)" if m in ("customers", "new_customers") else "")
print(f" {label:<48}{show(v[term], 'money' if 'revenue' in term else ''):>16}")
ties = (v["Advocate referral sales, new customers"] + v["Advocate referral sales, existing customers"]
== v["Advocate referral sales"])
money_ties = abs(v["Advocate referral revenue, new customers"] + v["Advocate referral revenue, existing customers"]
- v["Advocate referral revenue"]) < 0.01
print(" check: advocate referral sales and revenue, new + existing "
+ ("= total" if ties and money_ties else "do not equal the total: pull the period again"))
p = purchases_only(start, end)
v.update(p) # from here on, every people count and share uses purchases only
friend = pct(p["New referred customers"], v["Friend referral sales"])
_, adv_sales, adv_revenue = shares(v)
print("\nThe three shares, each next to the Talkable median with the same base")
lines = [(f"New-customer share = new referred customers / friend referral sales "
f"({show(p['New referred customers'])} of {v['Friend referral sales']:,}, purchases only)", show(friend, "%")),
(f" Talkable median program: {FRIEND_MEDIAN}% of friend referral sales from new customers "
"(149 programs, January 2025 - June 2026)", ""),
("Existing-customer share of advocate referral sales", show(adv_sales, "%")),
("Existing-customer share of advocate referral revenue", show(adv_revenue, "%")),
(f" Talkable median program: {ADVOCATE_MEDIAN}% of advocate referral revenue from existing customers "
"(70 programs, two years to June 2026)", "")]
for label, value in lines:
print(f" {label:<104}{value:>8}" if value else f" {label}")
print(f" For reference, people: {show(p['New referred customers'])} new of {show(p['Referred customers'])} referred "
f"customers on purchases only ({show(pct(p['New referred customers'], p['Referred customers']), '%')}). "
"No benchmark has this base.")
print(f" Advocate-reward purchases that were the buyer's first order: "
f"{v['Advocate referral sales, new customers']:,} of {v['Advocate referral sales']:,} "
f"({show(pct(v['Advocate referral sales, new customers'], v['Advocate referral sales']), '%')}). "
"Status at the first share (new or existing advocate) comes from the exports.")
total = {term: v[term] for term, _ in ROW}
print_rows("By placement (purchases only; campaigns with no type are in the total only)",
by_placement(start, end, total))
print(" Referred and new referred customers: a friend referred through two placements counts in both rows, so "
"the Other row shows n/a for them.")
months = by_month(start, end, total)
print_rows("By month (purchases only; compare months with months)", months)
summed = (sum(r["Referred customers"] for _, r in months[:-1])
if all(r["Referred customers"] is not None for _, r in months[:-1]) else None)
summed_new = (sum(r["New referred customers"] for _, r in months[:-1])
if all(r["New referred customers"] is not None for _, r in months[:-1]) else None)
print(f" Monthly referred customers add up to {show(summed)}; the period counts {show(total['Referred customers'])} distinct"
f" friends. New referred customers add up to {show(summed_new)} (period: {show(total['New referred customers'])}).")
print(" A friend who bought in two months is a referred customer in both, and new in only one.")
if __name__ == "__main__":
main()
Reconcile with the admin report
- Open the report. In the Talkable admin: your site → All reports → Metrics Aggregation. The MCP response's
metrics_aggregation_url, a path underhttps://admin.talkable.com, opens it with the same filter. - Set the same filters. The same start and end dates; the same campaigns, if you filtered by
campaign_ids[]; the same test-traffic, refund and currency filters. - Compare column by column. The admin's name for each figure is in the metrics table above, column “Metrics Aggregation”. In the report, “New customers” means new referred customers.
If a figure differs, check five things:
- the period boundaries: both days are inclusive, in the account time zone;
- whether the report is filtered to the same campaigns;
- whether its other filters match, including a split by event category;
- whether you compared the ideal-sales columns and not $ Dashboard sales, which is set per site;
- a gap of about 1–2% on every count: compare with the report's precision mode.
For a recent period, pull both on the same day: referrals are still being approved or voided.
Split by advocate status
Whether an advocate had bought before their first share comes from the advocate's own history, so this split is built from three exports in the Talkable admin. Talkable's analysts also run it for your program through your CSM.
- Classify each advocate. From the Offer Shares export (one row per share, with the advocate and its date), take each advocate's earliest share on record. From the Purchases export, take that person's orders up to it, matched by email or customer ID. No order before it: new advocate. An order before or at it: existing advocate.
- Friend referral sales and revenue by group. Export Top Referrers with the ideal filter and the statuses other than blocked and voided: one row per advocate, with the advocate's email, Talkable sales (a count) and referred revenue. Add them up for each group and divide by the program's totals.
- Reward redemption by group. Export Incentive Outcomes for rewards for the advocate with status Paid: each reward shows whether its coupon was used. For each group, divide used by paid. Talkable's analysts read two rates within 10% of each other as the same (a working rule, practice).
- Rewards used on a first order. Advocate referral sales by new customers (
ideal_; the script prints it) counts the purchases where an advocate reward paid for the buyer's first order. The Purchases export with coupon usage set to advocate coupon and the first-time filter lists those orders.advocate_ sales_ new_ customers_ count
Compare your groups with the Talkable medians in what new advocates bring. The Talkable AI Assistant has no single metric for this split; it schedules these exports when you ask for them, and an agent uses the MCP tools (exports from an agent).
Troubleshooting
- “No metric found.” (HTTP 400)
Why: the identifier is not one the API knows, such asnew_customers_count.
Fix: the friend-side people counts arecustomersandnew_customers; the advocate-side parts are the four identifiers in the metrics table. - “`start_date` is not a valid Date” (HTTP 400)
Why: REST reads M/D/YYYY month first, so a day-first date with a day above 12, such as 30/9/2026, is invalid. One with a day of 12 or less, such as 1/7/2026, is read as January 7, with no error.
Fix: send YYYY-MM-DD, such as2026-09-30. - “Unsupported parameters: … Supported parameters: …” (HTTP 400)
Why: the request carries a parameter name the Talkable metrics API does not know, for examplecampaign_id[]without its s.
Fix: use a name from the list in the message; sendcampaign_ids[]with its brackets (andcurl -g). - “This segmentation produces … rows, over the synchronous limit of 1000” (HTTP 422)
Why: a split, such as a daily split over several years, returns more than 1,000 rows.
Fix: narrow the period or the split. Or schedule it, as the message says:POST /api/v2/metrics/{metric}/segmentize(a key withapi:write), then pollGET …/segmentize/{job_id}. - “Metric is temporarily unavailable, please try again” (HTTP 503) or HTTP 429
Why: a 503 from the metrics endpoints means the request budget is spent for now; a 429 is the API-wide throttle (request throttling).
Fix: wait and retry; for a long period, run one quarter at a time.
Check: the script makes 26 calls: ten totals, two for purchases only, seven by placement and seven by month. It waits 5, 10, 20 and 40 seconds between attempts, then stops with the error. - Monthly shares of referred customers sit below the period's
Why: people are counted once per row (the worked example).
Fix: compare months with months, or read the new-customer share, whose rows add up. - Referred customers include people who did not buy
Why: referral events count incustomersandnew_customers.
Fix: split by event category and read thepurchaserow (MCP:"event_categories": ["purchase"]). referred_sales_new_countis larger than new referred customers
Why: it is a different metric. It also counts first purchases from referrals that were blocked or fell outside the attribution window.
Fix: for new referred customers usenew_customers.- Advocate-side new + existing do not add up to the total
Why: the calls covered different periods or filters.
Fix: pull the three again with the same dates and filters. - Placement rows sum to less than the total
Why: Leaderboard, Tiered Rewards and full-bleed Invite campaigns on a page of their own carry no campaign type, so they count in the total and in no row.
Fix: add the row “Other campaigns (no type)” = total − sum of the rows. The script prints it. - Placement rows of referred customers add up to more than the total
Why: a friend referred through two placements counts in both rows, and the same can happen to new referred customers.
Fix: read “Other campaigns (no type)” from friend referral sales and the advocate-side rows; the script prints n/a for both people counts. - A low existing-customer share of advocate referral sales on one placement
Why: those buyers have no earlier purchase on record: they are new, or their earlier orders never reached Talkable.
Fix: look at those orders in the Purchases export (sales attribution ideal advocate, first-time filter) before reading them as new customers. - Talkable MCP server: no access (MCP troubleshooting)
- “MCP is disabled for this site…”: the Talkable MCP server (
https://www.talkable.com/mcp) is enabled per site by your CSM. - “Site not found or not accessible”: the
site_slugis not one your credential can reach.list_sitesshows the valid ones. - Roles: reading metrics needs the Read role or higher; scheduling a CSV export needs the Write role and a key with
mcp:write(permissions).
- “MCP is disabled for this site…”: the Talkable MCP server (
Go further
- Rows, not totals: friend referral revenue from new customers. The Talkable benchmark is a share of revenue, built from purchase rows. Export Purchases with the sales attribution filter set to ideal friend; the first-time filter picks the new customers' orders. Divide their revenue by the total.
- Does a reward require the friend to be new? Through the Talkable MCP server, take the campaigns live in the period (
list_campaigns, by their live dates), thenlist_incentivesfor each: every reward comes with itsqualification_criteria.- Friend reward (type
ClickIncentive):new_customer“1” means the friend must be a new customer. - Advocate reward (
ReferrerIncentive):new_customer“1” means the friend must be new for the advocate to be rewarded, as in the incentive criteria example.
- Friend reward (type
- Exports from an agent. In the Talkable admin the reports download as CSV. The MCP tools
list_grid_reports,schedule_grid_exportandget_grid_exportschedule and fetch the same files (reports and exports). Scheduling needs the Write role and a key withmcp:write; the full CSV comes by email. - By custom segment. Through MCP,
"segment_by": ["segment1"]on the same metrics cuts both sides by a loyalty tier or region the store passes with each purchase (custom segments). - Revenue net of refunds. MCP
exclude_refunded: trueleaves refunded orders out of the money metrics.
Methodology
- Figures
- Talkable benchmark data: the median program and, where given, the typical range (25th to 75th percentile). Pooled: all programs in one total, in US dollars. Cells under five programs are not published; no program is named.
- Populations
- Revenue split: 172 programs (friend side), 70 (advocate side; 71 pooled orders), two years to June 2026. Existing-customer friends: 149 programs; advocates, classified at first share: programs with at least 30 friend referral sales; both January 2025 – June 2026. Top advocates: 144 programs, referrals January 2024 – June 2026.
- Code
- The requests and the script were run on a live Talkable site; REST and MCP agree.
FAQ
Are referral advocates mostly new or existing customers?
Mostly existing. At the median Talkable program, 33.3% of the people who share had not bought before their first share (Talkable benchmark data, 129 programs, January 2025 – June 2026).
Do referral programs bring in new customers?
Mostly, on the friend side: at the median program, new customers produce 80% of friend referral revenue (Talkable benchmark data, 172 programs, two years to June 2026). Talkable counts a customer as new when no earlier purchase is on record.
Do existing customers buy through referral links?
Some do. At the median Talkable program, 17.2% of friend referral sales come from customers with an earlier purchase on record (Talkable benchmark data, 149 programs, January 2025 – June 2026).
Should new and existing customers get different referral rewards?
Count first. At the median Talkable program, new advocates bring 38.0% of friend referral sales (Talkable benchmark data, 126 programs, January 2025 – June 2026). Check how they use their rewards before excluding them.
Why do two reports show different new vs existing referral numbers?
Usually the base differs: median against pooled (80% against 67% of friend referral revenue from new customers; Talkable benchmark data, 172 programs, two years to June 2026), revenue against orders, people against orders, or months against one window.
How do I get the new vs existing referral split from the Talkable API?
GET https://www.talkable.com/api/v2/metrics/{metric} with site_slug, start_date and end_date: new_customers ÷ ideal_friend_sales_count (friend side), ideal_advocate_sales_existing_customers_sum ÷ ideal_advocate_sales_sum (advocate side).
Learn more
In the Talkable documentation:
| Incentive criteria | The trigger condition on a friend or advocate reward, for example that the friend is a new customer |
| Who should get the reward? | Reward statuses and the reasons a reward is not issued, such as “Friend is not a new customer” |
| Tracking methods | How a friend's purchase is matched to an advocate, and the attribution window |
| Segments | Campaign Join Criteria and the three custom segments a store sends with a purchase |
| Talkable MCP server | Connect Claude Code, ChatGPT, Cursor or any MCP client |
| Talkable API | Authentication, response format, errors and throttling |
