How to add a unique discount code to welcome emails in ActiveCampaign
A step by step guide on how to send a welcome email from ActiveCampaign that will include a unique discount code to be redeemed in your Shopify store.
First, let's prepare a discount automation in Personal Discount. Open Personal Discount in your Shopify admin panel, and click on Add automation. Select ActiveCampaign as email service provider and Welcome new subscribers as the campaign type.
Create welcome Personal Discount automation for ActiveCampaign
Specify the discount settings
code pattern
discount type
discount value
usage limit
expiration date
according to your needs. Hit Save once you are done.
Save your Personal Discount automation
Scroll down to the bottom of the settings page, and copy the code snippet. It's enough when you click on the code snippet and then the app will copy it to your clipboard.
Copy the code snippet from Personal Discount
Now, log in to your ActiveCampaign account and navigate to Automations. If you don't have a welcome email series yet then click on Create an automation.
Create new ActiveCampaign automation
Filter available recipes by the keyword "welcome". Select Welcome Series and click on Continue.
Select a campaign type
You'll see a workflow designer. Click on Get Started to let the automation wizard guide you through the initial setup where you specify the email address from which the welcome email is going to be sent.
Configure your ActiveCampaign automation
Click on the first email in the series. It's the flow element described as Send an email "Welcome Email".
Set sending an email in ActiveCampaign automation
A pop-up appears where you need to click on Edit to open the email template editor.
Edit your ActiveCampaign email template
In the email editor, drag and drop the HTML Block to the desired place in your welcome email.
Insert HTML block into your ActiveCampaign email template
Click on the added HTML Block and paste the code snipped copied from Personal Discount.
Edit HTML element and paste code snippet from Personal Discount
Click on Save and you should see a unique discount code added to your email.
Pesronal Discount code preview in ActiveCmapaign email template
Click on Save and exit. Finally, you can click on Active to start sending your welcome series to new subscribers.