Donum Studio
← Back to blog

How to Give a Free Gift with a Discount Code on Shopify

A discount code is the easiest way to give one group of shoppers something extra: “Use code VIP for a free tote bag.” It’s how most influencer, email and SMS promotions work. When the reward is a free product instead of money off, though, Shopify’s built-in tools make it harder than it should be.

This guide covers when a gift code beats an automatic offer, what Shopify can do on its own, and how to set up gift codes so shoppers actually get their gift.

Gift code or automatic gift?

An automatic gift goes to everyone who qualifies. A gift code goes only to shoppers who have the code. Use a code when you want to:

  • Reward a specific audience. Influencer followers, newsletter subscribers, SMS lists, people at an event or a store opening.
  • Track where sales come from. Give each channel or creator its own code and compare how often each one is used.
  • Keep the offer exclusive. A gift that everyone gets feels like part of the price. A gift that comes with a code feels like a perk.
  • Limit your cost. Cap the total number of uses, or allow one use per customer.

Many stores run both: an automatic gift for every order over a set amount, plus a better gift for shoppers with a code.

What Shopify can do on its own

Shopify’s buy X get Y discount can be created as a discount code. Set what the customer buys (a product, or a minimum purchase amount), set the gift as what they get, and make it free.

It works, with three catches:

  1. The gift isn’t added to the cart. Shoppers have to find the gift product and add it themselves. Until they do, the code shows as not applicable, which many shoppers read as “this code doesn’t work”. We cover this in Shopify Buy X Get Y Doesn’t Add the Free Item to the Cart.
  2. Removing the code doesn’t remove the gift. If a shopper takes the code off, the gift stays in the cart at full price.
  3. Codes entered only at checkout come too late. On most Shopify plans, products can’t be added to the cart at checkout. A shopper who enters the code there and hasn’t already added the gift won’t get it.

Every Shopify discount code also works as a link: https://your-store.com/discount/VIP. Opening it applies the code to the shopper’s cart, then shows your home page. Add ?redirect=/products/tote-bag to send them to a specific page instead.

Share links are the best way to hand out a gift code:

  • Nothing to type or remember. Fewer typos, and no shoppers who forget the code by the time they reach the cart.
  • The code is in the cart from the start, so a gift that needs the code can be added as soon as the cart qualifies, before checkout.
  • They fit anywhere. Influencer bios, email buttons, SMS messages and QR codes on printed flyers or packaging.

Setting up a gift code that works

Give each channel its own code

Use a different code for each influencer or campaign, like ANNA, NEWSLETTER and SMS10. Each code shows its own usage count, so you can see which channel brings in orders.

Set limits before you share

  • Total uses caps your cost if the code spreads further than planned, for example to coupon sites.
  • One use per customer stops the same person claiming the gift on every order. Shopify checks this at checkout using the customer’s email or account.
  • An end date keeps a launch or holiday code from living forever.

Tell shoppers where to enter the code

If you share the code as text, say “Enter VIP in your cart” rather than “at checkout”. Better still, share the link.

Check stock and combinations

  • Make sure the gift has enough stock for the number of uses you allow.
  • Decide whether the gift code can be combined with your other discounts. If a shopper’s other code can’t combine with it, they’ll have to pick one. See Why Shopify Discounts Don’t Combine.

Mistakes to avoid

  • Making shoppers find the gift. “Use code VIP for a free tote” followed by “this code isn’t applicable” loses trust fast. The gift should appear on its own.
  • Leaving the gift behind when the code is removed. A shopper who removes the code and checks out with a full-price tote bag will ask for a refund.
  • Posting an unlimited code publicly. Set a total limit, or the gift budget meant for one creator’s followers can end up on coupon sites.
  • Using a code you already use elsewhere. Shopify codes are unique in your store. Pick a new one for the gift offer.

How Donum: Free Gift with Purchase does it

In Donum: Free Gift with Purchase, any campaign can apply only when shoppers enter your discount code, including on the Free plan:

  • When you create a campaign, set Method to When a customer enters a discount code, then type a code or click Generate. You can limit the total number of uses, or allow one use per customer.
  • Once the code is in the cart, the gift is added automatically as soon as the cart meets the campaign’s conditions. If the shopper removes the code, the gift is removed too.
  • The editor gives you a share link to copy into your bio, email or SMS.
  • It works with every campaign type: a free gift over $100, a gift that shoppers choose, buy X get Y, tiered discounts and more.
  • Your code stays private. It isn’t written into your store’s page source, so codes you give to one creator can’t be read by anyone browsing your site.
  • Gifts are your real products, checked again at checkout.

For step-by-step setup, testing and troubleshooting, see Give a free gift with a discount code. You can also set one up by asking Shopify Sidekick: “Use Donum: Free Gift with Purchase to create a campaign: free tote bag on orders over $100 with code VIP.” See Create and edit campaigns with Shopify Sidekick.