# 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.

{% hint style="warning" %}
**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](https://help.shopify.com/manual/discounts/discount-methods/discount-codes).&#x20;
{% endhint %}

## Method 1: Show the discount in the “Success / Thank You” message

{% hint style="success" %}
**Steps:**

1. Go to **Shopify Admin > Online Store > Themes**.
2. Find your current theme, click **Actions > Edit default theme content**.
   {% endhint %}

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2FEVcrLX3PEiEWyJFYpp2l%2Fimage.png?alt=media&#x26;token=76d1053a-b63f-47f4-8500-a8a47af27e58" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
3\. Search for the text field related to the newsletter form — look for ***"Thanks for subscribing"*** message.
{% endhint %}

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2Fq50u9el7OU9TIefLkPaG%2Fimage.png?alt=media&#x26;token=5971a9fa-4d8f-40b7-8ddd-00de03ee92db" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
4\. Edit this message to include your discount code (e.g. *“Thanks for subscribing! Use code **WELCOME10** for 10% off your first order.”*).
5\. Save your changes.
{% endhint %}

**✔** 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.

{% hint style="success" %}
**Steps:**

1. Go to **Shopify Admin > Settings > Notifications**.
2. Select **Customer notifications** and scroll down to the **Customer marketing confirmation** section.
   {% endhint %}

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2FDNo5H7ExFDPQzylPrPTX%2Fimage.png?alt=media&#x26;token=7b487909-5b6c-471c-90e1-160f241d417a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2FkwLNsQZ2q3mxmuK5IcYE%2Fimage.png?alt=media&#x26;token=8421282b-1da6-4d3b-9b53-9c92a429d7a2" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
3\. Click **Edit code**, find the `{% capture email_body %} ... {% endcapture %}` block, and insert the discount code into the email body.
4\. Save the changes.
{% endhint %}

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2Fz6D2QPWlTi5Jx6QXgqhG%2Fimage.png?alt=media&#x26;token=9a9df2b7-33b0-4936-9107-e4046724232b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2FOJCpVrck5xcNn9pSi3cO%2Fimage.png?alt=media&#x26;token=9a694dd3-30fe-4201-a00e-c18da8402e02" alt=""><figcaption></figcaption></figure>

**✔** 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.

{% hint style="success" %}
**Steps:**

1. Install and connect your preferred email app to Shopify.
2. Create an **automation flow** triggered by “New newsletter signup.”
3. Design your welcome email and include the discount code (e.g. *“Thanks for subscribing! Use code **WELCOME10** for 10% off your first order.”*).
4. Set your preferred send timing and activate the flow.
   {% endhint %}

✔ 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.

{% hint style="info" %}
**Best practices:**&#x20;

* Back up your theme before editing content or email templates.
* Use time-limited or single-use codes to prevent sharing.
* Keep all messages on-brand and consistent in tone.
* Test each flow (subscription → message/email → code use) before publishing.
  {% endhint %}
