# Increase your newsletter audience using the iContact welcome campaign with a discount code

Firstly, create an automation in Personal Discount. Navigate to the **Shopify admin panel** > **Apps** > **Personal Discount** > **Add automation**. Then, select **iContact** as your Email Service Provider and **Welcome new subscribers** as the campaign type.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FNDOErlnkDqn0IkJjET9x%2Ficontact-shopify-personal-discount-code-create-automation-animated.gif?alt=media&#x26;token=0dfa0472-b371-46fb-a9aa-e4a5bd37a3c0" alt="How to set iContact as Email Service Provider in welcome campaign in Personal Discount animated"><figcaption><p>Create Personal Discount automation with iContact</p></figcaption></figure>

Now you need to specify your discount details. Set the code pattern, the value, the expiration date, etc. For more information, see the article on [how to configure discount](https://docs.personaldiscount.io/personal-discount-for-shopify/configure-discount).&#x20;

When you set your automation details, **Save** them 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%2FeJMnjCUbaWp2VFPS4gEH%2Ficontact-shopify-personal-discount-code-snippet-copy-animated.gif?alt=media&#x26;token=d3eea4b5-4b64-4ef8-9783-41f219d45b8b" alt="How to copy the Personal Discount code snippet to the clipboard animated"><figcaption><p>Copy the Personal Discount code snippet</p></figcaption></figure>

That's all you need to prepare in your Shopify dashboard. Now switch over to your iContact admin panel. Firstly, create your welcome email message. You can use one of the templates, build your message from scratch or use the HTML editor.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FgdZzZX8HMvPe5SU1tnyi%2Ficontact-create-message-animated.gif?alt=media&#x26;token=43cad265-040b-4bf6-a77d-d8d0437a5836" alt="How to create iContact message animated"><figcaption><p>iContact: create message</p></figcaption></figure>

Let's add your Personal Discount code snippet to your email template. Drag and drop an **HTML element**, and paste the code snippet. Then hit **Preview changes** > **Apply changes**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FTOyAI1iElN26GpLyOmvt%2Ficontact-insert-personal-discount-code-snippet-into-email-template-animated.gif?alt=media&#x26;token=5ef45ec9-9a4e-4de5-b501-f87409d7f925" alt="How to add an HTML element to the iContact email template animated"><figcaption><p>iContact: add an HTML element to the code snippet</p></figcaption></figure>

When you've finished your template, click on **Save and Exit**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F494DqfrWMMcqTdzuztTz%2Ficontact-save-email-template-and-exit-annotated.png?alt=media&#x26;token=e92260c9-e7b3-4033-a7d3-efa323fd531a" alt="Save and exit iContact email template annotated"><figcaption><p>Save iContact email template</p></figcaption></figure>

The next step is creating an iContact welcome automation. Navigate to the **Automation** from the left-hand sidebar > **Create an automation**. Then type the name of your automation. Select **Subscribe Event** as the trigger and hit **Continue**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FeLkSIzaYmTI7Egm3ojkf%2Ficontact-create-welcome-automation-animated.gif?alt=media&#x26;token=6398d4ed-19f1-4998-ade7-c785ca5b780d" alt="How to create iContact welcome automation animated"><figcaption><p>Create iContact welcome automation</p></figcaption></figure>

Now set the automation trigger. Select your **Shopify audience** and decide, if you want to include existing subscribers. Then, hit **Save**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FXnbjjtr2GM99ZMSa8FCa%2Ficontact-set-welcome-automation-trigger-animated.gif?alt=media&#x26;token=0a11ef2c-2fb6-4a83-ad6b-2c5c0187a674" alt="How to set iContact welcome automation Shopify trigger animated"><figcaption><p>How to set iContact welcome automation Shopify trigger</p></figcaption></figure>

Add the action that will be performed when a customer enters the automation. Click on the **plus sign** and **Add an action**. Then pick the **Send message** option and **Select** your email template.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FXnbjjtr2GM99ZMSa8FCa%2Ficontact-set-welcome-automation-trigger-animated.gif?alt=media&#x26;token=0a11ef2c-2fb6-4a83-ad6b-2c5c0187a674" alt="How to set iContact welcome automation action animated"><figcaption><p>Set action in iContact welcome automation</p></figcaption></figure>

Finally, you can Activate your automation.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FKMzsqgOzcs5MDUs1Mv3P%2Ficontact-welcome-automation-add-an-action-animated.gif?alt=media&#x26;token=f9576b7b-8f55-409d-b96b-434a2daf46f4" alt="How to activate iContact automation annotated"><figcaption><p>Activate iContact automation</p></figcaption></figure>

From now, when someone subscribes to your newsletter, they will receive a welcome message with a discount code.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fi5000GtDdcO4GVkEOUHd%2Ficontact-shopify-personal-discount-code-welcome-message.png?alt=media&#x26;token=6f972450-d7de-40e2-8aec-3554738a8ba0" alt="iContact welcome message with a discount code"><figcaption><p>iContact welcome message with a discount code</p></figcaption></figure>
