> 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/how-does-discounteo-work.md).

# How does Discounteo work?

Discounteo generates unique discount codes that you can include in automated emails. The app does not send emails on its own, but instead, Discounteo integrates with your email marketing provider and with email notifications sent by Shopify.

**How does Discounteo work with Mailchimp?**

Discounteo creates unique discount codes on specific events. It may be a new subscriber joining your audience in Mailchimp, a customer making a purchase, or a person abandoning their cart. The app saves the generated codes in your Shopify store back-end so they can be used at checkout. Discount codes are also being assigned to the members profiles in MailChimp. You can find them in subscriber profile information as *Shopify Discount Code* and include a discount code in your email template using a merge tag \*|DSCNT\_CODE|\*.&#x20;

**Pull or push?**

The key fact to understand how Discounteo works is that it's the app pushing the codes to Mailchimp rather than Mailchimp pulling them from Discounteo. That's why it's crucial to choose a right trigger, to point out the moment when a discount code should be created and pushed to Mailchimp.

**Example: discount code for a new subscriber**

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FUoN2CoW8E56aqJdk1eyz%2Fnew-subscriber-discount-diagram.png?alt=media&amp;token=6c80e465-6370-49b8-8c39-b5fd877b791f" alt="How does Discounteo connect with Mailchimp scheme"><figcaption><p>How does Discounteo connect with Mailchimp</p></figcaption></figure>

1. Jane fills out your email subscription form.
2. Jane's data are being saved in MailChimp.
3. MailChimp notifies Discounteo about a new subscriber.
4. Discounteo generates a unique discount code `HELLO-GR8DL` and adds it to your Shopify store discounts.
5. Discounteo assigns the generated code to Jane's profile in MailChimp under a merge tag `*|DSCNT_CODE|*`.
6. MailChimp sends a welcome email to Jane including the unique discount code `HELLO-GR8DL`.\
   To make this happen you need to [set up an Automated Campaign](https://kb.mailchimp.com/automation/create-an-automated-welcome-email) in MailChimp.

**How does** Discounteo **with other email marketing providers?**

Discounteo can also work with ActiveCampaign, Jilt, Klaviyo, MailerLite, Omnisend, Privy or nearly any other email marketing service. You can include a unique discount code as an image. The discount image is also a link that redirects to your website, and applies the discount code automatically at checkout. The discount is created individually for each recipient at the moment when they open the email.

**Demo**

You can see the app in action on the [Discounteo Demo](https://personal-discount.myshopify.com/) store. When you subscribe to the mailing list you will receive a welcome email with the discount code created by the application.

Once you receive the discount code you will be able to use it at the checkout of the demo store.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FH48lDZ2RQ6YVBMKkUVZS%2Fcheckout-annotated.png?alt=media&amp;token=dcc54088-3a28-43d2-bcbe-2129ac77601b" alt="Discounteo discount code applied at Shopify checkout, highlighted for clarity."><figcaption><p>Discounteo discount code applied at Shopify checkout</p></figcaption></figure>
