Navigate to your Shopify dashboard > Apps > Personal Discount. Select MailerLite as your email service provider and Follow up on purchases as the campaign type.

Add Personal Discount automation for the follow up on purchases campaign with MailerLite animated

Next, specify your automation details. Set the discount pattern, value, expiration date, etc. Take a look at the article on how to configure discount to find more information.

Save your automation and copy the code snippet from the bottom of the page to the clipboard.

Copy Personal Discount automation code snippet animated

Switch over to your MailerLite dashboard. Go to the Automation section and click Create workflow.

Create MailerLite workflow animated

Set up the event that will trigger the automation. Open the E-commerce automation section, drop down the Workflow trigger menu and select Purchases any product. Then hist Save.

Set purchases any product trigger in MailerLite animated

Now add the action that will be performed when a customer enters this automation. We would like to send an email.

Add email sending by your MailerLite automation animated

Next, design your message. We will use the drag and drop editor.

MailerLite design email: drag and drop editor animated

Drag and drop a text element into your template and Edit it. Switch over to the HTML view. Delete the default code snippet and paste the one from Personal Discount. Then Save the element and entire template by clicking the Done editing button. 

Paste HTML code snippet into MailerLite email template animated

In the end, switch on your automation. 

Switch on MailerLite automation animated

From now, when a customer buys any product in your store, will get an email with a unique discount code.