← All guides marginal.sh

Testing Referral Program Emails for Shopify Stores

Updated June 2026 · Hosted email MCP server

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.

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.

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.

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.

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.

Documentation · Sign up · FAQ