The Mailchimp opt-in checkbox lets your visitors choose whether they want to subscribe to your mailing list when they submit a Contact Form 7 form. In other words, instead of automatically adding every form submission to your Mailchimp audience, the checkbox gives visitors explicit control over their subscription.
Additionally, this feature is essential for GDPR compliance and email marketing best practices. This guide shows you how to add the Mailchimp opt-in checkbox to your form, configure it in Chimpmatic, and verify it works correctly.
Why Use an Opt-in Checkbox?
Without a Mailchimp opt-in checkbox, every visitor who submits your contact form gets added to your Mailchimp audience automatically. However, this approach creates several problems:
- GDPR violations. In the EU, adding someone to a marketing list without explicit consent is illegal. Consequently, you need a clear opt-in mechanism.
- Higher unsubscribe rates. Visitors who did not expect marketing emails will unsubscribe immediately, which hurts your sender reputation.
- Spam complaints. Subscribers who never opted in are more likely to mark your emails as spam. As a result, Mailchimp may suspend your account.
In short, the opt-in checkbox protects both your visitors and your email deliverability.
Step 1: Add the Checkbox to Your Form
In your Contact Form 7 form editor, add a checkbox field using the [checkbox] tag. Specifically, the form should look like this:
Furthermore, notice the checkbox tag inside the form: [checkbox my-optin “Subscribe me your newsletter”]
The tag name my-optin is the mail-tag you will use in the next step. You can name it anything you want, but my-optin is a clear, descriptive choice. Moreover, the text in quotes is what visitors see next to the checkbox.
Step 2: Configure the Form Tab
Configure your form the same way you see it on this screenshot. Most importantly, the Mailchimp opt-in checkbox must appear as a separate field — not inside a label with other fields.
For instance, the form code above includes three fields: name, email, and the opt-in checkbox. The checkbox is not required — visitors can submit the form without checking it, and they simply will not be added to your Mailchimp audience.
Step 3: Map the Opt-in in Chimpmatic
Now open the Chimpmatic tab in your CF7 form editor. Add the mail-tag [my-optin] to the Required Acceptance field under Advanced Settings. In particular, this tells Chimpmatic to only subscribe visitors who checked the box.
After these steps have been done, save your form and run some tests. Specifically, submit the form once with the checkbox checked and once without it, then verify in Mailchimp that only the checked submission created a subscriber.
How It Works Behind the Scenes
When a visitor submits your form, Chimpmatic checks the value of the [my-optin] mail-tag. If the checkbox was checked, the value is not empty — so Chimpmatic proceeds with the Mailchimp API call and adds the subscriber. If the checkbox was unchecked, the value is empty, and Chimpmatic skips the subscription entirely.
As a result, the form still sends the email notification to you (configured in the Mail tab), but the visitor is not added to Mailchimp. This is the expected behavior — the contact form works normally regardless of the checkbox state.
Opt-in Checkbox vs GDPR Consent Fields
The Mailchimp opt-in checkbox and GDPR consent fields serve different purposes:
- Opt-in checkbox — Controls whether the visitor is added to your Mailchimp audience at all. It is a simple yes/no gate.
- GDPR consent fields — Record what type of marketing the subscriber agreed to (email, direct mail, advertising). These are stored in the subscriber’s Mailchimp profile for compliance audits.
For maximum compliance, use both. The opt-in checkbox gates the subscription, and GDPR consent fields record the details. For more information, see Collect GDPR Consent with Mailchimp.
Troubleshooting the Opt-in Checkbox
If your Mailchimp opt-in checkbox is not working as expected, check the following:
- Mail-tag mismatch. The tag name in the Required Acceptance field must match the checkbox tag exactly. If your checkbox is
[checkbox my-optin], the acceptance field must contain[my-optin]. - Subscribers added without checking the box. This means the Required Acceptance field is empty or has the wrong tag name. Open the Chimpmatic tab and verify the value.
- Nobody getting subscribed at all. Make sure the checkbox tag name does not conflict with another field. Additionally, check that your Mailchimp API key is valid and the audience is selected.
- Form not sending to Mailchimp. If neither checked nor unchecked submissions reach Mailchimp, the issue is likely with the API connection, not the checkbox. See Contact Form 7 Not Sending to Mailchimp for common fixes.
Next Steps
- Collect GDPR Consent with Mailchimp — full GDPR consent guide for Contact Form 7.
- Connect Contact Form 7 to Mailchimp — full setup guide if you are starting from scratch.
- Contact Form 7 Not Sending to Mailchimp — troubleshoot common issues.
- Mailchimp double opt-in documentation — official reference for opt-in settings.