# Discount codes are not appearing in the emails sent by Mailchimp

#### Sometimes Discounteo codes are not appearing in the emails sent by Mailchimp.

In some cases, Mailchimp may send the welcome email before Discounteo finishes generating and syncing the discount code. When this happens, the email can be sent without a discount code.

Previously, we recommended adding a filter to the automation trigger that allowed emails to be sent only when the **Shopify Discount Code** field was not empty. Mailchimp would recheck this condition after some time, and the email would eventually be sent with the discount code.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FHWksxBtSVwtAIWhoKbW4%2Fmailchimp-email-journey-filter.png?alt=media&#x26;token=27f4c021-2794-4b33-8a08-d8f30287fb59" alt="Mailchimp email Journey showing a filter that sends emails only when the discount code field contains a value."><figcaption><p>Mailchimp Journey with a filter checking whether the discount code field is not empty</p></figcaption></figure>

However, currently, Mailchimp no longer rechecks this condition. As a result, emails that do not meet the condition are never sent.

#### How to make sure your Mailchimp emails always include a discount code

To avoid this problem, update your Journey by adding a separate node that checks whether the field used to store the discount code is not empty.

* If the discount code has already been synced to Mailchimp, the email will be sent immediately.
* If the discount code is not yet available, the email will be sent after a delay. Please note that the minimum delay supported by Mailchimp is **1 hour**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FGDxAYoKZ6FY6XpMKQDVG%2Fmailchimp-welcome-automation-with-shopify-discount-code.png?alt=media&#x26;token=9dfa7851-cd60-4a36-b3bb-a012b13d3afa" alt="Mailchimp welcome automation email displaying a Shopify discount code sent to a new subscriber"><figcaption><p>Mailchimp welcome automation sending an email with a Shopify discount code</p></figcaption></figure>

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FudDPTzkvHXCB3vdTW3xq%2Fshopify-discount-code-is-not-blank-filter-condotion.png?alt=media&#x26;token=e4e46651-190b-43de-81b1-651f68aba032" alt="Mailchimp filter condition set to check that the Shopify discount code field is not blank."><figcaption><p>Filter condition checking whether the Shopify discount code field is not blank</p></figcaption></figure>

If you previously set a *discount code is not blank* condition directly on the trigger node, remember to remove it.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FLzZgNRmV1vqIz5iflnGv%2Fmailchimp-edit-journey-filter.png?alt=media&#x26;token=3b25669f-2e9d-45dc-b291-c88a75cec9f8" alt="Mailchimp Journey editor displaying the filter condition settings being modified."><figcaption><p>Editing a filter condition in a Mailchimp Journey</p></figcaption></figure>

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F5MyjGqIBdkqeuUVMmvVU%2Fmailchimp-delete-journey-filter.png?alt=media&#x26;token=02c2dff7-52f2-4395-aa4a-c1d65f167ec3" alt="Mailchimp Journey settings showing the deletion of a filter condition."><figcaption><p>Deleting a filter condition from a Mailchimp Journey</p></figcaption></figure>

#### Alternative way to send Shopify discount codes instantly in Mailchimp

If you want all Mailchimp emails with a discount code to be sent immediately, you can use an alternative integration method. With this approach, the discount code is displayed in the email as a clickable image that redirects customers to your store with the discount automatically applied at checkout.

You can find more details in the following article:

[how-to-display-a-discount-code-as-an-image-in-a-mailchimp-message](https://docs.personaldiscount.io/personal-discount-for-shopify/integrate-personal-discount-with-your-email-service-provider/mailchimp/how-to-display-a-discount-code-as-an-image-in-a-mailchimp-message "mention")
