> 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/integrate-personal-discount-with-your-email-service-provider/mailchimp/how-to-set-up-an-abandoned-cart-email-in-mailchimp.md).

# How to set up an abandoned cart email in Mailchimp?

**Integrate your Shopify store with Mailchimp**

To set up an automated cart recovery email, you need an app that can synchronize abandoned carts with Mailchimp, such as [Mailchimp: Email Marketing](https://apps.shopify.com/mailchimp). Install it in your store and connect with your Mailchimp account.

While configuring the Mailchimp app, ensure that the list chosen in **Linked Audience** section matches the list selected in Personal Discount. Then hit **Sync now**.

<figure><img src="/files/yxfdPCR95RBAqNuochii" alt="How to synchronize your Shopify store with the Mailchimp account animated"><figcaption><p>Synchronize your Shopify store with the Mailchimp account</p></figcaption></figure>

**Personal Discount Settings**

Navigate to Personal Discount. Click on **Add automation** and connect the app with your Mailchimp account.&#x20;

<figure><img src="/files/28kHAnBTLcWuzVefBv7C" alt="How to create Personal Discount automation for Mailchimp animated"><figcaption><p>Create Personal Discount automation for Mailchimp</p></figcaption></figure>

In the next step, provide the automation name, select the audience (the same as in the Mailchimp app). Then pick the Abandoned Cart trigger and specify a time period after which a cart should be considered as abandoned.

<figure><img src="/files/pEBO0uH6jzDFi0grNyGk" alt="Personal Discount settings for Abandoned Cart automation with Mailchimp animated"><figcaption><p>Personal Discount settings for Abandoned Cart automation with Mailchimp</p></figcaption></figure>

Personal Discount adds a customer who abandoned a cart to the selected list in MailChimp. The app also creates a unique discount code and assigns it to the member's profile as a merge tag **DSCNT\_CODE**.&#x20;

Now you can set up details of your automation such as a discount value, usage limit, or expiration date. Learn more from [this article on how to configure your discount](/personal-discount-for-shopify/configure-discount.md).

**Mailchimp automation**

Switch over to Mailchimp to create a Journey for customers that abandoned their cart. Click on **Automations** on the left sidebar → **Build from scratch** and type a name of your automation.&#x20;

<figure><img src="/files/0mhrHrigPrOPnZEVBliB" alt="How to create new automation in Mailchimp animated"><figcaption><p>Create new automation in Mailchimp</p></figcaption></figure>

Now set the **starting point**. Select **Abandons cart** as the starting point from the available options. Then choose the **Store name** from which customers will take part in this campaign. You can also indicate if the **Customer Cart** should **contain** any or a specific product and **Abandoned Cart Wait Time**. The **Wait for** value cannot be shorter than the one specified in Personal Discount.&#x20;

<figure><img src="/files/V0Z1Is4jqS6lygKHRWkh" alt="Set the starting point for the Recover Abandoned Cart automation in Mailchimp animated annotated"><figcaption><p>Set the starting point for the Recover Abandoned Cart automation in Mailchimp</p></figcaption></figure>

Select the action that will be taken when a customer enters the journey. In our case the action is **Send email**. You can choose how you want to design it.

<figure><img src="/files/6VFvUIggnjx6ai5jb4es" alt="Add sending email as journey point in Mailchimp"><figcaption><p>Add sending email as a journey point in Mailchimp</p></figcaption></figure>

When preparing the email template, insert Shopify Discount Code merge tag into one of the merge text elements. It can be modified in the same way as other text. **Save & Close** the text element and if your template is ready, hit **Save and Return to Journey**.

<figure><img src="/files/2r77Svn6cLC69zAEaqOy" alt="Insert Shopify Discount Code merge tag into Mailchimp email template animated"><figcaption><p>Insert Shopify Discount Code merge tag into Mailchimp email template</p></figcaption></figure>

When the automation is ready, it's high time to activate it. Hit **Continue** and **Turn On**. Then the Journey will appear on the automations list with the status Active.

<figure><img src="/files/E7U2XSJ0xV06Sn0AOrHq" alt="Mailchimp: activate automation animated annotated"><figcaption><p>Mailchimp: activate automation</p></figcaption></figure>

From now on, your customers will receive a message with a discount code one hour after abandoning their cart.

<figure><img src="/files/X1ZeSM7c5kwOtLMjdcsG" alt="A message with a Personal Discount code from Mailchimp annotated"><figcaption><p>A message with a Personal Discount code from Mailchimp</p></figcaption></figure>
