> 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/shopify-notifications/how-to-include-a-discount-code-in-shopify-abandoned-cart-notification.md).

# How to include a discount code in Shopify abandoned cart notification

Are you worried that your Shopify customers don't complete purchases? You can send them a notification with a discount code to increase the chance for recovering abandoned carts.

Let's start by opening your **Shopify admin panel** > **Apps** > **Discounteo**. Click the **Add automation** button. Then select **Shopify** as your **Email Service Provider** and the **Campaign Type**: **Recover abandoned carts**.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F8qSuHBgtA3d3tLPXhWSm%2Fshopify-abandoned-cart-notification-personal-discount-code-animated.gif?alt=media&amp;token=f1a87b41-dc93-4fd6-8770-8ceb9ca8c715" alt="Add a Shopify abandoned cart recovery automation with Discounteo."><figcaption><p>Add a Shopify abandoned cart recovery automation</p></figcaption></figure>

Now you can set your automation details. [How to configure discount](/discounteo-for-shopify/configure-discount.md) is a nice article on that.

Meanwhile, you can click the highlighted link. It will open in a new browser tab. We will come back to this in a moment.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FElsmnAdKGJNnYn3pT1u9%2Frecover-abandoned-carts-shopify-personal-discount-code-settings.png?alt=media&amp;token=4780ec29-d4c2-4fdb-b071-1f9cf22465ac" alt="Navigate to the Shopify abandoned cart notification template, highlighted for clarity."><figcaption><p>Navigate to the Shopify abandoned cart notification template</p></figcaption></figure>

If you set all parameters, save your automation and copy the code snippet to the clipboard.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FPovWAkLtoBnHj7ayu3Cg%2Fshopify-personal-discount-code-recover-abandoned-carts-code-snippet.png?alt=media&amp;token=220795d6-375b-4c14-8d60-e4465f725895" alt="Copy the Discounteo code snippet, highlighted for clarity."><figcaption><p>Copy the Discounteo code snippet</p></figcaption></figure>

In the next step navigate to **Settings** > **Notifications** > **Abandoned checkouts** and insert your code snippet into your confirmation email template. If you are not sure where to place the code snippet, then the safest place is below the following line:

```html
<p>{{ email_body }}</p>
```

You can paste it for example here:

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F3G80w0OmlXz7oIbG7nA3%2Fshopify-abandoned-carts-notification-personal-discont-code.png?alt=media&amp;token=ba6ba718-61d0-4db4-b52f-b9d7c76925fb" alt="Insert the Discounteo code snippet into the Shopify abandoned cart notification template, highlighted for clarity."><figcaption><p>Insert the Discounteo code snippet into the abandoned cart notification template</p></figcaption></figure>

Now **save** the template changes.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fv3ZMGmELJqlkhh4gFH0I%2Fshopify-recover-abandoned-carts-personal-discount-code-notification-template.png?alt=media&amp;token=d80dc640-2c13-40a2-91bc-dd737c7d889d" alt="Save the Shopify abandoned cart notification template with the Discounteo code snippet, highlighted for clarity."><figcaption><p>Save your Shopify abandoned checkout notification template</p></figcaption></figure>

Finally, switch out to the **Abandoned Checkouts** settings that you have opened in a separate browser tab. The most important is to make sure that abandoned checkout emails are enabled for your store. Here you can also set additional options that you can see below.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FR4douoShfsFH3sfNQexr%2Fshopify-personal-discount-code-recover-abandoned-carts-checkout-emails.png?alt=media&amp;token=f9570455-3716-4d91-82ca-dff89d3edf23" alt="Enable sending abandoned checkout notifications in Shopify"><figcaption><p>Enable sending Shopify abandoned checkout notifications</p></figcaption></figure>

Thanks to this automation, the chances of a customer completing a purchase in your shop will increase significantly.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FLcvBJFYHBWiYhcPLlHQY%2Fshopify-abandoned-carts-notification-with-personal-sicount-code-email-message.png?alt=media&amp;token=1a5a4e4e-1c51-454b-bfa1-3125196f11cc" alt="Abandoned cart notification with a Discounteo discount code"><figcaption><p>Abandoned cart notification with a Discounteo discount code</p></figcaption></figure>
