# Using a campaign with MailChimp

## 📧 Create a virtual campaign

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFCgY4hgRzjvOeZZlbR%2F-MFChk8shsduNMeT0cBL%2Fcaptured%20\(12\).png?alt=media\&token=2e804b58-63db-49b1-8a27-2fc5c9882905)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MEqZZYZ8Wh1MYqT9cuO%2F-MEreU1EnIKXcmk-8_il%2Fcaptured%20\(5\).png?alt=media\&token=a016d577-f4af-4528-90fc-48e12162b261)

1. At the left vertical menu choose the [Campaigns](https://docs.ngsurvey.com/form-management/campaigns) section and press **Launch Campaign**
2. Label your campaign
3. Enable [Virtual campaign](https://docs.ngsurvey.com/form-management/campaigns/campaign/virtual-campaign#what-is-a-virtual-campaign)
4. At the recipients page select **Import emails** option
5. Upload your CSV file with emails
6. Press <img src="https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MEqZZYZ8Wh1MYqT9cuO%2F-MErgscX9k_xjMKAlZZF%2Fimage.png?alt=media&#x26;token=5c21f5a8-60fa-4e70-b91f-747c309a893a" alt="" data-size="line"> **Launch campaing**

## 👨‍💻️ Generate unique codes

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFCgY4hgRzjvOeZZlbR%2F-MFCjNEvpe4nZ-o4jOa2%2Fcaptured%20\(7\).gif?alt=media\&token=840863ec-242e-4436-8198-d941091061c4)

1. Go back to the **Campaigns** section
2. Choose the campaign to work with
3. Go to the **Pending** page
4. Press [Export all](https://docs.ngsurvey.com/form-management/campaigns/campaign/virtual-campaign#export-the-recipients), to create a CSV file with unique codes to your survey for each recipients

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MErs99YKNIhMu41lNr4%2F-MF-d6N-DQODrVqe0goH%2Fcaptured%20\(7\).png?alt=media\&token=66720d92-e0b0-4b12-9a83-13ae38df2426)

{% hint style="info" %}
The unique codes are generated automatically once you have launched the campaign and bonded with the recipients emails
{% endhint %}

## 🐵 Import unique codes and survey links to the MailChimp

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFB0sNdHmCd7wfQhpCp%2F-MFBB27fcDnhKyp8ASKi%2Fmailchimp1.png?alt=media\&token=1aa8683c-ed63-4d87-9eb2-947ff48cfebe)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBBCppvQyFjwCQUxeh%2F-MFBJnSkDq3RRRMViKl6%2Fmailchimp2.png?alt=media\&token=9050597b-41b8-4dd5-a946-5ac6aeb01a97)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBBCppvQyFjwCQUxeh%2F-MFBMOZF3YIvMKnOomXk%2Fmailchimp3.png?alt=media\&token=f8f5ff2c-b6e1-40d6-b450-89931b24c320)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBBCppvQyFjwCQUxeh%2F-MFBMTB-BAXgqg4G5l4S%2Fmailchimp3.2.png?alt=media\&token=01b43a82-2c92-4025-8f59-473ab6215461)

1. At your MailChimp account go to the **Audience** **dashboard** and choose **Import contacts** from the Manage Audience dropdown list on the right
2. Upload your **CVS file** emails, link and unique codes
3. Press on the header of the column and choose to **Create a new** field to edit and tag the codes or links

## ✈️ Start the MailChimp campaign with the ngSurvey

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBPj2UFpTJanvQUnmF%2F-MFBTKy-jQ2FpCJ3qlje%2Fmailchimp4.2.png?alt=media\&token=dae12dc2-dce0-4d68-bd99-5ff5de2a74d8)

1. Go to the **Editors page** of the Email templates
2. In the toolbar, on the right of the editors page, press **Merge Tags**
3. Select the tags of the survey link and unique code

{% hint style="info" %}
Choose place in the message where you prefer to perform the **merged tag** before selecting the tags
{% endhint %}

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBUeMxpmFHgz6AI7Go%2F-MFBY1hj9gJe-sFPSp2x%2Fmailchimp5.png?alt=media\&token=f1111362-a0d9-4c77-be08-6f1a1c00cb76)

After launching the campaign via MailChimp, each of the your recipients will receive an email with the survey link and unique code to access your survey.
