> ## Documentation Index
> Fetch the complete documentation index at: https://funnelfox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mailchimp integration: email setup

> Connect Mailchimp to FunnelFox to capture leads and sync contacts. Automate email campaigns based on funnel events and purchases.

The Mailchimp integration automatically adds customers to your Mailchimp audience and syncs their marketing status, contact fields, and custom data in real time.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=ae5911ff8ac79c2f5bfd3b7bff6b6a9f" width="1920" height="879" data-path="assets/mailchimp.png" />
</Frame>

## How it works

The Mailchimp integration keeps your audience updated as users move through your funnels.

When a user interacts with a funnel:

1. **Contact creation**: FunnelFox creates a contact in your selected Mailchimp audience when a user provides their email using the Email Input element.
2. **Marketing subscription**: FunnelFox updates the contact's [marketing status](https://mailchimp.com/en/help/about-your-contacts/) in Mailchimp.

* **Subscribed**: If the user checks the consent checkbox in your funnel. These users are opted in to receive your marketing content.
* **Non-subscribed**: If the user leaves the consent checkbox empty. [Non-subscribed contacts](https://mailchimp.com/help/about-non-subscribed-contacts/) won't receive marketing emails, but they can still receive transactional emails.

3. **Contact details**: FunnelFox sends funnel context and manages tags in Mailchimp so you can segment users and trigger automations based on where they are in your flow. Here's what FunnelFox sends to Mailchimp:

* Email
* Phone (if provided in the funnel)
* Funnel ID
* Profile ID
* Session ID
* Experiment ID (if applicable)
* Project ID

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-contact.gif?s=2f76ef74671cd56cfc1a546a588f606d" width="1920" height="880" data-path="assets/mailchimp-contact.gif" />
</Frame>

You can connect multiple projects to the same Mailchimp audience and segment users by project ID.

<Warning>
  We recommend creating a new audience in Mailchimp for this integration. If you connect to an existing audience, FunnelFox-managed tags may overwrite existing tags when users interact with your funnel.
</Warning>

## Setup

You need an active Mailchimp account to complete this setup. Connect FunnelFox to your account, configure the audience fields, and set up email consent in your funnel.

### 1. Connect Mailchimp

1. Go to the **Audience** page in Mailchimp.

2. Click **More options > Audience settings** at the top right.

<Frame>
  <img src="https://mintcdn.com/funnelfox/ZIpjMaJETWVBovMo/assets/mailchimp-audience.png?fit=max&auto=format&n=ZIpjMaJETWVBovMo&q=85&s=02b41b8caf0c228d1699aed9bf1bbcfc" width="1920" height="879" data-path="assets/mailchimp-audience.png" />
</Frame>

3. Copy the **Audience ID**.

<Frame>
  <img src="https://mintcdn.com/funnelfox/ZIpjMaJETWVBovMo/assets/mailchimp-audience-id.png?fit=max&auto=format&n=ZIpjMaJETWVBovMo&q=85&s=d5cbb83d21e3dddb0c18926d63a3d117" width="1920" height="879" data-path="assets/mailchimp-audience-id.png" />
</Frame>

4. Go to [Integrations > Mailchimp](https://app.funnelfox.com/integrations/mailchimp) in FunnelFox.

5. Paste your Audience ID into the List ID field and click **Connect Mailchimp**.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-paste.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=4c72ae407f71d853af6a98a184067327" width="1920" height="879" data-path="assets/mailchimp-paste.png" />
</Frame>

6. Log in to your Mailchimp account.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-login.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=ae887bef92bbfb5e15572565549527f5" width="1920" height="879" data-path="assets/mailchimp-login.png" />
</Frame>

7. Click **Allow** to authorize FunnelFox integration.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-authorize.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=3d36231c113796ca52c9f1a3b0654067" width="1920" height="879" data-path="assets/mailchimp-authorize.png" />
</Frame>

<Check>You successfully connected FunnelFox to Mailchimp. Proceed with the Mailchimp configuration below.</Check>

### 2. Create audience fields

To sync custom contact information from FunnelFox to Mailchimp, create merge fields in Mailchimp:

1. Go back to **Audience settings** in Mailchimp.

2. Click **Edit audience fields**.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-edit-fields.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=236a7eeae29eb7b2d682d13c8e9e975f" width="1920" height="879" data-path="assets/mailchimp-edit-fields.png" />
</Frame>

3. Click **Create a new field** at the top right.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-create-field.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=ff4392540306317bde5bdcaabddf9078" width="1920" height="879" data-path="assets/mailchimp-create-field.png" />
</Frame>

4. Fill out the field creation page and click **Save**:

* **Field label**: Give the field a description you like, e.g. `FF Funnel ID`.
* **Data type**: Text.
* **Merge tag**: `FF_FUN_ID`.
* **Default merge tag value**: Leave empty.

<Frame>
  <img src="https://mintcdn.com/funnelfox/M6qJYoOnKhj61rdw/assets/mailchimp-fill-field.png?fit=max&auto=format&n=M6qJYoOnKhj61rdw&q=85&s=6b05e5499e59dac894ecbaf448f25ce6" width="1920" height="879" data-path="assets/mailchimp-fill-field.png" />
</Frame>

5. Repeat the field creation process to create five fields with the following merge tags:

* `FF_FUN_ID`
* `FF_PRO_ID`
* `FF_PRJ_ID`
* `FF_EXP_ID`
* `FF_SES_ID`

<Frame>
  <img src="https://mintcdn.com/funnelfox/ZIpjMaJETWVBovMo/assets/mailchimp-all-fields.png?fit=max&auto=format&n=ZIpjMaJETWVBovMo&q=85&s=4ed1fb18c902473ee841bb685a91b671" width="1920" height="879" data-path="assets/mailchimp-all-fields.png" />
</Frame>

### 3. Configure email consent

FunnelFox [will automatically update contact's marketing status](/integrations/email-providers/mailchimp#how-it-works) in Mailchimp.

1. Go to the **Parameters** tab of your Email Input in the funnel.

2. Set the **Consent** to **Yes**.

3. Optionally, set the default value of the consent and text.

<Check>Your setup is complete. Save and republish the funnel to make changes go live.</Check>

<Frame>
  <img src="https://mintcdn.com/funnelfox/WZP3rcM4GPeTYDRJ/assets/mailchimp-consent.png?fit=max&auto=format&n=WZP3rcM4GPeTYDRJ&q=85&s=8fe2816d8240936c3abed8dd5cfc0198" width="1164" height="902" data-path="assets/mailchimp-consent.png" />
</Frame>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Contacts are not being created in Mailchimp">
    If contacts aren't appearing in your Mailchimp audience, check that you're using valid email domains for testing.

    Mailchimp rejects emails with fake or invalid domains like `test@example.com` or `user@test.com`. For testing, use emails with real domains like `@gmail.com` or similar.
  </Accordion>
</AccordionGroup>
