# 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fovhe9ETLc75ocFOzcGih%2Fmailchimp-integrate-with-the-shopify-store.gif?alt=media&#x26;token=edc0515a-6518-4471-b746-54df0717b907" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fceq7qPyhMINTic57HVen%2Fmailchimp-personal-discount-add-recover-abandoned-cart-automation.gif?alt=media&#x26;token=5b6a4778-6d7b-4662-bb1e-655f201ce7d4" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FeyScvH8OdzECpLB6cCXr%2Fmailchimp-personal-discount-set-personal-discount-automation.gif?alt=media&#x26;token=ece454d8-c566-4255-a031-2fec937aca90" 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](https://docs.personaldiscount.io/personal-discount-for-shopify/configure-discount).

**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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FjdwhWTd9Am2V3Ay2UtIc%2Fmailchimp-create-new-journey.gif?alt=media&#x26;token=ae690432-9bdb-4684-9560-c4eb465535d8" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FfxeZcOCi9z2Sd90wifuW%2Fmailchimp-set-the-starting-point-for-abandoned-cart-automation.gif?alt=media&#x26;token=4ee84025-f9f9-487d-91a7-b6a5cd57cad1" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FptzbVyTG6E9NWyk95HBX%2Fmailchimp-add-the-journey-point-for-abandoned-cart-automation.gif?alt=media&#x26;token=f1d37104-107c-47ad-915f-ee1626b2d6a0" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FaQKlWwajijJGl2CFqWcx%2Fmailchimp-insert-shopify-discount-code-merge-tag.gif?alt=media&#x26;token=15c730c6-4072-49f3-a5a7-21fa7fa2e27e" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FXvj15jKbtem3OpS3TmLv%2Fmailchimp-activate-automation.gif?alt=media&#x26;token=78f32869-63c8-48a9-975f-8f82c0681e50" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FrtAqZSXQW1HXSPiUnNEB%2Fmailchimp-message-with-discount-to-recover-abandoned-cart-shopify.png?alt=media&#x26;token=245d0da3-3b81-43b0-a925-2c55e9292525" 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>
