Add a Refer a Friend block to your email

Last updated: November 11, 2026

The Refer a friend block adds a button to your email that lets shoppers share a discount with a friend and earn their own reward. When a shopper taps the button, a Zaymo page opens where they text a friend a unique discount code. When they come back to the page, their own reward code unlocks.

Who can use it

The block is available to brands that send with Klaviyo and have the Gamification plan. If you send with another email platform, the block shows Not available. If your plan doesn't include Gamification, it shows Upgrade, and clicking it takes you to your subscription settings.

Before you start

  • Connect Shopify on the Integrations page. Zaymo creates the discounts in Shopify, and the codes send shoppers to your store.

  • Two discounts: the Friend's discount (what the friend gets) and the Shopper's discount (the reward for sharing). Both are percentage-off discounts, and you create them right inside the block. Klaviyo coupons can't be used with this block.

Add the block

  1. Open your email in the builder.

  2. In the blocks panel on the left, open the Zaymo tab.

  3. Find Refer a friend and drag it into your email.

Until both discounts are linked, the block is left out of your email when it's sent to Klaviyo, so finish the next steps first.

Set it up

Select the block to see its settings.

  • Shopper's discount: pick an existing referral coupon, or choose Create new coupon. In the Create referral coupon window, set Percentage off, an optional Coupon name (leave it blank and one is made for you), Duration (First order only or Every order) and an optional Minimum purchase requirement, then click Create & apply. Zaymo creates a Shopify discount with 2,000 one-time codes and adds more when they run low. To switch to a different coupon, click Change.

  • Friend's discount: the same steps, for the friend's offer.

  • Max friends per shopper: how many friends one shopper can invite: 1, 2, 3, 5, 10 or Unlimited. The default is Unlimited.

  • Email button text: the label on the button in your email. {reward} shows the shopper's discount, so "Text a friend, get {reward}" reads "Text a friend, get 20%". The line under the field shows how it will look. You can also edit the label right on the canvas.

  • Text message to friend: the text your shopper sends. It must include {link} (a link to your store with the friend's code already applied) or {code} (just the code). You can also use {offer} for the friend's discount and {brand} for your brand name.

  • Friend's link goes to: the page on your store the friend lands on. Leave it blank for your home page.

  • Shop button text: the button the shopper sees once their code unlocks. The default is Shop now.

  • Shop button goes to: where that button takes the shopper. Leave it blank for your home page.

  • Display: choose which devices and inboxes show the block, and add conditional logic.

You can also change the block's padding, font, font size, button color, text color and button radius.

What your shopper sees

  1. The shopper taps the button in your email, and your Refer a friend page opens.

  2. They tap Text a friend. On a phone, Messages opens with the text already written, including a unique code for the friend. On some computers, the message is copied instead so they can paste it anywhere.

  3. They send it and come back to the page. After a short countdown, their own reward code appears. From there they can copy the code, tap the shop button to go to your store with the code already applied, or tap Text another friend if they have invites left.

Good to know:

  • Each shopper gets one reward code per offer. If they come back later, the same code shows again.

  • Each shopper can invite up to 10 friends a day, on top of any limit you set with Max friends per shopper.

  • Zaymo doesn't email or text the friend. The friend gets the message your shopper sends.

  • Klaviyo gets two events on the shopper's profile: Referral Text Started and Referral Reward Claimed.

  • If a discount is no longer active, the page tells shoppers the offer has ended. Anyone who already earned a code still sees it.

  • The referral page is in English.

How it looks in other inboxes

The block is a single button in every inbox. The texting and the code unlock happen on the Zaymo page, so every shopper gets the same experience.

Related articles