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
- Create and save the discount code first, with its products or collections set.
- Go to Discounts and click the code.
- Click Promote, then Get a shareable link.
- Choose the page, product or collection the link should open, and optionally a marketing campaign to add its UTM details.
- 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
- It applies the code to the shopper's next checkout, and to any cart they already have open.
- The code stays with their cart in that browser until it's removed. Opening the link again applies it again.
- The shopper can remove it at checkout with Remove discount.
- It still counts as a discount code: the usual rules on products, minimums, eligibility and dates all apply. The link saves typing; it doesn't make the shopper eligible.
Limits that catch merchants out
| Limit | What to do about it |
|---|---|
| One discount per link | For two offers, send two links, or set the discounts to combine and let shoppers enter the second code. |
| Works only while the discount is active | Check the start date. A link sent before the sale starts won't give the discount yet. |
| App discounts get no link from the Shopify admin | Ask the app's developer how to share its discounts. |
| Combination rules still apply | If 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 order | Discounts added by links count towards it. |
| Several discounts on the same product | The most recent one is used for the link. Check which discount the link actually applies. |
| Special characters in codes | Keep codes to letters and numbers, so they carry through the link correctly. |
How to test a discount link before you send it
- Open it in a private window, so no old cart or earlier code gets in the way.
- Check the landing page is the product or collection the email talks about.
- Add the promoted product, go to checkout, and confirm the code shows in the order summary with the right amount.
- Do it again on your phone, ideally by tapping the link inside a test email, the way shoppers will.
- Check it again after any edit to the discount, its products or its dates.
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