Connect Mailchimp and Mida can show an A/B test or a personalization only to the contacts you choose, by tag, group or audience field. You sign in to Mailchimp once and add a short piece of text to the links in your Mailchimp emails. There is no code to add to your site and no key to copy.
It also works the other way: Mida can save a survey answer, or any other attribute you choose, onto the contact in Mailchimp.
Plan: targeting by Mailchimp audience needs a paid Mida plan. It works with every Mailchimp plan, including free.
How it works
The short version: you add ?md_mc=*|URL:EMAIL|* to the links in your Mailchimp emails. Mailchimp fills in the contact's email when it sends. When they click through, Mida looks the contact up in your Mailchimp audiences and saves their tags, groups and the audience fields you picked on their Mida visitor. Your targeting rules then read those values.
A finished link looks like this before Mailchimp sends it:
https://yoursite.com/pricing?md_mc=*|URL:EMAIL|*
After the visitor lands, Mida removes md_mc from the address bar. It keeps only Mailchimp's ID for the contact in the browser, never the email address.
What Mida copies
Data | What is copied | Name in Mida |
Tags | Every tag in your audience, saved as true when the contact has it and false when they do not. Always on. |
|
Groups | Every group option in your audience (the choices inside a group such as "Interests"), saved as true when the contact picked it and false when they did not. Always on. |
|
Audience fields | Only the fields you tick. |
|
Status | Only if you tick it. It is subscribed, unsubscribed, cleaned, pending, transactional or archived. |
|
Tag and group names are turned into lower case with underscores, so "Webinar 2026" becomes mc_tag_webinar_2026. Audience fields use their merge tag, in capitals. You do not have to work these out. Mida lists the exact name next to each one, and you can click it to copy.
Address fields are not offered. Mailchimp segments are not available, only tags and groups. If you need a segment, tag its contacts and target the tag. If your account has more than one audience, Mida looks in the first 10.
When targeting applies
Targeting applies from the visitor's next page view, not the page they land on from the email. The lookup runs in the background so it never slows your page or delays a test.
Mida keeps a person's data for up to 6 hours before asking Mailchimp again. A change you make in Mailchimp can take that long to show up in Mida.
Mida remembers the person in that browser, so they stay recognized on later visits. Another browser or device needs its own click from an email.
Visitors who never clicked one of your Mailchimp emails stay anonymous and do not match any Mailchimp rule.
Before you start
You need to be an Owner or Admin in Mida.
You need a Mailchimp login for the account you want to connect.
Make sure the Mida tag is installed on the pages your emails link to.
Connect Mailchimp
In Mida, open Integrations and choose Mailchimp under Marketing & Email.
Click Enable Mailchimp Integration, then open the Config tab.
Click Connect to Mailchimp. Mailchimp opens and asks you to log in and authorize Mida.
Log in and click Allow.
You are taken back to Mida, which shows Connected with your Mailchimp account name. Tick the fields you want to use under Attributes to bring in, then click Save attributes. You can pick up to 40.
Tags and groups need no setup: all of them are brought in. If Mailchimp's access ever stops working, Mida shows the error on the Config tab, and Reconnect signs you in again without losing your settings.
Add the ID to your email links
In each Mailchimp email or automation, add this to the end of every link that goes to your site:
?md_mc=*|URL:EMAIL|*
If the link already has a
?in it, start with&instead of?.If the link ends with a
#sectionpart, put the text before the#.You can copy the exact text from the Mailchimp Config tab in Mida.
It only works on links in emails Mailchimp actually sends. In a preview the value is usually not filled in.
Mailchimp replaces
*|URL:EMAIL|*with the contact's email address, encoded so it is safe in a link.
To keep email addresses out of your links, you can use Mailchimp's unique ID for the contact with ?md_mc=*|UNIQID|* instead.
Target a test or a personalization
Open your test and go to Targeting.
Add a Segment rule.
In the attribute field, type the name from the Mailchimp Config tab.
Choose a condition and a value, then save.
You want to reach | Attribute | Condition | Value |
Contacts tagged "Customer" |
| Is true | |
Known contacts who are not tagged "Customer" |
| Is false | |
Contacts who picked "Product news" in a group |
| Is true | |
Subscribed contacts only |
| Is equal to | subscribed |
Everyone Mida has recognized from Mailchimp |
| Exists |
A few things to know about conditions:
To target people who have something use Is true. To target known contacts who do not have it use Is false.
Anonymous visitors never match one of these rules, including "Is false" and "Does not exist". Mida knows nothing about them, so it leaves them out.
Text conditions are case sensitive. "Pro" and "pro" are different values.
All values arrive as text. Number and date conditions still work as long as the value looks like a number or a date.
For the full list of conditions, see How to use Segment & Event Filtering.
Send Mida attributes to Mailchimp
Mida can also save attributes onto the matching contact in Mailchimp. The usual case is a survey: a visitor answers "What is your team size?" on your site, and the answer is saved on their Mailchimp contact, where your emails and automations can use it.
There is nothing extra to connect. Mailchimp is written with the same sign-in.
In Mailchimp, add an audience field for each attribute you want to receive, if it does not exist yet (Audience, Settings, Audience fields and merge tags). Note its merge tag, for example
TEAMSIZE.In Mida, open the Mailchimp Config tab. Under Send Mida attributes to Mailchimp, tick the attributes you want to send, then click Save. You can pick up to 20.
What you can pick from
Survey answers: every question with Save the answer to the visitor turned on, shown with the question and its survey.
Attributes on your visitors: names Mida has seen on your recent visitors, for example ones you set with
mida.identify(), with how many visitors carry each.If an attribute has not reached a visitor yet, type its name in Not listed? and click Add.
The name must match the merge tag of an audience field. Capitals do not matter, so teamsize matches TEAMSIZE. A name with no matching field is skipped, and so are address fields. Mailchimp merge tags are at most 10 characters, so you may need to save the answer under a shorter name.
How it behaves
It is only sent for visitors Mida has recognized from one of your Mailchimp emails. Anonymous visitors are never sent.
If a visitor answers first and is recognized later, the answer is sent as soon as they are recognized.
Nothing is sent until a name is on the list. Mida never sends an attribute you did not list.
Mida never creates a new contact in Mailchimp. It only updates ones that already exist.
The same value for the same contact is sent once an hour at most.
A value overwrites whatever was there before.
To stop, untick everything and click Save.
Test that it works
Pick a tag that applies to you, and create a test that targets it.
Add the link text to an email and send it to yourself as a real send, not a preview.
Before you click, hover over the link in your inbox. You should see
md_mc=followed by a real value. If you see the placeholder text instead, Mailchimp did not fill it in.Click the link in a normal browser window. Mida removes
md_mcfrom the address bar once the page loads.Go to another page on your site, or reload. You should now be in the test.
Privacy and consent
Mida copies only what is listed above and the fields you tick. Nothing else is read into Mida.
In the other direction, Mida sends Mailchimp only the attributes you list under Send Mida attributes, and only for recognized visitors.
The values are saved on the visitor in Mida and used for targeting only. They are not sent back to the visitor's browser.
If you use Strict Consent Mode, Mida does not read or store the contact ID until the visitor gives consent. If consent is withdrawn, the stored ID is removed from the browser.
Mida never creates a visitor from a Mailchimp lookup, so this does not add to your monthly tracked users.
Mida never sees your Mailchimp password. Mailchimp gives Mida an access token, which is encrypted at rest.
When you disconnect, Mida deletes its access token and stops looking people up. Mailchimp gives apps no way to revoke their own access, so you can also remove Mida from the connected apps in your Mailchimp account. Values already saved on visitors stay there, but they are no longer refreshed.
Limits
Limit | Value |
Fields you can bring in | 40 per project |
Length of a field value | 200 characters. Longer values are cut. |
Tags and groups in your account that Mida tracks | 200 of each |
How long a contact's data is reused before Mida asks Mailchimp again | Up to 6 hours |
New contacts Mida looks up | About 120 a minute |
Attributes you can send to Mailchimp | 20 per project |
Mailchimp allows 10 requests at the same time for each Mailchimp user, shared with every other tool connected with that login, and Mida stays well under that. Right after a large send, some visitors may be recognized a page view or two later than usual.
Troubleshooting
What you see | What to check |
"The Mailchimp sign-in expired or was already used" | Click Connect to Mailchimp again and finish within 10 minutes. |
"Mailchimp connection was cancelled" | You clicked Cancel in Mailchimp. Start again when you are ready. |
The link in my inbox shows | The email was a preview, or the merge tag was mistyped. Check the spelling and send a real email. |
I clicked the email but I am not in the test | Targeting starts on the next page view. Load a second page. Also check the link had |
A tag or group shows as false for someone who has it | Mida reads the first 10 audiences in your account. If the contact is in a later one, contact us in the chat. |
A survey answer is not showing up in Mailchimp | Check that an audience field with that merge tag exists and is not an address field, that it is ticked under Send Mida attributes, and that the visitor clicked one of your Mailchimp emails in that browser. |
"Mailchimp access was removed. Reconnect Mailchimp to continue." | Mailchimp stopped accepting Mida's access, for example because Mida was removed from your Mailchimp account. Click Reconnect on the Config tab. |
I changed a contact in Mailchimp and Mida has not noticed | Mida reuses a contact's data for up to 6 hours, and the list of tags, groups and fields for 10 minutes. |
FAQ
Does this work for visitors who never opened my emails?
No. Mida can only recognize someone after they click a link from one of your Mailchimp emails. Everyone else is anonymous.
Do I need to change my emails?
Yes. Mailchimp does not put a usable contact ID on links by itself, so you add the short text above to your links.
Will it slow down my site?
No. The lookup happens in the background after your page and your tests have loaded.
Can I connect more than one email platform?
Yes. A project can connect several, for example HubSpot as your CRM and another tool for email. Each is connected and set up on its own card. A visitor recognized by more than one gets each platform's data side by side, and an attribute you send goes to every platform that lists it.
