# 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://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2F9Gl9aa8FFeL1ikvpfV5v%2Fimage.png?alt=media&#x26;token=f7585831-c87d-49c2-b74a-b203794d5771" 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://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FWJN9Q7r47tTSm0sgp0Q2%2Fimage.png?alt=media&#x26;token=450953cb-356f-4528-b9b5-51760766b683" 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://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FfToHxZoQXlGf8jC19dDo%2Fimage.png?alt=media&#x26;token=6a98b90e-36f3-44e2-80b9-63d2ca3e0c36" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FNfvCQOMhIBBbaylWtJcu%2Fimage.png?alt=media&#x26;token=d5c9cb47-2417-4230-84bc-1582a70ac97d" 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://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2F70RpOLCxLCa7Ixh3F4Sx%2Fimage.png?alt=media&#x26;token=80ae01b6-bf23-4a5b-bf28-a18cfbb0f298" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FKND1SIKCjkLql3anXoVL%2Fimage.png?alt=media&#x26;token=18950f1c-2de6-4e93-89b0-e16c3d626e1f" 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 %}
