Testing Referral Program Emails for Shopify Stores
Referral emails live or die by their open rate. This guide shows how to run a Shopify referral program email test with marginal, the email MCP server your AI agent can drive end to end.
Why referral emails need their own test cadence
Referral program emails ask customers to do something on your behalf — share a code, invite a friend, earn a reward. That's a higher bar than a standard promo, so the subject line carries more weight in getting the message opened at all.
For Shopify merchants, the referral moment often follows a purchase or a loyalty milestone. Testing how you frame the ask — reward-first, friendship-first, or urgency-first — tells you which angle actually drives shares for your audience.
- Reward-led: "Give $10, get $10" vs. social-led: "Your friends will thank you"
- Test specificity: a named reward amount vs. a vague "earn rewards"
- Compare personalization tokens like first name or last-ordered product
Running the email A/B test with marginal
marginal is a hosted email MCP server built for AI agents. Instead of clicking through a dashboard, you describe the referral campaign in your editor or agent, and the tools handle variant generation, the managed send, and the lift measurement.
A typical Shopify referral program email test flows through four MCP tools: generate_variants drafts subject line options, launch_test ships them as a split send, get_results returns open and click metrics with within-test lift, and recommend_next suggests the follow-up angle to try.
- generate_variants — produce subject line A/B test candidates for your referral offer
- launch_test — run a managed send and track opens and clicks
- get_results — read within-test lift between variants
- recommend_next — get a data-backed next experiment
Letting an AI agent own the loop
Because marginal speaks MCP, AI agent email marketing becomes a real workflow rather than a manual chore. Connect a client like Cursor, Claude Code, Claude Desktop, or Windsurf, point it at the endpoint, and your agent can propose, launch, and read a subject line A/B test without leaving the conversation.
Connect the server at https://marginal.sh/mcp with a Bearer API key (marg_live_...). The free tier covers 100 experiments per month — enough to iterate on referral subject lines across a few customer segments before you commit to a winner.
- Works with Cursor, Codex, Claude Desktop, Claude Code, Windsurf, Cline, Continue, and Zed
- Hosted — no self-hosted server to maintain
- Endpoint: https://marginal.sh/mcp · Docs: https://marginal.sh/docs/
A practical first test for your store
Start narrow. Take your post-purchase referral email and pit two subject line angles against each other on your most recent buyers. Keep the body identical so the test isolates the subject's impact on opens.
Once get_results shows a clear lift, ask your agent for recommend_next and roll the winning angle into a second round — this time testing reward framing or send timing. Small, repeated Shopify referral program email tests compound into a referral funnel that consistently outperforms guesswork.
- Round 1: reward-first vs. social-first subject lines
- Round 2: winning angle vs. an urgency variant
- Hold the email body constant to measure subject impact cleanly
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