Skip to main content

Mailchimp

What it does​

Adds the person behind each new submission of a form to your Mailchimp audience, or updates them when they're already in it. You can tag them, fill audience fields from the form, and let the visitor pick the groups they're interested in.

What Mailchimp receives:

  • the email address;
  • the audience fields you map, such as first name or phone;
  • for a signed-in customer, the customer details that the Mailchimp module of your store sends for every customer;
  • the form's tags, and the groups the visitor picked.

Answers you don't map aren't sent.

A new person is added as subscribed. When your store asks new newsletter subscribers to confirm (Need to Confirm in Magento's newsletter settings), they're added as pending and Mailchimp asks them to confirm. Someone already in the audience keeps their subscription status; only their details, tags and groups change. The details of someone already in the audience are overwritten with what the form sends, whoever typed the address. Because every submission subscribes, switch this on only for forms where people agree to receive your newsletter. Turn on Need to Confirm (double opt-in) in Magento's newsletter settings: without it, anyone who types an address into the form subscribes that address at once. Need to Confirm protects only new addresses: the details of someone already in your audience are still overwritten by whoever types their address.

Install​

This add-on works through Mailchimp for Magento 2, the Mailchimp module made by Ebizmarts. Composer installs it along with the add-on.

composer require mageme/module-webforms-addon-mailchimp
bin/magento setup:upgrade

Settings​

Connect your Mailchimp account​

The connection is set up in the Mailchimp module, not in WebForms. Go to Stores → Configuration → Mailchimp → Mailchimp. Under Mailchimp General Configuration, select Yes in Enabled, enter your API Key, pick the audience in Mailchimp List and save. These settings can differ per store view: a store view without them sends nothing to Mailchimp.

Choose what a form sends​

  1. Go to Content → WebForms → Manage Forms and click the form's name.
  2. Under Form Information, click Mailchimp Integration Settings.
  3. Select Yes in Enable Mailchimp Integration.
  4. In Customer Email, keep Default or pick the form's email field. Default is the address in the form's Submitter Email setting, or the customer account's address.
  5. Under Fields Mapping, click Add for each audience field you want to fill. Pick it in the Mailchimp column and the form field in Field.
  6. In Tags, pick the tags to give everyone who sends the form.
  7. Click Save.

The audience fields and tags come from your Mailchimp audience. On a saved form, click Refresh Lists in the section to load them. While the Mailchimp module isn't connected, the section is still there, but its lists are empty and nothing tells you why.

Let the visitor choose groups​

The builder's palette has a Mailchimp Group element for your audience's interest groups. Its Display As setting decides how the visitor picks:

Display As How the visitor picks
Dropdown From a drop-down list
Radio Buttons Exactly one, with every group visible
Checkboxes Any number

Changing Display As works like Turn Into in the field's menu; the builder asks you to confirm when a field that allowed several groups is about to allow only one. In the field's settings, pick the interest category in Mailchimp Group. The field then offers that category's groups, and the person joins the groups the visitor picks. The groups are kept up to date by Magento's scheduled tasks (cron). Like other fields with options, these fields can drive conditional logic.

How it works​

When a visitor submits the form, WebForms saves the submission and then queues it for Mailchimp. The queue is worked through by Magento's scheduled tasks (cron), so the person appears in your audience shortly after the visit. A form set to Do Not Store Submissions sends during the visit instead. Editing a submission later doesn't send it again. A submission without an email address is skipped.

To send submissions that already exist, or to send one again:

  1. Go to Content → WebForms → Manage Forms.
  2. In the form's row, click Select in the Actions column, then click Browse Results.
  3. Select the checkboxes of the submissions.
  4. Click Actions, then Send to Mailchimp, and confirm.

WebForms reports how many submissions were sent, skipped and failed. Send to Mailchimp is in the menu only while the integration is on for the form and the Mailchimp module is enabled with an API key and an audience, and only for admins with the Edit Result permission. A repeated send updates the same person.

To check that it worked, look for the person in your Mailchimp audience. WebForms doesn't mark a submission as sent.

Troubleshooting​

  • Nothing reaches Mailchimp. Check that Enable Mailchimp Integration is on for the store view the form was sent from, and that the Mailchimp module is enabled with an API key and an audience for that store view. Ask whoever runs your server to check that Magento cron is running and to search Magento's system log for "Mailchimp" in any letter case, and the Mailchimp module's log too. The lines about sending start with "WebForms integration" and name the service in lowercase, as mailchimp. A skipped submission is logged with the reason, such as "Mailchimp is off for the store view".
  • The log says API_Key_Invalid. Mailchimp refused the API key, and WebForms doesn't try again. Enter a valid API Key in the Mailchimp module's settings and send the waiting submissions again from the list.
  • Mailchimp refused the data, for example a required audience field that the form leaves empty. WebForms doesn't try again. Map a form field to it, save, and send the submission again from the list.
  • Mailchimp didn't answer, or answered with a server error or "too many requests". WebForms tries again, up to three tries in all, waiting longer before each one. After the third failure it gives up and writes an error to the log.
  • A Mailchimp group field offers no groups. Check the Mailchimp module's connection and that Mailchimp Group is chosen in the field's settings. The groups are loaded by Magento's scheduled tasks, so cron must be running.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026