Firstly, navigate to your Shopify dashboard > Apps > Personal Discount. Next, click the Add automation button, select MailerLite as your email service provider, and Welcome new subscribers as a campaign type.
Then set up your automation details. For more information, take a look at the article on how to configure discount.
Save your automation and copy the code snippet to the clipboard.
Now you can switch over to your MailerLite admin panel. Hit Automation > Create workflow.
Select the When subscriber joins a group trigger and the group where your Shopify customers are subscribed to.
Now add the action that will be performed when a subscriber joins the group. In this case, it will be to send an email.
Let's prepare our email template. We can use the drag and drop editor for this.
Now design your message template. Add the code snippet from Personal Discount to your automation. Drag and drop a text element to your message project. Next, edit this one. Switch over to the HTML view. Delete the existing code snippet and paste the one from Personal Discount. In the end, Save changes. When your template is ready, hit Done editing.
When your automation is ready, it's time to activate it.
From now, when someone subscribes to your newsletter, they will receive a welcome email with a discount code for their next purchase.