🔥 Just Launched! Werra Premium Template for HyväSee it in Action

3 Steps to Add Discount Code to URL in Shopify 

By Shivbhadrasinh GohilUpdated on May 13, 2025 6 min read

Discount code in a URL is one of the best tricks to boost conversion. Here, we will show you 3 simple steps to add discount code to URL in Shopify. You may also love our free Shopify checkout link generator tool.

But first, let’s start with the basics.

What is Shopify Discount URL?

Shopify discount code URL is a special type of URL that automatically adds da iscount during checkout without the customers needing to manually enter it. 

These URLs are created and customized in the Shopify admin panel, which can also be  used in redirecting customers to your specific page on your store.

Using a Shopify discount code URL, you can:

✅ Reduced cart abundant along with distraction-free checkout

✅ Automatically apply discounts 

✅ Track performance of discount URL

✅ Customize and combine discount 

Discount Code URL Syntax

Let’s see a breakdown of how this Shopify URL with discount code looks. 

This link will have three essential elements:

  • Your store name
  • Discount Path
  • Discount Code 

For example: https://shoeshero.myshopify.com/discount/SUMMER10   

Discount Code URL in Shopify

This link automatically applies a discount code in Shopify when a customer clicks it.

How to Create Shopify Discount Code Links?

Now, follow these three simple steps to add the Shopify discount code URL:

  • Step 1: Create Discount Code
  • Step 2: Build Discount Link 
  • Step 3: Test & Implement 

Step 1: Create Discount Code

Head to your Shopify admin and navigate to Discount > Create Discount

Create Discount Code

Here, you will get four options to choose a discount type:

  • Amount off product
  • Buy X get Y
  • Amount off order
  • Free shipping 

Pick the one you like; here, we will pick: Amount off products

Fill in the discount details, like: 

  • Discount Code – The discount code applicable to the product 
  • Discount Value – Set the discount value in percentage or amount, and add if applicable to a specific product 
Fill in Discount Code and Discount Value
  • Minimum purchase requirements – Select if the discount requires a minimum purchase amount
  • Eligibility – Provide this offer to specific customer groups
  • Maximum discount uses – Option to limit the discount per user 
Select MInimum Purchase Requirement and Eligibility and Minimum Discount Uses
  • Combinations – Set combinations for your discount code
  • Active dates – Set a start and end date of the discount code 
Select Countries and Active Dates

Now set all the criteria for the discount as per you want and click Save Discount

Step 2: Build Discount Link 

Once you have created the discount, you can get a shareable link for the product. 

Click on Promote > Get a shareable link

Click Promote and Get Shareable Link

You can copy the Shopify link with discount code from here and choose where you’d like your customers to be redirected after they click.

Discount Link Landing Page

Step 3: Test & Implement 

Before sharing the link with the customer, test it yourself:

Open the promotion link in a new tab and check if it auto-applies the discount. Your shoppers will see the discounted amount like this: 

Test and Check if the Discount Auto Applies

Advanced Techniques for Discount URLs in Shopify

You can go beyond the basic Shopify discount code URL setting, like redirecting customers to specific pages or having a checkout URL with the discount count. 

This helps to turn a simple discount link into a strategic sales technique.

Redirect to Specific Page with Discount Code

Here, your discount URL is redirected to a targeted page.

This means when customers click on a discount link, landing directly on a relevant page with the discount offer. 

Instead of redirecting customers to the homepage or landing page you can redirect them to a product page you are promoting or a particular sale or newly added collection. 

Resulting in less friction.

Create your redirect URL using a simple parameter ?redirect=/target-page at the end of the URL.

Here is how your discount code redirect will look:

https://storename.myshopify.com/discount/DISCOUNTCODE?redirect=/target-page

Replace “target-page” with a product page name, custom page name, or collection page name.

Checkout Link with Discount Code

In some cases, like flash sales or limited-time offers, you may want to redirect your customer directly to the checkout page with a discount already applied.

This strategy minimises clicks — leading to a lower cart abandonment rate.

Create your checkout URL using a simple parameter ?redirect=/checkout at the end of the URL.

Here is how your discount code redirect will look:

https://yourstorename.myshopify.com/discount/DISCOUNTCODE?redirect=/checkout

Replace “DISCOUNTCODE” with the discount code you have created.

Practical Examples of Using Shopify Discount Links

After adding a discount code to the URL in Shopify, you can use them in your promotions and campaigns to boost sales.

Let’s take a look at how discount code URLs can be used in different ways.

Create “Get Discount” CTAs

Adding a Call-to-Action (CTA) to your website that links to a discount can be a powerful move.

Create Get Discount CTAs

Promote Offers in Emails

Discount links are perfect for email marketing. Instead of just telling customers about a promotion, give them a direct, clickable path to the deal.

Promote Offers in Emails

Share Discounts on Social Media

Social media is an amazing platform for spreading time-sensitive offers and discount link work beautifully here.

Expert Tips to Increase Sales

Now, you know how to add discount codes to URL in Shopify and how to redirect them to any specific pages.

To get the most out of discount codes, here are some tips:

  • Use them across your marketing channels
  • Add a UTM parameter to track the performance
  • Easily use it while running Ads
  • Use it as a pop-up on your website
  • Use a countdown timer bar to build urgency during the sale 

Try this solution now and make it easy to apply discount codes automatically.

Shivbhadrasinh Gohil Full Image
Article byShivbhadrasinh Gohil

Shivbhadrasinh is the Co-founder & Chief Marketing Officer at Meetanshi. He leads the marketing team and is the person behind the marketing & branding success of the company. Being a seasoned digital marketer, he has been consulting online businesses for growth since 2010 and has helped 100+ clients with digital marketing success. He loves sharing tips and insights about the latest digital marketing trends aimed at helping online business owners.