> 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/discounteo-for-shopify/integrate-discounteo-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 Discounteo. 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&amp;token=edc0515a-6518-4471-b746-54df0717b907" alt="How to synchronize your Shopify store with a Mailchimp account"><figcaption><p>Synchronize your Shopify store with your Mailchimp account</p></figcaption></figure>

**Discounteo Settings**

Navigate to Discounteo. 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&amp;token=5b6a4778-6d7b-4662-bb1e-655f201ce7d4" alt="How to create a Discounteo automation for Mailchimp"><figcaption><p>Create a Discounteo 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&amp;token=ece454d8-c566-4255-a031-2fec937aca90" alt="Discounteo settings for a Mailchimp abandoned cart automation"><figcaption><p>Discounteo settings for an abandoned cart automation with Mailchimp</p></figcaption></figure>

Discounteo 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](/discounteo-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="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&amp;token=ae690432-9bdb-4684-9560-c4eb465535d8" alt="How to create a new automation in Mailchimp"><figcaption><p>Create a 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 Discounteo.&#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&amp;token=4ee84025-f9f9-487d-91a7-b6a5cd57cad1" alt="Set the starting point for the Recover Abandoned Cart automation in Mailchimp"><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&amp;token=f1d37104-107c-47ad-915f-ee1626b2d6a0" alt="Add a sending email as a journey step in Mailchimp"><figcaption><p>Add an email as a journey step 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&amp;token=15c730c6-4072-49f3-a5a7-21fa7fa2e27e" alt="Insert a Shopify discount code merge tag into a Mailchimp email template"><figcaption><p>Insert the Shopify discount code merge tag into a 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&amp;token=78f32869-63c8-48a9-975f-8f82c0681e50" alt="Mailchimp: Activate an automation"><figcaption><p>Activate a Mailchimp 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&amp;token=245d0da3-3b81-43b0-a925-2c55e9292525" alt="Mailchimp message with a Discounteo discount code"><figcaption><p>A Mailchimp message with a Discounteo discount code</p></figcaption></figure>
