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

# Mailchimp

> Sync storekit customer data to your Mailchimp audience automatically. Power email campaigns, newsletters, and segmented marketing flows for repeat business.

Mailchimp is an email marketing platform for creating and sending campaigns. The storekit integration automatically syncs customer data to your Mailchimp audience.

## Setup

1. Log in to your Mailchimp account
2. Go to **Account** → **Extras** → **API keys**
3. Generate a new API key
4. Note your **Audience ID** (found in Audience → Settings → Audience name and defaults)
5. In storekit, go to **Settings** → **Integrations**
6. Enter your Mailchimp API Key and Audience ID
7. Save changes

## Synced Data

When a customer places an order, the following data is sent to Mailchimp:

### Contact Information

| Field      | Mailchimp Field |
| ---------- | --------------- |
| Email      | `EMAIL`         |
| First name | `FNAME`         |
| Last name  | `LNAME`         |
| Phone      | `PHONE`         |

### Custom Fields

| Field         | Description               |
| ------------- | ------------------------- |
| `ORDER_COUNT` | Total number of orders    |
| `TOTAL_SPENT` | Lifetime spend            |
| `LAST_ORDER`  | Date of most recent order |
| `STORE_NAME`  | Store they ordered from   |

### Marketing Consent

Only customers who opt-in to marketing are added to your Mailchimp audience. Customers who don't consent are not synced.

## Tags

Customers are automatically tagged in Mailchimp based on:

* **Store name** - Which store they ordered from
* **Order type** - Delivery, Pickup, or Dine-in
* **First order** - New customers are tagged

## Use Cases

### Welcome Series

Send automated emails to new customers:

1. Create an automation triggered by new subscriber
2. Filter by "First order" tag
3. Send welcome email with menu highlights

### Re-engagement Campaigns

Win back lapsed customers:

1. Create a segment: `LAST_ORDER` more than 30 days ago
2. Send a "We miss you" campaign with an offer

### VIP Campaigns

Target your best customers:

1. Segment by `ORDER_COUNT` > 5 or `TOTAL_SPENT` > £100
2. Send exclusive offers or early access to new items

### Location-Based Campaigns

For multi-store operations:

1. Segment by store name tag
2. Send store-specific promotions or updates

## Sync Frequency

Customer data syncs to Mailchimp:

* **Immediately** when a new customer places their first order
* **Daily** for updates to existing customer profiles (order count, total spent)

## Related

<CardGroup cols={2}>
  <Card title="Customer Data" icon="users" href="/guides/marketing/customer-data">
    View and export customer data
  </Card>

  <Card title="Capturing Guest Data" icon="user-plus" href="/guides/guest-data/overview">
    Configure checkout data collection
  </Card>
</CardGroup>
