
Referral Reward Size and Conversion
In short
In Talkable A/B tests, a bigger referral reward brought more sharers, not a higher conversion rate. A higher friend reward raised advocacy rate (sharers ÷ impressions) at 17 of 18 programs, median +18.6%. Conversion rate (friend referral sales ÷ visits) was higher at 7 of 12, median +1.3% (Talkable benchmark data, tests 2014 – August 2026).
Why it matters
In a Talkable program the reward is the lever a store can change without a developer. It is also a cost: a bigger reward is paid on every future referral, not only on the extra ones.
Talkable's tests show that a raise moves sharing and leaves the friend's purchase where it was. So a bigger reward will not fix a falling conversion rate.
If you need more sharers, raise the friend reward first; if conversion is falling, check your welcome discount before the amount. Start by reading your funnel for each reward you have run (how to calculate it).
What a referral reward can move
Each referral in a Talkable program carries two rewards, and the store pays both:
- The friend reward: the discount the referred friend gets on the claim page before buying, usually a single-use coupon.
- The advocate reward: what the advocate gets once the friend's purchase qualifies. The conditions, such as a minimum order or a new customer, are set per reward (incentive criteria).
Reward size is the value on the coupon: a fixed amount ($20 off) or a percentage (20% off). Paying in dollars or in percent is its own question; this page is about the amount. Tiered rewards are a question of reward shape and have their own analysis.
A reward pair is the two rewards one campaign pays, written “advocate $15, friend $20”.
In practice a new amount goes live as a new campaign: in Talkable programs a reward amount is almost never edited on a campaign that has been live for more than a month; a copy with the new amount is launched and the old campaign is switched off.
Where a reward is seen decides what it can move. A typical Talkable share page shows both rewards (“Give $15, get $15”), so both can change how many customers share. Only the friend reward is on the claim page, where the friend lands from the share link, so only it can change what the friend does next.
That gives three rates a reward can move:
advocacy rate = sharers ÷ impressions
visit rate = visits ÷ clicks
conversion rate = friend referral sales ÷ visits
The counts follow the Talkable metric standard:
- Impressions: share page views plus sign-up page views, minus sign-ups.
- Sharers: offers shared at least once. An offer is one advocate's referral record per campaign and per origin (a purchase, an event or a visit). Talkable dates sharers by the day the offer was created; every other stage counts in the period its own event happened.
- Shares: recorded shares of an offer; an email to three new recipients counts as three shares.
- Clicks: openings of a share link. Visits: friends who go on from the claim page to the store.
- Friend referral sales: friend purchases Talkable matched to an advocate's offer, inside the attribution window or coupon-tracked, not blocked or voided.
Two rates sit between the share page and the claim page: sharing rate (shares ÷ sharers) and click rate (clicks ÷ shares). In Talkable's tests they barely moved with either reward (Talkable's A/B tests, below).
A worked example
Round numbers chosen to show the arithmetic; they match no program. One program, the month before and the month after it raised the friend reward from $15 to $20.
Before. The program runs one campaign that pays advocate $15, friend $15.
The change. The store raises the friend reward to $20. As usual, the new amount goes live as a new campaign, and the $15 campaign is switched off. The new campaign is set up on fewer pages of the same placement than the old one.
What the report shows. The whole program, month on month:
| Funnel stage, whole program | Month before the raise | Month after the raise |
|---|---|---|
| Impressions | 10,000 | 8,000 |
| Sharers | 450 | 432 |
| Advocacy rate | 4.5% | 5.4% |
| Visits | 800 | 820 |
| Friend referral sales | 120 | 123 |
| Conversion rate | 15.0% | 15.0% |
Funnel counts and rates of the whole program, the month before and the month after the friend-reward raise. Illustrative round numbers.
The trap. Friend referral sales went from 120 to 123. Read from the sales count alone, the raise did almost nothing.
Split by campaign, the month after also shows where the sales came from:
| Funnel stage, month after the raise | $20 campaign (live) | $15 campaign (switched off) |
|---|---|---|
| Impressions | 8,000 | 0 |
| Sharers | 432 | 0 |
| Advocacy rate | 5.4% | n/a |
| Visits | 760 | 60 |
| Friend referral sales | 114 | 9 |
| Conversion rate | 15.0% | 15.0% |
The real change. On the $20 campaign, advocacy is 5.4% against 4.5% before: a fifth more sharers per impression. That is the direction Talkable's A/B tests show for a higher friend reward (below).
Why sales stayed flat. Impressions fell by a fifth, from 10,000 to 8,000, because the new campaign reaches fewer customers. Fewer impressions mean fewer sharers, visits and sales, even with a better advocacy rate. At the old reach, the new rate gives:
10,000 impressions × 5.4% = 540 sharers, against 450 before
The campaign with no impressions. The $15 campaign has 60 visits and 9 sales but no impressions and no sharers: friends are still opening links shared before the switch. Read its conversion rate, not its advocacy rate.
Conversion stayed at 15% in every row: the amount moved sharing; the friend's purchase stayed where it was.
What Talkable's A/B tests show
An A/B test is the clean way to read one program's raise. The program shows both amounts at the same time, each to its own share of customers, so the season, the traffic and the placement (where the program shows: after checkout, on a referral page, in a widget) are the same for both.
Talkable reads each test per program, on each rate:
lift = (rate at the higher amount − rate at the lower amount) ÷ rate at the lower amount
Then it takes the median lift across programs. A test counts when each amount reached 700 impressions, or 100 visits for the visit rate and the conversion rate. A program with two tests counts once.
| Rate | Friend reward raised: change in the rate, median program | Advocate reward raised: change in the rate, median program |
|---|---|---|
| Advocacy rate | +18.6% (+10.9% to +27.6%) higher at 17 of 18 | +8.6% (+0.1% to +19.8%) higher at 11 of 15 |
| Sharing rate | +0.6% (−1.4% to +3.6%) higher at 11 of 18 | +0.1% (−4.7% to +2.2%) higher at 8 of 15 |
| Click rate | −3.7% (−13.6% to +9.6%) higher at 7 of 18 | +1.0% (−5.0% to +7.2%) higher at 9 of 15 |
| Visit rate | +12.7% (+4.4% to +35.4%) higher at 9 of 12 | −6.7% (−12.6% to +2.0%) higher at 3 of 9 |
| Conversion rate | +1.3% (−19.8% to +11.5%) higher at 7 of 12 | −0.8% (−14.8% to +9.9%) higher at 4 of 9 |
Lift in each rate at the higher reward amount, median program, typical range in brackets; “higher at” = programs where the higher amount had the higher rate. Talkable benchmark data, reward-amount A/B tests created 2014 – August 2026: friend reward 18 programs (12 for visit and conversion rates), advocate reward 15 programs (9).
The friend reward moves advocacy most. A higher friend reward lifted advocacy at more programs than a higher advocate reward did, and by more than twice as much at the median.
The friend reward also moves the visit rate. The friend sees it on the claim page, and a bigger discount sends more friends on to the store: higher at 9 of 12 programs. A higher advocate reward did not lift the visit rate.
Neither reward moves conversion. Once a friend reaches the store, the amount on the coupon barely changes whether they buy. The median program moved +1.3% with the friend reward and −0.8% with the advocate reward, and programs spread on both sides of zero.
Bigger steps read higher. On the advocate reward (Talkable benchmark data, A/B tests 2014 – August 2026):
- a raise of 26–50% lifted advocacy at 4 of 6 programs, median +6.8%;
- a raise of 51–100% lifted it at 7 of 8, median +12.8%.
Read it as a direction.
Across programs: the reward as a share of the order
Talkable also compared 174 programs with at least 1,000 impressions and 100 visits between January 2025 and June 2026 (Talkable benchmark data). Each program pays its own amount, so this compares stores with each other. An A/B test compares two amounts in one store.
Comparing plain dollar amounts shows little. Whether a program pays the advocate $10–24, $25–49 or $50–99, its median advocacy rate is about the same: 4.3% to 4.6% (119 programs).
On the friend side, the median conversion rate is about 19% at programs paying $25–99 and about 15% at programs paying under $25 (76 programs). Program by program the link is weak, so the gap does not show that the bigger reward caused it.
Programs paying $100 or more (11 paying the advocate, 8 paying the friend) are high-ticket stores, with referred orders around $2,000.
Read as a share of the order. $20 off a $100 order and $20 off a $1,000 order are different deals for a friend. So Talkable reads the same programs again as reward ÷ friend referral AOV (friend referral revenue ÷ friend referral sales). Each row below groups the programs by that share.
| Programs whose advocate reward is this share of their friend referral AOV | Advocacy rate, median program in the band | Conversion rate, median program in the band |
|---|---|---|
| under 5% (24 programs; median friend referral AOV $1,163) | 3.4% | 12.5% |
| 5–9% (16 programs; median friend referral AOV $267) | 4.4% | 14.6% |
| 10–19% (48 programs; median friend referral AOV $118) | 4.4% | 15.3% |
| 20% and over (42 programs; median friend referral AOV $84) | 5.1% | 21.0% |
Advocacy and conversion rates of the median program in each band; programs paying a fixed advocate reward. Talkable benchmark data, January 2025 – June 2026.
| Programs whose friend reward is this share of their friend referral AOV | Advocacy rate, median program in the band | Conversion rate, median program in the band |
|---|---|---|
| under 5% (8 programs; median friend referral AOV $1,849) | 3.5% | 15.0% |
| 5–9% (17 programs; median friend referral AOV $240) | 4.6% | 13.8% |
| 10–19% (28 programs; median friend referral AOV $124) | 3.9% | 15.0% |
| 20% and over (28 programs; median friend referral AOV $78) | 5.6% | 18.9% |
Advocacy and conversion rates of the median program in each band; programs paying a fixed friend reward. Talkable benchmark data, January 2025 – June 2026.
Why the top band reads highest. The 20%-and-over bands are also the bands with the smallest orders, $84 and $78, and the under-5% bands hold the high-ticket stores, so the table sorts stores by ticket size as much as by reward.
Read the bands as a pattern. Program by program, a larger reward share does not rank with a higher conversion rate or a higher advocacy rate.
Median conversion is 14% to 15% in every band of friend referral AOV, from under $50 to $200 and over (165 programs with friend referral sales, same period). The A/B tests above are the reading of the reward itself.
Placement, and the store's category, separate programs more than the reward level does. The median reward is $20 to $25 on each side, whichever placement a program mostly runs (same programs and period). The rates differ more by placement (see the placement benchmarks in the deep dive).
What a normal referral reward is
Across the 174 programs compared above, a typical fixed reward is $20 to $25 on each side, and a typical percent reward is 20% off. A program's reward here is the value on the coupon its live campaign pays.
| Who gets the reward | How it is paid | Programs | Median reward | Typical range |
|---|---|---|---|---|
| Advocate | Fixed amount | 138 | $20–$25 | $13–$40 |
| Advocate | Percent off | 36 | 20% | 19–25% |
| Friend | Fixed amount | 84 | $20–$25 | $10–$40 |
| Friend | Percent off | 77 | 20% | 15–25% |
Reward on the coupon each program's live campaign pays: the median program and, in the last column, the typical range. The fixed-amount median falls between the round amounts $20 and $25, with rewards in other currencies converted to US dollars. Talkable benchmark data, January 2025 – June 2026.
The amounts programs pay most often are round. For the advocate: $20 (24 programs), $10 (23), $25 (21) and $50 (18). For the friend: $10 (15), $25 (14), $50 (11) and $20 (9).
Four in five programs pay the advocate a fixed amount. On the friend side, fixed amounts and percentages are close to half each.
Fixed amounts grow with the order; percentages do not. The bands below group the programs by friend referral AOV: what their referred friends spend per order on average.
| Band of programs | Fixed advocate reward, median program | Fixed friend reward, median program |
|---|---|---|
| Programs whose friends spend under $50 per order on average | $15 (12 programs) | $13 (10 programs) |
| Programs whose friends spend $50–99 per order on average | $20 (38 programs) | $18 (26 programs) |
| Programs whose friends spend $100–199 per order on average | $20 (31 programs) | $20 (17 programs) |
| Programs whose friends spend $200 and over per order on average | $40 (50 programs) | $50 (29 programs) |
Median fixed reward in each band, with the number of programs paying it. Talkable benchmark data, same programs and period.
Percentage friend rewards are 20% at the median in every band.
Equal sides are the norm. Of the 114 programs that pay both sides the same type of reward, 93 pay both the same amount. 10 pay the friend more and 11 pay the advocate more.
Reward changes outside tests
Talkable also followed 32 reward changes at 23 programs that changed only the amount, from 2022 to June 2026 (Talkable benchmark data). Each was read 90 days before against 90 days after, next to programs that changed nothing in the same weeks. Outside a test, a before-and-after shows a direction, not the size of an effect.
- Changes follow the trend. 8 of 13 raises of the advocate reward came while advocacy was already falling (12 programs). 4 of 7 cuts came while it was rising (7 programs).
- Advocacy was higher after 12 of the 13 raises, also against the programs that changed nothing. At 9 of the 13 the friend reward went up at the same time, so the result belongs to the pair.
- Conversion was higher after 4 of 10 friend-reward raises (10 programs): the same reading as the A/B tests.
Why a plain before-and-after misleads. A raise made on a falling trend is compared with weeks that were already weak, so part of a recovery can be the trend itself. Read the weeks around a change per reward pair (around a change).
Deep dive: reward effects in your own program
The sections before this one compare Talkable programs with each other. This section is about your own program: it runs one reward pair at a time, so you read the funnel of each reward pair it has run.
By reward pair: one row per reward pair
Split the funnel by reward pair, or group the campaigns that pay the same rewards. Each row is read by what it holds:
| What a reward pair's row holds | How to read that row |
|---|---|
| Impressions and visits | A live reward pair: compare advocacy rate and conversion rate. An absolute gap under 10% of the lower rate is noise, regardless of group order |
| Visits and sales, no impressions | An earlier reward pair whose links are still being opened: read its conversion rate only |
| Impressions 15% or more below the pair it replaced | A change in reach (pages, placement, traffic), not in the reward |
| The only live pair | Compare it with Talkable's placement benchmarks (next cut), placement by placement. The A/B lifts above are differences between two amounts, not levels |
How to read each row of a split by reward pair: working rules Talkable's analysts apply; practice, not a statistical test.
Which rate moves. A friend-reward change shows in advocacy rate and visit rate; conversion rate should stay under the 10% working rule above. An advocate-reward change shows in advocacy rate only.
For example, ask the Talkable AI Assistant: “Split my referral funnel for July 1 – September 30, 2026 by incentive combination, with impressions, sharers, advocacy rate, visits, friend referral sales and conversion rate for each reward pair.”
By placement: hold the placement still
Placement decides who sees the reward, and Talkable's rates differ more between placements than between reward levels. Talkable's published benchmarks by placement:
| Placement | Advocacy rate, median program (typical range) | Conversion rate, median program (typical range) |
|---|---|---|
| Standalone | 12.1% (7.8–16.3%) 128 programs | 19.5% (11.1–25.0%) 108 programs |
| Floating widget | 8.6% (4.7–14.4%) 73 programs | 19.0% (11.2–24.6%) 64 programs |
| Post-purchase | 4.5% (2.1–7.3%) 64 programs | 10.6% (6.8–15.6%) 53 programs |
Advocacy and conversion rates by placement: median program, typical range in brackets, program count below. Talkable benchmark data, 2025.
Why a better reward can read lower. Post-purchase is shown to everyone who checks out; Standalone only to customers who look for a referral page. A raise launched on Post-purchase and Standalone together, replacing a campaign that ran on Standalone only, can show a lower advocacy rate with a better reward. Compare two reward pairs inside one placement.
Check the placement label. Older Shopify checkout extension campaigns were set up as Floating widget, newer ones as Post-purchase, so an old and a new reward pair on the same extension can sit in different placement rows.
Post-purchase here is the classic post-purchase prompt. On a store whose post-purchase offer is a Shopify checkout extension, Talkable reads the whole Post-purchase row against the extension's own band.
For example, ask the Talkable AI Assistant: “Show my advocacy rate and conversion rate for each campaign type for July 1 – September 30, 2026.”
Around a change: three timing effects
| Timing effect | What it does around a change |
|---|---|
| Sharers are dated by offer creation | The new campaign's sharers start at zero on launch day. An offer created before the switch and shared after it counts on its creation day, so the old campaign's earlier weeks can still go up |
| Clicks, visits and sales follow old links | Links shared before the switch keep bringing visits and sales to the old reward pair after it is switched off |
| Changes follow the trend | A raise often comes on a falling trend (changes outside tests), so the months before are not a steady baseline |
How to read it. Use each campaign's live dates: a window that holds the switch mixes the two reward pairs.
Compare 90 days before with 90 days after, per reward pair and inside one campaign type, and put the same weeks of the year before beside them. A raise that only brings advocacy back to where it was two quarters ago has not lifted it.
For example, ask the Talkable AI Assistant: “Compare my referral funnel for April 1 – June 30, 2026 with July 1 – September 30, 2026 by incentive combination: impressions, sharers, advocacy rate, visits, friend referral sales and conversion rate.”
Reward cost: coupons issued and used
A coupon costs the store when it is used at checkout. So a raise costs its size on every coupon that gets used, on every future referral: a $5 raise costs $5 per used coupon.
redemption rate = coupons used ÷ coupons issued, per side
| Reward | Redemption rate, median program | Talkable's published benchmark range |
|---|---|---|
| Advocate rewards | 8.9% 121 programs | 4–24% |
| Friend rewards | 25.1% 177 programs | 16–38% |
Coupons used ÷ coupons issued on each side: median program and Talkable's published benchmark range. Talkable benchmark data, rewards issued 2023 – Q1 2025.
Price it on the coupons that get used. Illustrative: a $5 raise on a friend reward, 1,000 coupons issued a month, at the median friend redemption:
$5 × 1,000 × 25% = $1,250 a month, whether or not the raise brings extra sales
Price a percentage reward on the order it applies to. A percentage costs most where the order is largest. Illustrative: 20% of a $400 order is $80; a flat $25 stays $25.
Talkable values a used percentage coupon at p ÷ (100 − p) × the order recorded after the discount: the $400 order above is recorded at $320, and 20 ÷ 80 × $320 = $80.
Read the rate as a period ratio. The redemption rate the API returns is coupons used in the period ÷ coupons issued in the same period, not the share of one period's coupons that were later used. Coupons issued near the end of a period are used after it, so the longest window you have reads it best.
Check it against the sales. Put friend coupons used next to friend referral sales for the same window. If coupons used are far below the sales, the friend reward may not be a coupon, or its use may not be tracked: read redemption from the Coupons export instead.
Read redemption for the whole program. Talkable counts coupons issued per campaign, percentage-off ones included, and puts a value only on fixed-amount ones. It counts coupons used at checkout, for the whole site, whatever campaign filter you set.
For a percentage reward, the counts hold but the values are $0: value the coupons used from the Purchases export (Go further, “Rows, not totals”). Cost per new customer, with both rewards, is its own analysis.
For example, ask the Talkable AI Assistant: “How many advocate and friend coupons were issued and used from July 1 to September 30, 2026, and what share of each was used?”
Decision rules
Measured
- Raise the friend reward first when the goal is more sharers. In Talkable's A/B tests it lifted advocacy at 17 of 18 programs, the advocate reward at 11 of 15. Friend coupons are also used more often: 25.1% at the median program against 8.9% for advocate coupons (reward cost), so price the raise before you make it.
- Do not expect the conversion rate to move. The A/B tests, the comparison across programs and the changes outside tests agree. A falling conversion rate needs a fix other than a bigger amount. Check first whether a store discount now beats the friend reward (practice, below).
- Read a raise on its rates, per reward pair, not on the sales count. A new campaign that reaches fewer customers can show flat sales while its advocacy rate rose (worked example).
Practice
Working rules Talkable's analysts apply in client work; practice, not a statistical test.
- The friend reward must beat the store's welcome discount. If a newsletter sign-up gives 20% off and the friend reward is 15% off (illustrative), the friend has no reason to use the referral link.
- In one program, after it launched a welcome discount for new customers, its daily referral revenue from new customers was about 40% lower, and its daily purchases with a Talkable coupon about 80% lower (2024).
- Make a real step: raise the amount by at least a fifth. For example $10 to $15, or 15% off to 20% off. In the A/B tests above, the bigger advocate-reward steps read higher.
- Keep secondary rewards below the referral reward. A sign-up, share or wallet-install reward stays under what a referral pays, for example $5 next to a $20 referral reward, so referring stays the most valuable action.
- Change one side at a time. A raise on both sides belongs to the pair. Read advocacy once each variant has 700 impressions and conversion once each has 100 visits, the floors of Talkable's A/B study above.
Calculate it for your own program
Every count, rate and coupon figure this section uses comes from Talkable, one call per metric. The result matches the Metrics Aggregation Report in the Talkable admin when you set the same period, campaigns and filters. 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 |
|---|---|---|---|
| Impressions | advocate_ | Advocate Impressions | number |
| Sharers | sharers | Sharers | number |
| Shares | shares | Shares | number |
| Clicks | clicks | Offer Clicks | number |
| Visits | visits | Site Visits | number |
| Friend referral sales | ideal_ | # Ideal FR sales | number |
| Friend referral revenue | ideal_ | $ Ideal FR sales | money, recorded after the discount |
| Advocacy rate | advocacy_ | Advocacy percentage | percent |
| Sharing rate | sharing_ | Sharing rate | ratio, not a percent |
| Click rate | click_ | Click Rate | ratio, not a percent |
| Visit rate | visit_ | Visit Percentage | percent |
| Conversion rate | conversion_ | Friend Conversion Percentage | percent |
| Advocate coupons issued | advocate_ | # Advocate Coupons Issued | number: coupons, percentage-off included; split by campaign |
| Friend coupons issued | friend_ | # Friend Coupons Issued | number: coupons, percentage-off included; split by campaign |
| Advocate coupons used | advocate_ | # Advocate Coupons Used | number, counted at checkout for the whole site |
| Friend coupons used | friend_ | # Friend Coupons Used | number, counted at checkout for the whole site |
| Advocate redemption rate | advocate_ | % Advocate coupons used | percent: used ÷ issued |
| Friend redemption rate | friend_ | % Friend coupons used | percent: used ÷ issued |
How a call works
- One metric:
GET https://www.talkable.com/api/v2/metrics/{metric}withsite_slug,start_dateandend_date. - A split: add
/segmentizeto the same path, with asegment_by[…]parameter. - The answer: one value as
{"plain": …, "formatted": "…", "result_type": …}. A split returns{"segmented": [ … ]}, one value per row with its label (campaign_tag,campaign_type,event_category,period). - Precision: percents come back with two decimals, ratios with four. A percent metric whose denominator is 0 comes back as
0.00%: read it as no data. - 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, and a split by reward pair that the metrics API makes by grouping campaigns instead.
API reference: Talkable API documentation.
Filters and segmentations for this question
| Parameter | Values | Use it to |
|---|---|---|
start_date, end_date | YYYY-MM-DD, e.g. 2026-07-01 (REST also takes M/D/YYYY); both days included; days run in the account time zone | Set the period: one quarter, or 90 days before and after a change |
campaign_ids[] | ids from GET /api/v2/campaigns, which lists id, name, appearance, status, tag_names and live_period | Read one reward pair: filter each metric to the campaigns that pay it. Leave out campaigns with status Test |
campaign_, segment_ | the tags on your campaigns, for example offer-15 / offer-20 | Filter to one tag, or split by tag. The split returns one row per tag, so a campaign with three tags sits in three rows |
segment_ | post_purchase, standalone, dashboard, floating_, gleam, claim_by_name | Hold the placement still. Campaigns with no type sit in the total only: “Other campaigns (no type)” = total − sum of the rows |
segment_ | one row per event category; the purchase row of ideal_ | Read friend referral sales on purchases, the base of # Ideal FR sales |
segment_ | day, week, month, quarter, year; up to 1,000 rows per request | The weeks around a change |
exclude_ | default true | Test traffic is already out of the activity metrics; sales metrics always leave it out |
MCP "segment_ | one row per reward pair, labelled AD: $15, FR: $20; the response's total is the sum of the rows | The funnel per reward pair in one call. Campaigns outside any pair are the difference from a call without segment_by |
MCP "segment_ | rows labelled campaign_ | Two reward pairs inside one placement |
MCP list_ with campaign_id | type (Referrer = advocate reward, Click = friend reward), amount, percentage_, coupon_, qualification_ | The reward a campaign pays: read the coupon list's amount |
MCP "segment_ with split_test_key | one row per variant, labelled with the test's name, the variant and its traffic share; keys from list_ | A reward A/B test, read per variant |
| MCP names | period_start / period_end, campaign_ids, campaign_tags, exclude_qa, exclude_, event_ | Several metrics per call from an agent; exclude_ for net revenue |
Examples in four tabs
The same analysis four ways: ask in plain language, call the Talkable MCP server, send the HTTP request, or run the Python script.
Talkable AI Assistant (in your Talkable admin; what it can report)
The Assistant already knows the Talkable metrics, your campaigns and their rewards, so one sentence is enough:
Split my referral funnel for July 1 – September 30, 2026 by incentive combination, with advocacy rate and conversion rate for each reward pair, and add how many advocate and friend coupons were issued and used.
Your own agent (OpenClaw, Claude Code or any other agent)
Your agent does not know how Talkable defines a reward pair, a friend referral sale or a used coupon. Send it the same sentence and use the method in this report:
Split my referral funnel for July 1 – September 30, 2026 by incentive combination, with advocacy rate and conversion rate for each reward pair, and add how many advocate and friend coupons were issued and used. Use the method in this report: https://get.talkable.com/analytics/reward-size-and-conversion
The agent also needs your API key or a connection to the Talkable MCP server.
Talkable MCP server, tools calculate_metric, list_incentives, list_split_tests
To connect your agent (endpoint, credentials, client set-up), see the Talkable MCP server documentation. The funnel per reward pair, in two calls of six metrics:
// calculate_metric: the six counts per reward pair
{
"site_slug": "your-site",
"metrics": ["advocate_impressions", "sharers", "shares", "clicks", "visits",
"ideal_friend_sales_count"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30",
"segment_by": ["incentive_combinations"]
}
// calculate_metric: revenue, rates and coupons issued per reward pair
{
"site_slug": "your-site",
"metrics": ["ideal_friend_sales_sum", "advocacy_percentage", "visit_percentage",
"conversion_percentage", "advocate_coupons_issued_count",
"friend_coupons_issued_count"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30",
"segment_by": ["incentive_combinations"]
}
- Each metric comes back with one key per reward pair, such as
incentive_combinations=AD: $15, FR: $20, and atotalthat is the sum of those rows. A missing row means zero. - A reward pair with clicks or visits but no impressions is an earlier pair whose links are still being opened.
- The response also carries a
metrics_aggregation_url, a Talkable admin path that opens the same numbers in the Metrics Aggregation Report. - A call with many more metrics can time out: keep about six per call.
Coupons used are counted for the whole site, so read them with the site totals, without segment_by:
{
"site_slug": "your-site",
"metrics": ["advocate_coupons_issued_count", "friend_coupons_issued_count",
"advocate_coupons_used_count", "friend_coupons_used_count",
"advocate_coupons_used_percentage", "friend_coupons_used_percentage"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30"
}
Two reward pairs inside one placement, then the rewards behind one campaign, then one reward A/B test per variant:
// calculate_metric: placement and reward pair together
{
"site_slug": "your-site",
"metrics": ["advocate_impressions", "sharers", "visits", "ideal_friend_sales_count",
"advocacy_percentage", "conversion_percentage"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30",
"segment_by": ["campaign_types", "incentive_combinations"]
}
// list_incentives: the rewards a campaign pays
{"site_slug": "your-site", "campaign_id": 123456}
// calculate_metric: one A/B test, per variant (key from list_split_tests)
{
"site_slug": "your-site",
"metrics": ["advocate_impressions", "sharers", "advocacy_percentage", "visits",
"ideal_friend_sales_count", "conversion_percentage"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-08-15",
"segment_by": ["split_test"],
"split_test_key": "incentive_friend_20_vs_25"
}
list_incentivesreturns one object per reward:"type": "ReferrerIncentive"(advocate reward) or"ClickIncentive"(friend reward),"amount","percentage_discount","coupon_lists": [{"amount": …}]and the qualification criteria. The coupon list's amount is the value on the coupon.- A split-test row is labelled with the test's name, its key, the variant and its traffic share. End the period on the day the winner was selected: after it, every new advocate gets the winning variant.
- Use custom dates as above: a preset such as
last quarteris a rolling window, not the calendar quarter.
HTTP (curl): the raw request any language can send
The responses below are the shapes the Python script parses, on the worked example's illustrative numbers. Authentication and errors: Talkable API introduction.
# the campaigns, with placement, status and tags
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/campaigns?site_slug=$TALKABLE_SITE_SLUG"
# -> {"ok":true,"result":{"campaigns":[
# {"id":101,"name":"Friend $20 referral page","appearance":"inline","status":"Live",
# "tag_names":["offer-20","referral-page"],"live_period":{"starts_at":"2026-06-01T00:00:00.000-07:00","ends_at":null}},
# {"id":100,"name":"Friend $15 referral page","appearance":"inline","status":"Disabled",
# "tag_names":["offer-15","referral-page"],"live_period":{"starts_at":"2025-11-01T00:00:00.000-07:00","ends_at":"2026-05-31T23:59:59.000-07:00"}}]}}
# one metric, one period, one reward pair: replace 101 with the ids of its campaigns
# from the first call, one campaign_ids[] per id
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/sharers?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-06-01&end_date=2026-06-30&campaign_ids[]=101"
# -> {"ok":true,"result":{"plain":432,"formatted":"432","result_type":"number"}}
# the same split by campaign tag (one row per tag; rows overlap when a campaign carries several tags)
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/visits/segmentize?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-06-01&end_date=2026-06-30&segment_by[campaign_tags]=true"
# -> {"ok":true,"result":{"segmented":[
# {"plain":760,"formatted":"760","result_type":"number","campaign_tag":"offer-20"},
# {"plain":60,"formatted":"60","result_type":"number","campaign_tag":"offer-15"},
# {"plain":820,"formatted":"820","result_type":"number","campaign_tag":"referral-page"}]}}
# friend referral sales of one reward pair, the purchase row (101 = your campaign ids)
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/ideal_friend_sales_count/segmentize?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-06-01&end_date=2026-06-30&campaign_ids[]=101&segment_by[event_categories]=true"
# -> {"ok":true,"result":{"segmented":[
# {"plain":0,"formatted":"0","result_type":"number","event_category":"affiliate_member"},
# {"plain":114,"formatted":"114","result_type":"number","event_category":"purchase"}]}}
# redemption, whole site
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/friend_coupons_used_percentage?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-06-01&end_date=2026-06-30"
# -> {"ok":true,"result":{"plain":25.0,"formatted":"25.0%","result_type":"percent"}}
- Replace 101 with the ids of the pair's campaigns from the first call; an id that is not a campaign of your site returns “`campaign_ids` contains non-existent ID.” Repeat the filtered call for each identifier in the table and each reward pair.
- The
-gflag stops curl from interpreting the square brackets incampaign_ids[]andsegment_by[…]. - An error comes back as
{"ok":false,"error_message":"…"}, for exampleNo metric found.for an unknown identifier.
Python: the full script
Prints the six counts, five rates, friend referral revenue and coupons issued per reward pair. For each selected ID, six campaign-type metric calls identify its contributing placements, including Standalone, Advocate dashboard, Floating widget and Claim by name; appearance is not used to guess placement. The ID-level counts must reconcile with the group's six counts. An unsupported placement is withheld without excluding supported placements in the same tag, but only if all six counts reconcile; omitted unsupported activity that breaks reconciliation still withholds the group. An ID with zero counts at all six stages does not restrict coverage. Each contributing ID must cover the whole calendar window on that placement, including the entire last day, or the comparison is withheld. This preserves gaps and prevents a replacement from hiding an expired ID's tail. Comparisons still require impressions, visits and the reading floors. Totals and reconciliation keep all events. Verify past settings: campaign metadata is not versioned history. It adds the site's redemption rates with the check against sales.
Needs Python 3.9+, IANA time-zone data and requests (pip install requests). If the system has no IANA database (common on Windows), run pip install tzdata in the Python environment used for this example. This is a reader setup step, not a website app dependency. A missing TALKABLE_ACCOUNT_TIME_ZONE needs the verified account zone; an invalid or unresolvable value needs a valid IANA name and available time-zone data. Set TALKABLE_API_KEY, TALKABLE_SITE_SLUG and TALKABLE_ACCOUNT_TIME_ZONE. For the last setting, use the account's verified IANA time-zone identifier, such as America/Los_Angeles only if that matches the account setting. The API uses account-zone calendar days; one timestamp's offset does not establish that zone or its daylight-saving changes. Unknown zone or timestamps withhold comparison, not totals. A finite end must conservatively reach the next local midnight after the last reporting day; an expiry earlier on that day is not full coverage.
"""Referral funnel per reward group for one Talkable site: six counts, five rates, friend referral revenue and
reward coupons, for the whole program and for each group of campaigns that pays the same rewards.
Usage:
pip install requests
# If the system IANA database is absent (common on Windows): pip install tzdata
export TALKABLE_API_KEY=... # All site settings -> General -> Integrations -> API integration: "API key"
export TALKABLE_SITE_SLUG=... # same page, "Site ID"
export TALKABLE_ACCOUNT_TIME_ZONE=... # verified account IANA zone, not a timestamp offset
python3 reward_funnel.py 2026-07-01 2026-09-30 offer
^ start ^ end ^ tag pattern (optional, default "offer")
A reward group is the set of campaigns whose first tag matching the pattern (a regular expression, any case)
is the same, so a store that tags its campaigns offer-15 and offer-20 gets one row per reward. Campaigns
with status Test are left out. Every other campaign, tagged or not, sits in the row "Campaigns without a
reward tag" = site total - sum of the groups, so the table always ties to the site total. A group's counts
are each metric filtered to that group's campaign ids. Friend referral sales and friend referral revenue
are read from the purchase row of the event-category split (purchases only, the Metrics Aggregation
engine's figure). Coupons used are counted at checkout for the whole site, so the redemption rates are
site-level. Campaigns without a matching reward tag remain in the residual row.
Campaign-type metric rows for each selected ID identify its contributing placements across all six stages;
appearance is not a campaign type. Six calls per selected ID are summed and checked against the group's counts.
Unsupported placements are withheld without excluding reconciled supported placements in the same reward tag.
If unsupported activity is absent from the split and totals do not reconcile, the group remains unqualified.
IDs with zero counts at every stage do not restrict coverage. Every contributing ID on the placement must
cover the whole calendar window, including its last day: a replacement cannot hide an expired ID's tail.
Full offset-bearing live timestamps are retained. Set TALKABLE_ACCOUNT_TIME_ZONE to the account's verified
IANA zone (for example America/Los_Angeles, only if that is the account setting); never infer it from an offset.
Missing zone, unknown timestamps, gaps or unreconciled evidence withhold comparison, not reported counts.
Conservatively require a finite end at or after the next local midnight; an end date alone is not a full day.
Counts and reconciliation totals still include all events. Campaign metadata is not a versioned history; verify past
reward settings and live dates. Comparisons require impressions and visits and the reading floors of
Talkable's A/B study (700 impressions for advocacy, 100 visits for conversion), never on mixed totals. Redemption = coupons used in the
window divided by coupons issued in the window (not a cohort of the window's coupons), so a longer window
reads it best.
Requires Python 3.9+ (standard-library zoneinfo) and IANA time-zone data. If the system database is absent,
install tzdata with pip install tzdata in this example's Python environment (not an app dependency).
Dates are YYYY-MM-DD (M/D/YYYY also accepted), both days included, in the account time zone. Money is in
the site's reporting currency. Rates: percents to 2 decimals, ratios to 4, "n/a" when the denominator is 0
(the API's own percentage metrics return 0.00% there instead: read that as no data).
"""
import os
import re
import sys
import time
from datetime import date, datetime, timedelta, timezone
from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
import requests
API = "https://www.talkable.com/api/v2"
STAGES = [ # article term -> API metric identifier
("Impressions", "advocate_impressions"),
("Sharers", "sharers"),
("Shares", "shares"),
("Clicks", "clicks"),
("Visits", "visits"),
("Friend referral sales", "ideal_friend_sales_count"),
]
MONEY = [("Friend referral revenue", "ideal_friend_sales_sum")]
PURCHASES = {"ideal_friend_sales_count", "ideal_friend_sales_sum"} # read the purchase row of the event split
ISSUED = [ # reward coupons issued: split by campaign, like the funnel counts
("Advocate coupons issued", "advocate_coupons_issued_count"),
("Friend coupons issued", "friend_coupons_issued_count"),
]
USED = [ # reward coupons used: counted at checkout for the whole site, so read on the site total only
("Advocate coupons used", "advocate_coupons_used_count"),
("Friend coupons used", "friend_coupons_used_count"),
]
RATES = [ # rate -> (numerator, denominator, unit)
("Advocacy rate", "Sharers", "Impressions", "%"),
("Sharing rate", "Shares", "Sharers", "ratio"),
("Click rate", "Clicks", "Shares", "ratio"),
("Visit rate", "Visits", "Clicks", "%"),
("Conversion rate", "Friend referral sales", "Visits", "%"),
]
ROW = STAGES + MONEY + ISSUED # what every group row holds: 9 calls per group
REST = "Campaigns without a reward tag" # site total - sum of the groups
RATE_MATERIAL = 0.10 # working rule: absolute gap / lower rate under 10% is noise, independent of group order
FLOOR = {"Advocacy rate": ("Impressions", 700), "Conversion rate": ("Visits", 100)} # reading floors of Talkable's A/B study
PLACEMENT = {"post_purchase": "Post-purchase", "standalone": "Standalone", "dashboard": "Advocate dashboard",
"floating_widget": "Floating widget", "gleam": "Reward Gleam", "claim_by_name": "Claim by name"}
SPLIT = STAGES # six-stage contribution evidence, 6 calls per selected ID
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 budget spent
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."
raise RuntimeError(f"{path}: HTTP {r.status_code}: {body.get('error_message')}")
r.raise_for_status()
return body["result"]
def metric(name, start, end, ids=None):
"""One metric for the period as {"plain": ..., "formatted": ...}; with ids, filtered to those campaigns.
The two sales metrics come from the purchase row of the event-category split."""
params = {"start_date": start, "end_date": end}
if ids:
params["campaign_ids[]"] = ids
if name not in PURCHASES:
return get(f"metrics/{name}", **params)
rows = get(f"metrics/{name}/segmentize", **params, **{"segment_by[event_categories]": "true"})["segmented"]
return next((r for r in rows if r.get("event_category") == "purchase"),
{"plain": 0, "formatted": "0", "result_type": "number"})
def rate(num, den, unit):
if not den:
return None
return round(100 * num / den, 2) if unit == "%" else round(num / den, 4)
def fmt(x, unit=""):
if x is None:
return "n/a"
if unit == "%":
return f"{x:.2f}%"
if unit == "ratio":
return f"{x:.4f}"
if unit == "money":
return f"{x:,.2f}"
return f"{x:,}"
def account_zone():
"""Set the account's verified IANA time zone; never infer it from one timestamp's offset."""
name = os.environ.get("TALKABLE_ACCOUNT_TIME_ZONE")
try:
return ZoneInfo(name) if name else None
except (ZoneInfoNotFoundError, ValueError):
return None
def timestamp(value):
"""Keep the complete serialized instant; date-only or offset-free values are unknown."""
if not isinstance(value, str) or "T" not in value:
return None
try:
instant = datetime.fromisoformat(value.replace("Z", "+00:00"))
return instant.astimezone(timezone.utc) if instant.utcoffset() is not None else None
except ValueError:
return None
def covers(period, first_day, last_day):
"""Conservative whole calendar window, including the last day, in the verified account zone."""
zone = account_zone()
first = timestamp(period.get("starts_at"))
end_value = period.get("ends_at")
last = timestamp(end_value)
if zone is None or first is None or "ends_at" not in period or (end_value is not None and last is None):
return False
lo = datetime.combine(date.fromisoformat(first_day), datetime.min.time(), zone).astimezone(timezone.utc)
# Next local midnight, not a fixed number of hours: account-zone DST can change within the window.
hi = datetime.combine(date.fromisoformat(last_day) + timedelta(days=1),
datetime.min.time(), zone).astimezone(timezone.utc)
return first <= lo and (end_value is None or last >= hi)
def reward_groups(pattern):
"""Group selected IDs, campaign listing, full live timestamps per ID and site tags.
Unknown timestamps remain unknown; null ends are unbounded. Test campaigns are left out."""
found = re.compile(pattern, re.I)
ids, listing, spans, tags = {}, {}, {}, set()
campaigns = get("campaigns")["campaigns"]
for c in campaigns:
if c["status"] == "Test":
continue
tags.update(c["tag_names"])
tag = next((t for t in c["tag_names"] if found.search(t)), None)
if tag is None:
continue
period = c.get("live_period") or {}
begins, ends = period.get("starts_at"), period.get("ends_at")
ids.setdefault(tag, []).append(c["id"]) # keyed by id: two campaigns can share a name
listing.setdefault(tag, []).append(f"{c['name']} (id {c['id']}, {c['appearance']}, {c['status']}, "
f"live {begins or '?'} -> {ends or 'unbounded/unknown'})")
spans.setdefault(tag, {})[c["id"]] = period
return ids, listing, spans, sorted(tags)
def counts(start, end, ids=None):
raw = {term: metric(m, start, end, ids) for term, m in ROW}
c = {term: r["plain"] for term, r in raw.items()}
c["currency"] = re.sub(r"[\d.,\s-]", "", raw["Friend referral revenue"]["formatted"]) # e.g. "$"
return c
def row(label, c):
return ((label,) + tuple(fmt(c[t]) for t, _ in STAGES)
+ tuple(fmt(rate(c[n], c[d], u), u) for _, n, d, u in RATES)
+ (fmt(c["Friend referral revenue"], "money"),) + tuple(fmt(c[t]) for t, _ in ISSUED))
def print_table(head, rows):
widths = [max(len(str(r[i])) for r in [head] + rows) for i in range(len(head))]
for r in [head] + rows:
print(" " + " ".join(str(x).ljust(w) if i == 0 else str(x).rjust(w)
for i, (x, w) in enumerate(zip(r, widths))))
def comparable(windows, first_day, last_day):
"""Every contributing ID must cover the window: a replacement cannot hide an expired ID's tail."""
return bool(windows) and all(covers(period, first_day, last_day) for period in windows)
def by_type(start, end, ids):
"""{campaign type: {term: value}} for selected IDs only; six stages, including purchase sales."""
cols = {}
for term, m in SPLIT:
params = {"campaign_ids[]": ids, "segment_by[campaign_types]": "true"}
if m in PURCHASES:
params["segment_by[event_categories]"] = "true"
result = get(f"metrics/{m}/segmentize", start_date=start, end_date=end, **params)
rows = result.get("segmented")
if not isinstance(rows, list) or any("campaign_type" not in r or "plain" not in r or
(m in PURCHASES and "event_category" not in r) for r in rows):
raise RuntimeError(f"campaign-type contribution evidence missing for IDs {ids}, metric {m}; comparison stopped")
cols[term] = {r["campaign_type"]: r["plain"] for r in rows
if m not in PURCHASES or r["event_category"] == "purchase"}
types = {t for col in cols.values() for t in col}
return {t: {term: cols[term].get(t, 0) for term, _ in SPLIT} for t in types}
def compare(groups, spans, ids, start, end, first_day, last_day):
"""Compare tail-free placement windows using selected-ID evidence, never appearance guesses."""
if account_zone() is None:
problem = ("TALKABLE_ACCOUNT_TIME_ZONE is missing; set the verified account IANA zone."
if not os.environ.get("TALKABLE_ACCOUNT_TIME_ZONE") else
"TALKABLE_ACCOUNT_TIME_ZONE is invalid or unresolvable; verify the IANA name and install tzdata "
"in this example's Python environment if the system IANA database is absent.")
print(f" Comparison unavailable: {problem} "
"A serialized offset alone cannot establish whole calendar-day coverage; totals are unchanged.")
return 0
if len(groups) < 2:
print(" Fewer than two selected reward groups: no pairwise comparison.")
return 0
split, contributors, whole = {}, {}, []
extra = 0
for g, c in groups.items():
split[g], contributors[g] = {}, {}
for campaign_id in ids[g]:
evidence = by_type(start, end, [campaign_id])
extra += len(SPLIT)
for t, values in evidence.items():
dest = split[g].setdefault(t, dict.fromkeys(dict(SPLIT), 0))
for term, value in values.items():
dest[term] += value
if any(values.values()): # zero across all six stages: historical noncontributor
contributors[g].setdefault(t, []).append(spans[g].get(campaign_id, {}))
if any(sum(v[term] for v in split[g].values()) != c[term] for term, _ in SPLIT):
print(f" {g}: selected-ID campaign-type evidence does not reconcile across the six stages; "
"comparison unavailable, reported totals unchanged.")
continue
unknown = [t for t, v in split[g].items() if t not in PLACEMENT and any(v.values())]
if unknown:
print(f" {g}: unassigned or unsupported contributing campaign type {unknown}; "
"those placements are withheld, reconciled supported placements remain eligible.")
whole.append(g)
if len(whole) < 2:
print(" Fewer than two groups have reconciled placement evidence; no comparison (not a live-status verdict).")
return extra
print(" Compared inside each campaign type (placement held still); the mixed totals are not compared:")
shown = 0
for t in [t for t in PLACEMENT if t in set().union(*split.values())]:
here = []
for g in whole:
if not comparable(contributors[g].get(t, []), first_day, last_day):
print(f" {PLACEMENT[t]}, {g}: whole-window coverage for every contributing ID not established "
"(gap, partial last day, unknown timestamp or expired-ID tail); not compared")
elif split[g].get(t, {}).get("Impressions") and split[g][t].get("Visits"):
here.append(g)
shown += len(here) > 1
for i, a in enumerate(here):
for b in here[i + 1:]:
for name, n, d, u in (RATES[0], RATES[4]):
base, least = FLOOR[name]
if min(split[a][t][base], split[b][t][base]) < least:
print(f" {PLACEMENT[t]}, {name}: not compared, under {least:,} {base.lower()} in a group")
continue
ra, rb = rate(split[a][t][n], split[a][t][d], u), rate(split[b][t][n], split[b][t][d], u)
if ra is None or rb is None:
print(f" {PLACEMENT[t]}, {name}: eligible rate missing, not compared")
continue
if ra == 0 or rb == 0:
print(f" {PLACEMENT[t]}, {name}: {a} {fmt(ra, u)} vs {b} {fmt(rb, u)}; "
f"gap {ra - rb:+.2f} percentage points; relative comparison to zero undefined")
continue
diff = (ra - rb) / rb
material_gap = abs(ra - rb) / min(ra, rb) # same verdict in either group order
verdict = ("a gap of 10% or more of the lower rate: check reach on this placement before crediting the reward"
if material_gap >= RATE_MATERIAL else "under 10% of the lower rate: read as noise")
print(f" {PLACEMENT[t]}, {name}: {a} {fmt(ra, u)} vs {b} {fmt(rb, u)}; "
f"change relative to second group ({b}): {100 * diff:+.1f}%; "
f"absolute gap / lower rate: {100 * material_gap:.1f}% ({verdict})")
if not shown:
print(" No campaign type has two groups with proven full-window contributor coverage, impressions and visits: no eligible comparison.")
return extra
def valid(day):
for f in ("%Y-%m-%d", "%m/%d/%Y"):
try:
return datetime.strptime(day, f)
except ValueError:
continue
return None
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) not in (2, 3) or None in map(valid, args[:2]):
sys.exit("usage: python3 reward_funnel.py START END [TAG_PATTERN] (dates YYYY-MM-DD; pattern default \"offer\")")
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 = args[0], args[1]
pattern = args[2] if len(args) == 3 else "offer"
total = counts(start, end)
used = {term: metric(m, start, end)["plain"] for term, m in USED}
ids, listing, spans, tags = reward_groups(pattern)
print(f"Referral funnel per reward group {SITE} {start} -> {end} "
f"(money in the site's reporting currency, {total['currency']})")
if ids:
print(f"\nReward groups, by the first campaign tag matching \"{pattern}\" (campaigns with status Test left out):")
for tag, names in listing.items():
print(f" {tag}: " + "; ".join(names))
else:
print(f"\nNo campaign tag matches \"{pattern}\", so only the site total is shown. Tags on this site: "
+ (", ".join(tags) or "none") + ". Run again with a pattern that picks the reward tags.")
rows, seen, per_group = [], {t: 0 for t, _ in ROW}, {}
for tag, cids in ids.items():
c = counts(start, end, cids)
per_group[tag] = c
rows.append(row(tag, c))
for t, _ in ROW:
seen[t] += c[t]
rest = {t: round(total[t] - seen[t], 2) for t, _ in ROW}
if ids and any(rest.values()):
rows.append(row(REST, rest))
print(f"\nNote: \"{REST}\" = site total minus selected reward groups; check campaign tags and IDs.")
rows.append(row("Total", total))
print("\nSix counts, five rates, friend referral revenue and reward coupons issued, per reward group")
print_table(("group",) + tuple(t for t, _ in STAGES) + tuple(n for n, _, _, _ in RATES)
+ ("Friend referral revenue",) + tuple(t for t, _ in ISSUED), rows)
extra = 0
if per_group:
print("\nReward groups compared on advocacy rate (the share page) and conversion rate (the friend). "
"Working rule Talkable's analysts apply: an absolute gap under 10% of the lower rate is noise "
"(practice, not a statistical test).")
first_day, last_day = valid(start).date().isoformat(), valid(end).date().isoformat()
extra = compare(per_group, spans, ids, start, end, first_day, last_day)
print("\nReward coupons, whole site: coupons used in the window / coupons issued in the window (not a cohort; "
"a longer window reads it best)")
for (iterm, _), (uterm, _) in zip(ISSUED, USED):
print(f" {uterm}: {fmt(used[uterm])} of {fmt(total[iterm])} issued "
f"({fmt(rate(used[uterm], total[iterm], '%'), '%')})")
print(f" Check: friend coupons used {fmt(used['Friend coupons used'])} against friend referral sales "
f"{fmt(total['Friend referral sales'])} in the same window. If coupons used are far below the sales, the "
"friend reward may not be a coupon or its use may not be tracked: read redemption from the Coupons export.")
print(f"\nCalls: 9 for the site totals, 2 for coupons used, 1 for the campaign list, 9 per reward group, "
f"6 per selected ID for campaign-type contribution evidence ({len(ids)} groups here, "
f"{12 + 9 * len(ids) + extra} calls); "
"on HTTP 503 or 429 it waits 5, 10, 20 and 40 seconds between attempts.")
Reconcile with the admin report
- Open the report. In the Talkable admin: your site → All reports → Metrics Aggregation. The MCP response's
metrics_aggregation_urlopens it with the same columns and split. - Set the same filters. The same start and end dates; for one reward pair, the same campaigns in the campaign filter; 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”.
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;
- whether you compared # Ideal FR sales, 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.
Troubleshooting
- “No metric found.” (HTTP 400)
Why: the identifier is not one the API knows.
Fix: impressions areadvocate_impressions; coupons arefriend_coupons_issued_countandfriend_coupons_used_count, notcoupons_redeemed. - “`start_date` is not a valid Date” (HTTP 400)
Why: the date is not YYYY-MM-DD or M/D/YYYY. Day-first dates such as 30/9/2026 are invalid.
Fix: send2026-09-30. - “This segmentation produces … rows, over the synchronous limit of 1000” (HTTP 422)
Why: a daily split over a long period returns more than 1,000 rows.
Fix: narrow the period, use weeks, or schedule it as the message says:POST /api/v2/metrics/{metric}/segmentize, then pollGET …/segmentize/{job_id}. - 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. The script makes 12 calls for the site, plus 9 per reward pair (30 for two pairs), plus 6 per selected ID to establish six-stage campaign-type contribution when comparing two or more groups with a verified account time zone. On a 503 or 429 it waits 5, 10, 20 and 40 seconds between attempts, then stops with the HTTP error. - “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). - A reward pair with visits and sales but no impressions
Why: its campaigns are switched off and friends are still opening links shared earlier.
Fix: read its conversion rate only; check the campaigns'statusandlive_period. - Coupons used do not change with a campaign filter
Why: coupon use is counted at checkout for the whole site, while coupons issued split by campaign. A filtered redemption rate therefore divides the site's used coupons by one campaign's issued coupons.
Fix: read redemption without a campaign filter. - The reward-pair split adds up to less than the site total
Why: the MCPtotalof anincentive_combinationssplit is the sum of its rows; campaigns outside any reward pair are not in a row.
Fix: take the site total from a call withoutsegment_byand show the difference as its own row. - Placement rows sum to less than the total
Why: Leaderboard, Tiered Rewards and full-bleed Invite campaigns run as a page of their own carry no campaign type, so they sit in the total only.
Fix: add “Other campaigns (no type)” = total − sum of the rows, and read it against the Standalone band. - A reward campaign is missing from its group
Why: the script selects each campaign's first tag matching the pattern and leaves out Test campaigns. Activity outside the selected reward groups remains in “Campaigns without a reward tag” = site total − sum of groups; that residual is not evidence of a campaign-list response cap.
Fix: add the missing campaign's id to its group withcampaign_ids[], or find it through MCPlist_campaignswithtag_name. - The same campaign name twice in a campaign split
Why: a relaunched copy keeps its name, andsegment_by[campaigns]=truelabels rows by name.
Fix: group by id withcampaign_ids[], as the script does. - “`campaign_ids` contains non-existent ID.” (HTTP 400)
Why: the id is not a campaign of this site, for example the 101 of the examples above.
Fix: take the numeric id fromGET /api/v2/campaignsor the campaign's admin URL. - 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
- Your own reward A/B test. The MCP split by
split_testreturns the counts per variant. End the period on the day the winner was selected, and count a variant once it reaches 700 impressions (100 visits for conversion). Setting up a test with Talkable AI: A/B tests with AI. - Two reward pairs inside one placement. Through MCP, split by
campaign_typesandincentive_combinationstogether. Through the metrics API, usesegment_by[campaign_types]=truewithcampaign_ids[]for each selected ID and all six funnel counts. Appearance alone cannot distinguish Standalone from Advocate dashboard or Floating widget from Claim by name. Reconcile the ID-level rows to each reward group's counts; exclude a historical ID from coverage checks only when all six counts are zero, and require every contributor to cover the entire account-zone window. - The weeks around a change.
segment_by[period]=weekon each metric, filtered to each reward pair, for 90 days before and after the switch. - Net revenue. Through MCP,
exclude_refunded: trueleaves refunded orders out of the money metrics. - Rows, not totals. Which rewards were paid, voided or left unused, and which coupons were redeemed, are row-level questions for the exportable reports (reports and exports): Incentive Outcomes, Coupons, Referrals. In the Talkable admin they download as CSV; from an agent,
list_grid_reports,schedule_grid_exportandget_grid_exportschedule and read the same files.
Methodology
- Figures
- Talkable benchmark data: each program's figure is computed first, then the median and the typical range (25th to 75th percentile) across programs. Cells under five programs are not published; no program is named.
- Studies
- Reward-amount A/B tests created 2014 – August 2026; 174 programs, January 2025 – June 2026; 32 amount-only reward changes, 2022 – June 2026.
- Code
- The requests and the script were run on a live Talkable site; REST and MCP agree.
FAQ
Does a bigger referral reward increase conversion?
Barely, in Talkable's A/B tests: a higher friend reward moved conversion rate by +1.3% at the median program (higher at 7 of 12). It moved advocacy rate by +18.6% (17 of 18; Talkable benchmark data, tests 2014 – August 2026).
What is a normal referral reward?
$20 to $25 or 20% on both sides at the median Talkable program (174 programs, January 2025 – June 2026). Fixed advocate rewards rise with the order: $15 where friend referral AOV is under $50, $40 at $200 and over.
Should the friend or the advocate get the bigger referral reward?
Usually the same: 93 of 114 programs paying one reward type (Talkable benchmark data, January 2025 – June 2026). For more sharers, raise the friend's: in A/B tests (2014 – 2026) it moved advocacy +18.6% (18 programs), the advocate's +8.6% (15).
Why did referral sales fall after we raised the reward?
Check impressions per reward pair first: a new amount usually goes live as a new campaign, and fewer customers reached means fewer sales at unchanged rates. Talkable benchmark data: 8 of 13 advocate-reward raises came on falling advocacy (2022–2026).
How much does a bigger referral reward cost?
The size of the raise, paid on every coupon that gets used. Talkable's median redemption rate is 25.1% of friend rewards (177 programs) and 8.9% of advocate rewards (121 programs; Talkable benchmark data, 2023 – Q1 2025).
How do I see my referral funnel per reward from the Talkable API?
GET https://www.talkable.com/api/v2/metrics/{metric} with site_slug, YYYY-MM-DD dates, a Bearer API key and campaign_ids[] set to the campaigns that pay one reward pair. Repeat per metric and per pair.
Learn more
In the Talkable documentation:
| Incentive criteria | The conditions on an advocate or friend reward, such as a minimum order or a new customer |
| Coupons | Single-use and multi-use coupons, coupon lists and the value on the coupon |
| Rewards and placements with AI | Changing a reward's type, amount or qualification criteria with Talkable AI |
| Reporting with Talkable AI | Metrics, splits and report exports from the AI Assistant or your own agent |
| Talkable MCP server | Connect Claude Code, ChatGPT, Cursor or any MCP client |
| Talkable API | Authentication, response format, errors and throttling |
