> For the complete documentation index, see [llms.txt](https://docs.personaldiscount.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.personaldiscount.io/personal-discount-for-shopify/troubleshooting/discount-codes-are-not-appearing-in-the-emails-sent-by-mailchimp.md).

# 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="/files/gv9UnfMSsoDYZBylXRVZ" 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="/files/JDRXrAikMEbs5SXWNHTL" 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="/files/DlcGN4clqvSOnrtnw8sK" 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="/files/sRkSz51sPce21ogQOlJi" 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="/files/0CL3a3rWcbfpUiDPSc4M" 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](/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.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.personaldiscount.io/personal-discount-for-shopify/troubleshooting/discount-codes-are-not-appearing-in-the-emails-sent-by-mailchimp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
