Share a Discount code through Newsletter signups
You can share a discount code with customers who subscribe to your store’s newsletter in a few simple ways. Select the option that best aligns with your brand’s communication and customer experience.
Before proceeding with the methods below, make sure you have created discount codes for your products or orders in Shopify Discounts.
Learn how to create discount codes here in Shopify manual.
Method 1: Show the discount in the “Success / Thank You” message
Steps:
Go to Shopify Admin > Online Store > Themes.
Find your current theme, click Actions > Edit default theme content.

Search for the text field related to the newsletter form — look for "Thanks for subscribing" message.

Edit this message to include your discount code (e.g. “Thanks for subscribing! Use code WELCOME10 for 10% off your first order.”).
Save your changes.
✔ Once a visitor subscribes, they’ll instantly see a thank-you message containing your discount code — quick and seamless.
Method 2: Include the discount in the Marketing confirmation email
This option delivers the code via email when the customer confirms their subscription.
Steps:
Go to Shopify Admin > Settings > Notifications.
Select Customer notifications and scroll down to the Customer marketing confirmation section.


Click Edit code, find the
{% capture email_body %} ... {% endcapture %}block, and insert the discount code into the email body.Save the changes.


✔ When someone subscribes to your newsletter, they’ll receive an email confirmation that includes your discount code — ideal if you prefer to send the code directly to their inbox.
Method 3: Send the discount automatically with a third-party email app
If you use or plan to use an email marketing platform for automation and segmentation, this is the most flexible option.
You can use tools like Klaviyo, Omnisend, or Mailchimp to create automated email flows.
Steps:
Install and connect your preferred email app to Shopify.
Create an automation flow triggered by “New newsletter signup.”
Design your welcome email and include the discount code (e.g. “Thanks for subscribing! Use code WELCOME10 for 10% off your first order.”).
Set your preferred send timing and activate the flow.
✔ Every new subscriber automatically receives a personalized welcome email with your discount code. This option gives you more control over branding, tracking, and follow-up marketing.
Last updated
Was this helpful?