Shopify discount links: how to create one, send it to the right page, and test it

A discount link puts the code in the shopper's cart for them. Nobody has to type it, so nobody can mistype it. It's the simplest fix for "Enter a valid discount code", as long as the link goes where you think it does.

By Mark Barron, founder of CampaignCart QA ·

In short: open the discount in your admin, choose Promote → Get a shareable link, and copy it. This discount code URL looks like yourstore.com/discount/CODE. Add ?redirect=/products/your-product to land shoppers on a specific page. One discount per link, and it only works while the discount is active.

How to create a Shopify discount link

  1. Create and save the discount code first, with its products or collections set.
  2. Go to Discounts and click the code.
  3. Click Promote, then Get a shareable link.
  4. Choose the page, product or collection the link should open, and optionally a marketing campaign to add its UTM details.
  5. Click Copy link, or download the QR code for print or packaging.

On the Shopify mobile app, open the discount, tap the menu icon, then Get a shareable discount code.

Send the link to a product or collection, not the homepage

If you don't pick a page, the link opens your homepage. For a campaign that's usually the wrong place: the email promised one product, so the link should open that product. You can also edit the link by hand, changing the end from:

https://yourstore.com/discount/SPRING20

to:

https://yourstore.com/discount/SPRING20?redirect=/products/linen-shirt

Any path on your store works after redirect=, such as /collections/spring-sale. You can also add your UTM tracking to the link so the campaign shows up correctly in your analytics.

What a discount link actually does

Limits that catch merchants out

LimitWhat to do about it
One discount per linkFor two offers, send two links, or set the discounts to combine and let shoppers enter the second code.
Works only while the discount is activeCheck the start date. A link sent before the sale starts won't give the discount yet.
App discounts get no link from the Shopify adminAsk the app's developer how to share its discounts.
Combination rules still applyIf the shopper's cart already has a discount that can't combine, Shopify keeps the better one.
Up to 5 product or order codes, plus 1 shipping code, per orderDiscounts added by links count towards it.
Several discounts on the same productThe most recent one is used for the link. Check which discount the link actually applies.
Special characters in codesKeep codes to letters and numbers, so they carry through the link correctly.

How to test a discount link before you send it

The full routine is in our pre-launch testing checklist. If the link opens but the discount doesn't appear, the causes are the same as for a typed code: see Shopify discount code not working.

Check the code behind the link

CampaignCart QA goes through guest checkout on desktop and mobile with your product and percentage code, and compares the discount with what the offer promised, with screenshots. It stops before payment. US stores in USD and English. 3 free checks per store.

Try 3 free checks

Sources