Shopify discount URL. Auto-apply. With QR.
Store domain + discount code.
How to use the Shopify Discount URL Generator
This generator builds a Shopify discount link: a URL in the form yourstore.com/discount/CODE that applies the code to the shopper's cart when they open it. You can send the shopper on to a product, collection, the cart or checkout, add UTM tags for tracking, and turn the link into a QR code. It is for store owners and marketers sharing a code by email, SMS, social posts or print.
Step by step
-
Create the code in Shopify first
The link only works for a discount code that already exists and is active in your Shopify admin under Discounts. This tool builds the link. It does not create or check the code.
-
Enter your store and code
In Store domain, type your shop address, either your own domain or the myshopify.com one. A leading https:// and a trailing slash are removed for you. In Discount code, type the code exactly as it is set up in Shopify, for example SPRING20.
-
Choose where the shopper lands
Under redirect target, pick Homepage, Product, Collection, Cart or Checkout. The Product and Collection presets fill in a placeholder path, so replace your-product-handle or your-collection-handle in the Redirect target field with the real handle from the product or collection URL.
-
Add UTM tags if you track campaigns
Fill in utm_source, utm_medium and utm_campaign, such as email, newsletter and spring_sale, to see the traffic by campaign in your analytics. They are optional, and they are converted to lowercase.
-
Copy the link or make a QR code
The share URL box updates as you type. Press Copy URL to put it on your clipboard. Press QR code to draw a scannable code of the same link, then Download PNG to save it for print or packaging.
Reading the result
- With the default values the link is https://example.myshopify.com/discount/SPRING20, which is 47 characters.
- Choosing a page other than Homepage adds a redirect part, with the slashes encoded, as in ?redirect=%2Fproducts%2Fyour-product-handle. Shopify reads it the same way.
- A green line under the link shows its length and says it is safe for all channels. An amber line lists warnings: a code with spaces, a code that is not all uppercase, or a link longer than 160 characters, which is long for SMS.
Tips and common mistakes
- Test the link in a private browser window before you send it, and check that the discount shows in the cart.
- Spaces are removed from the code in the link, and the warning line tells you when the code you typed had any. Make sure the code in Shopify matches what ends up in the link.
- Copy the handle from the real page address. For a product at /products/linen-shirt, the Redirect target is /products/linen-shirt.
- If the link is long, a link shortener keeps it tidy for SMS and WhatsApp. Make the QR code from the full link so it never depends on a third party.
- If no QR code appears, the QR library could not load. Reload the page and press QR code again. The link itself still works.
- The QR code does not redraw as you type. After you change any field, press QR code again before you download it, or the PNG holds the old link.
Privacy and limits
The link is built in your browser and nothing you type is saved. The QR code is drawn in your browser too, by a small QR library served from this site, and your store name, code and link are not sent anywhere.
The code applies before the customer types.
A Shopify discount URL is the auto-apply share link in the format yourstore.com/discount/CODE. Click it, and Shopify applies the discount to the cart automatically. The customer never has to remember a code, never has to type it at checkout, never risks typos. Every SMS, email, influencer campaign, and QR-code placement should use this pattern instead of displaying a bare code; redemption rates typically lift 30 to 60 percent compared with code-entry flow.
Two patterns worth knowing. Pattern one: redirect-to-product. Append ?redirect=/products/handle and the discount applies, then Shopify sends the customer directly to that product page with the discount ready. Pattern two: redirect-to-checkout. Append ?redirect=/checkout for cart-ready one-item promo campaigns. The Shopify Ajax Cart API and Shopify Discount docs cover the full spec.
Pair the URL with UTM tags for campaign attribution. The generator above appends UTMs correctly after the redirect parameter so GA4 and Shopify's native analytics both resolve the source. For offline campaigns (print, packaging inserts, popup-shop signage), the QR code download above bakes the full discount URL into a scannable code.
Tools in the same cluster: UTM Builder for campaign tagging. AOV Calculator for threshold-based free-shipping math that pairs with discounts.
Five answers.
What is a Shopify auto-apply discount URL?
A Shopify discount URL is a share link in the format yourstore.com/discount/CODE where CODE is your discount name. When a customer clicks the link, Shopify applies the discount to the cart automatically, so the customer never has to type or remember the code. Shopify added this feature in 2017 and it is the default recommended way to share discounts in email, SMS, influencer content, and QR campaigns.
Can I redirect to a specific product or collection?
Yes. Append a redirect parameter: yourstore.com/discount/CODE?redirect=/products/product-handle or /collections/collection-handle. Shopify applies the discount, then sends the visitor to the target page. The tool above builds this parameter correctly. For checkout-direct links (skip the product page entirely), append /checkout or /cart to the redirect; this works best for abandoned-cart recovery and one-item promo campaigns.
Do discount URLs work for Shopify Plus and standard plans alike?
Yes. The discount URL pattern works on every Shopify plan from Basic through Plus. Shopify Plus adds the Discount Combinations API (stacking discounts), scripts (via Shopify Functions), and the Discount Types customization surface that standard plans do not have, but the share-link format is identical across plans.
Can I track which URL drove conversions?
Yes. Add UTM parameters to the URL after the redirect parameter: yourstore.com/discount/CODE?redirect=/products/item&utm_source=email&utm_medium=newsletter&utm_campaign=spring_sale. GA4 and Shopify's native analytics will attribute the traffic and revenue to the campaign. Use the Digital Heroes UTM Builder for a properly-tagged URL, then drop the discount portion in front of it.
Does this tool save my data?
No. Every value you enter lives in memory for this browser tab only. Nothing is transmitted to a server, stored in a database, or synced. The QR code is generated entirely client-side. Close the tab and the data is gone.
Promo mechanics beyond codes.
Our Shopify engagements ship stacking discount rules (via Shopify Functions), tiered cart promotions, and segment-aware flows wired into Klaviyo. Scoped in 48 hours.
Published · Last updated .