How to Share a Shopify Discount With a Link or QR Code
How Shopify's shareable discount links and QR codes work: create one, point it at a product, add campaign tracking, and plan around the real limits.
How-to guidesThe diex team11 min read
A discount code that customers have to type is a code some customers will mistype, paste with a trailing space, or forget by the time they reach checkout. Shopify can give you a URL that applies the discount for them, plus a QR code of that same URL for print and in-store use. This article covers what that link actually does to the cart, how to point it at a specific product or collection, how to attach campaign tracking so you can measure the promo, and the limits worth knowing before you put the link in an email going out to your whole list.
What a shareable discount link actually does to the cart
The link does more than prefill a code. According to Shopify's help center on managing discount codes, when someone opens a shareable link or scans the QR code, "the discount associated with the link or QR code applies automatically to your customer's next checkout cart, or to any active carts they have open."
Three things follow from that, and each one changes how you should use the link.
Nothing visible happens when the customer clicks. They land on whatever page you chose, as a normal visitor. The discount surfaces later, in the cart and at checkout. Shopify does not add any on-page notice that the offer was applied, which is why the landing page still has to carry the message. More on that below.
It reaches carts the customer already had open. Someone who added three items a week ago and never came back gets the discount applied to that existing cart, not just to a fresh one. For a win-back email that is exactly what you want.
It sticks until it is removed. Shopify's documentation says the discount is saved to the customer's cart and to their browser, so it "stays applied until it's removed," and that a customer can remove it by selecting Remove discount beside the applied code at checkout, or by clearing their browser's cookies and cached data for your store and then going to your store directly instead of using the link. So a shopper who clicks your November link and comes back in February on the same browser may still have the discount sitting on their cart. Your controls for that are the discount's own end date and usage limits, not the link. Set an end date when you create the discount if the offer is meant to expire.
Create the link or QR code from the discount page
The flow lives on the discount itself, not in the marketing section. On desktop, per Shopify's documentation:
- From your Shopify admin, go to Discounts.
- Click the name of the discount you want to promote.
- Click Promote, then select Get a shareable link.
- Choose the page, product, or collection you want the link to open to. For online stores the options are your store's home page, a specific collection, or a specific product page. The options you see depend on the products and collections included in the discount, so a sitewide discount may only offer the home page.
- Optional: to add tracking parameters, select an existing marketing campaign.
- Click Copy link to copy the URL, or click the download icon to download the QR code.
- Click Close.
The QR code is the same URL in scannable form. Shopify suggests downloading it to add to "your receipts, displays, or for scanning at the register" at a retail location, and notes that staff can scan the same QR code in Shopify POS to apply the discount to the cart. On the technical side, Shopify's developer changelog for scannable discount codes confirms the QR encodes to the format https://{shop}.myshopify.com/discount/{CODE}, and that special characters are URL-encoded twice: the code SAVE 10% becomes SAVE%252010%2525 in the final QR URL.
That encoding detail is a good argument for a boring naming convention. Keep codes alphanumeric with no spaces, percent signs, or slashes. SAVE10 behaves predictably in a URL, on a QR code, and in a customer's typing. SAVE 10% does not.
Send customers to a product or collection instead of the home page
The home page is the default. If the offer is 20% off one product line, dropping people on a page that shows your full catalog adds a navigation step for no reason.
The Promote dialog lets you pick a product or collection when the discount is limited to them. Otherwise, edit the URL by hand after copying it. Shopify's documentation describes exactly this: paste the link into a text editor and change the URL extension from /discount/code to /discount/code?redirect=/new-path, replacing new-path with the path of the page you want, for example /collections/fresh-finds.
| Where you want them to land | Pattern | Good for |
|---|---|---|
| Home page | /discount/SAVE10 |
Sitewide offers, brand-level campaigns |
| A collection | /discount/SAVE10?redirect=/collections/sale |
Category promos, seasonal edits, clearance |
| A single product | /discount/SAVE10?redirect=/products/wool-throw |
Single-SKU offers, ads for one hero product |
| A content page | /discount/SAVE10?redirect=/pages/holiday-offer |
A landing page that explains the terms |
The path has to match a real URL on your store, so copy it from the live page rather than typing it from memory, and open the finished link in a private browsing window before you send it anywhere. Testing in your normal browser is unreliable because, as noted above, the discount may already be stuck to your own cart from an earlier test.
Attach a marketing campaign so you can measure the promo
Step 5 is optional, and skipping it is what leaves you guessing later. When you select an existing marketing campaign while generating the link, "the campaign's UTM identifier and source are automatically added to the shareable link," so you can monitor the discount's performance in your campaign reports.
That means the campaign has to exist first. Per Shopify's help center on creating campaigns, you go to Growth > Campaigns in your admin and select Create campaign. Shopify lists a few constraints there: your store needs to be on the Basic plan or higher, you need the Marketing permission on your staff account, and you can't create a campaign on a mobile device. The same page notes that you need to sell using an online store, because campaigns are not supported for headless storefronts.
Once traffic starts arriving, Shopify's documentation on understanding campaigns says "all traffic that results from a shareable link is automatically attributed to the campaign that it's from," and the campaign report shows sessions in your online store, the number of attributed orders, and adjusted gross sales. One caveat straight from that page: "Returns aren't factored into the calculation of the metrics in your campaign report." For a promo on apparel or anything else with a high return rate, read the campaign report next to your actual returns before you call it a success.
If you are running the same discount through email, SMS, and a paid ad, generate the link once per campaign so each channel carries its own tracking. Campaign reports tell you where the clicks came from; the Sales by discount report tells you what the discount cost you in markdown. You want both numbers in front of you.
When a link beats asking customers to type a code
A link wins when the customer is already on a screen and one tap gets them to a cart with the offer on it:
- Email and SMS, where one tap beats typing a code on a phone keyboard.
- QR codes on packaging inserts, receipts, and in-store signage.
- Paid traffic going to a dedicated landing page.
A plain code wins in a few situations that are easy to overlook:
- When the customer needs to remember and repeat the offer. Podcast and creator codes work precisely because the code is spoken and memorable.
- When the purchase will happen later on a different device. A printed insert that only has a QR code is useless to someone who reads it, decides to buy next payday, and types your domain into a laptop.
- When you want the offer visible at the moment of consideration rather than silently waiting at checkout.
The failure mode is worth planning for too. Because the application is silent, a customer who clicks a link for an expired discount, or one they are not eligible for, sees nothing at all. No error, no explanation. They just reach checkout at full price and either email you or leave. If you are weighing this against an offer that applies with no code at all, our comparison of automatic discounts and discount codes covers that trade-off in more detail.
Limits to plan around
- One discount per link. Shopify is explicit: "Your shareable link or QR code can have only a single discount applied to it." You cannot bundle a product discount and a free shipping discount into one URL.
- The per-order code limit still applies. Shopify's documentation on discount combinations states that customers can use a maximum of 5 product or order discount codes and 1 shipping discount code on the same order. A discount arriving by link counts toward that total, and your combination settings still decide whether it stacks with anything else already on the cart.
- Active discounts only. "Shareable discount links and QR codes work only for active discounts." A link sent out while the discount is still scheduled will not apply anything, so line up your send time with the discount's start date, and remember that start dates follow your store's time zone.
- Overlapping discounts resolve by recency. If you run multiple discounts on a single product, Shopify says "the most recent discount applies to your shareable discount links and QR codes." Worth checking before a big send if you have several promos live.
- App-created codes cannot get a link from the admin. Shopify's help center states that if a third-party app created your discount code, then you can't get a shareable link or QR code for that discount. If you generate unique codes in bulk with an app (diex creates bulk discount codes as regular Shopify discount codes), plan on constructing the
/discount/CODEURL yourself and testing one before you merge it into a thousand emails.
State the offer on the page the link lands on
This is the part the raw URL trick never mentions. The link applies the discount silently, so if your landing page says nothing, the customer has no reason to believe anything happened. They scroll, they see full prices, and they lose confidence in the offer before they ever get to the cart.
Fix it on the page itself. A dedicated landing page is the cleanest option for a big promo. For a collection or product destination, a banner across the top of the page does the job: say what the offer is, what the minimum is if there is one, and when it ends. diex includes a promotion banner storefront block for this, with your own text, an optional link, and a discount code with a copy button, shown inline or fixed to the page and dismissible if you want it to be. It needs an Online Store 2.0 theme, which covers Dawn and most current themes.
Two more small things that cost nothing. Put the code itself in the body of the email or SMS alongside the link, so a customer who switches devices can still type it. And if a customer arrives through a link but the discount does not show, check the obvious causes first: the discount is not active yet, the cart does not meet the minimum, or another code is already applied and the combination settings do not allow both.
What to set up before your next campaign
- Pick your codes with URLs in mind: alphanumeric, no spaces or percent signs.
- Create the marketing campaign under Growth > Campaigns before you generate the link, so the UTM parameters get attached automatically. Check that your staff account has the Marketing permission first.
- Generate the link from the discount's Promote button, pointed at the product or collection the offer is actually about, and one link per channel. If the dialog only offers your home page, add the
?redirect=path by hand. - Open each link in a private browsing window and confirm the discount lands in the cart.
- Add a banner or a line of copy on the destination page that states the offer, the minimum, and the end date.
- After the promo, read the campaign report next to your Sales by discount report, and account for returns yourself.
Sources
Drafted with AI from the sources above and checked automatically against them and our product facts. Spotted a mistake? Email help@diex.app.