How Shopify discount links work

Every Shopify store has a built-in route: /discount/YOURCODE. When a shopper opens it, Shopify saves the code in their browser and applies it automatically at checkout. No typing, no forgotten codes, fewer abandoned carts.

By default that route lands on the homepage. Adding the redirect parameter sends the shopper straight to the page you choose:

yourstore.com/discount/SUMMER20?redirect=/collections/best-sellers

This generator builds that link from any URL of your store. It also keeps your UTM tags inside the redirect, so Google Analytics still sees them after Shopify forwards the visit.

How to create a Shopify discount link in 3 steps

  1. Create the discount in Shopify Admin → Discounts and copy its code.
  2. Copy the URL of the page you want shoppers to land on: a collection, a product, a landing page or the homepage.
  3. Paste both above, add UTMs if you want to track the campaign, then copy the link or download the QR code.

Shopify's shareable link vs. this generator

Shopify includes a “Get a shareable link” option inside each discount. It's handy, but it always lands on the homepage and doesn't add campaign tracking.

ShopifyThis generator
Applies the code automatically✓✓
QR codeHomepage onlyAny page
Land on a collection, product or page—✓
UTM tracking for Google Analytics—✓
Works without Shopify Admin access—✓

Where to use discount links

  • Email and SMS campaigns (Klaviyo, Shopify Email, Mailchimp): the button takes subscribers to the right collection with the code already applied.
  • Instagram, TikTok and WhatsApp: one tap from a bio, a story or a chat, no code to remember.
  • Influencers and affiliates: give each one their own code and link, and tell them apart in Analytics with utm_content.
  • Google Ads and Meta Ads: send ad traffic to a landing page with the offer active from the first click.
  • Print and packaging: put the QR code on inserts, flyers or event signage to bring buyers back to your store.

Frequently asked questions

How do I create a discount code in Shopify?

Go to Shopify Admin → Discounts → Create discount. Choose the type (amount off products, amount off order, Buy X Get Y or free shipping), select “Discount code” as the method, set the code, value, eligibility and dates, and save. Once it's active, paste the code in the generator.

Does the discount apply automatically?

Yes. The link stores the code in the shopper's browser and Shopify applies it at checkout, where the shopper can see it before paying.

Can I send the link to a product or collection page?

Yes. Paste the product, collection or page URL as the landing page and the link will redirect there with the discount active.

Why isn't my discount being applied?

Usually the code is inactive or expired, the cart doesn't meet the minimum purchase, the products aren't eligible, or the discount is limited to one use per customer. Browsers that block cookies can also prevent it.

Which UTM parameters should I use?

The usual four are utm_source (google, instagram), utm_medium (paid, email, social), utm_campaign (campaign name) and utm_content (which ad, link or influencer). Keep them lowercase and consistent so your reports stay clean.

Does it work with a custom domain or myshopify.com?

Both. Use the domain your shoppers visit; the generator takes it from the URL you paste.

Can I use the QR code on printed materials?

Yes. Download the QR as a PNG and use it on packaging, flyers or event signage. It points to the full link, landing page and UTMs included.

Is this tool free?

Yes, free and with no sign-up. Links are built in your browser and nothing is stored.

Need help with your Shopify store?

Tell us about your project.
Fast, real replies — no auto-responders.

Free quote · No commitment · Trusted by 100+ businesses