1. Home
  2. Startup
  3. How to Integrate MailChimp Into Your Startup Subscription Form

How to Integrate MailChimp Into Your Startup Subscription Form

The Startup App makes it easy to collect data from forms. When you add a form to your template, it comes with a prewritten code that makes it easy to receive data from forms.

Check out the forms help documentation to find out how to set up your forms and send data from them to your email.

Download free Mailchimp email templates from our email template gallery.

Integrate Mailchimp into your exported template

This guide will take you through how to integrate Mailchimp into your exported template, enabling you to send your clients details to Mailchimp and subscribe them to a newsletter.

Step 1: API Keys

To get started, you’ll need to create an API key on Mailchimp that you’ll use in the template. Go to API and create an API key:

How to Integrate MailChimp Into Your Startup Subscription Form

When you have at least one key created, it will be listed on the page. You can have more than one key, so it’s best to label each one for easy identification.

Take note of the Api key value of your created key, you will paste it into the exported template code later.

API key on Mailchim

API keys grant full access to your Mailchimp account and so you should protect them. If you think a key has been compromised, you should disable it and create another one. You can read more on this on the Mailchimp API Keys help page.

Step 2: Audience Settings

Next, you need the ID of the Mailchimp Audience that your subscribers will be added to. Go to Lists to access your Audiences. If you have at least one Audience created, it will be listed here. You can create an Audience with the Create Audience button on the page.

For your Audience of choice, use the dropdown menu shown below to access its Settings

Create Audience

Scroll to the bottom of the Settings page where you’ll find the ID of that particular audience.

Audience ID

Step 3: Insert API Keys

Finally, open the form-handler.php file in your exported project and paste in your API Key and List ID (Audience ID) as the values for $MailChimpAPIkey and $MailChimpListID respectively.


$MailChimpAPIkey = 'PUT_YOUR_API_KEY_HERE';

$MailChimpListID = 'PUT_YOUR_LIST_ID_HERE';

Now, your template is set up to start sending contact details to Mailchimp.

Updated on February 2, 2024
Was this article helpful?

Related Articles