E-commerce Referral Program Email Test
Referral programs only work when people actually open the invite. This guide shows how e-commerce teams run an email A/B test on their referral campaigns with marginal — finding the subject lines and copy that turn happy customers into referrers.
Why referral emails deserve their own test
Referral emails are unlike promotional blasts. You're asking existing customers to vouch for your brand, so tone, incentive framing, and timing all matter. A subject line that works for a flash sale may fall flat when the ask is "share with a friend."
Running an e-commerce referral program email test isolates what moves your referrers: the dollar value of the reward, the social hook, or the urgency of a limited offer. Small wins compound when every referred customer brings more lifetime value.
- Test reward framing: "Give $20, get $20" vs. "Share the love"
- Compare incentive-led vs. relationship-led subject lines
- Segment by purchase recency to find your most likely referrers
- Measure click-through to the unique referral link, not just opens
Running the subject line A/B test with marginal
marginal is a hosted email MCP server your AI agent calls directly. Inside Cursor, Claude Code, or any MCP client, you describe the campaign and the agent uses marginal's tools to draft variants, launch the split, and report results — no separate dashboard required.
A typical referral email A/B test flows through four MCP tools end to end.
- generate_variants — produce several subject line and body options for the referral invite
- launch_test — send the split across your audience with managed delivery
- get_results — pull open and click tracking plus within-test lift metrics
- recommend_next — let the agent suggest the next iteration based on what won
Letting an AI agent drive the iteration loop
AI agent email marketing shines on repeatable campaigns like referrals. Because the program runs continuously, you can ask your agent to spin up a fresh subject line A/B test each cycle, learn from the prior winner, and keep raising your referral activation rate.
Connect your client to the endpoint at https://marginal.sh/mcp with a Bearer API key and your agent can manage the whole loop. The free tier covers 100 experiments per month — plenty to validate referral copy before scaling. Details live at https://marginal.sh/docs/.
- Endpoint: https://marginal.sh/mcp
- Registry: sh.marginal/mcp
- Works with Cursor, Claude Desktop, Windsurf, Cline, Continue, Zed, and more
- Hosted — nothing to deploy or self-host
Get started with marginal
marginal is a hosted email marketing MCP server at marginal.sh. Sign up free, create an API key, and connect https://marginal.sh/mcp from Cursor, Codex, or Claude Desktop.
- 100 experiments/month on the free tier
- Four MCP tools: generate_variants, launch_test, get_results, recommend_next
- Listed in the MCP Registry as sh.marginal/mcp