Documentation
MailChimp Integration Guide
Connect your LeadMachine account with MailChimp to automatically sync leads and build powerful email marketing campaigns.
What is the MailChimp Integration?
The integration allows you to:
- Automatically sync leads to MailChimp lists
- Keep contact information synchronized
- Segment leads based on status or custom fields
- Track email campaign engagement in LeadMachine
- Build targeted marketing campaigns
- Active LeadMachine account (Admin or SuperAdmin)
- MailChimp account (free or paid)
- MailChimp API key
- Navigate to Admin → Migrations (SuperAdmin only)
- Find "MailChimp Integration"
- Click Run Migration
- Wait for completion
- Visit mailchimp.com
- Log in to your account
- Click your profile icon (bottom left)
- Select Account & Billing
- Go to Extras → API keys
- Click Create A Key
- Give it a name: "LeadMachine Integration"
- Click Generate Key
- Copy the API key (you won't see it again!)
- Log into LeadMachine as Admin
- Navigate to Settings → Integrations → MailChimp
- Paste your MailChimp API key
- Click Connect
- Wait for verification (5-10 seconds)
- Success message confirms connection
- Green checkmark appears
- Your MailChimp username displays
- Available lists are loaded
- Verify API key was copied correctly
- Check MailChimp account is active
- Try generating new API key
- Contact support if issue persists
- Settings → Integrations → MailChimp
- Under Sync Settings, select: - MailChimp List: Choose destination list
- Click Save
- Use existing MailChimp list
- Or create new list in MailChimp first
- ☑ All leads automatically
- ☐ Only leads with specific status
- ☐ Only leads with specific type
- ☐ Only manually selected leads
- ☑ All leads automatically
- Best for: Small companies, simple setup
- ☐ All leads automatically
- ☑ Status: Qualified, Proposal, Won
- Best for: Only market to qualified prospects
- ☐ All leads automatically
- ☐ No automatic sync
- Best for: Control exactly who gets synced
- First Name → FNAME
- Last Name → LNAME
- Email → EMAIL (required)
- Company → COMPANY
- Phone → PHONE
- Lead Status → Custom field in MailChimp
- Lead Type → Custom field
- Any custom lead fields → MailChimp merge tags
- Settings → Integrations → MailChimp
- Scroll to Field Mapping
- Click + Add Mapping
- Select LeadMachine field
- Select or create MailChimp merge tag
- Click Save Mapping
- Open lead detail page
- Click Sync to MailChimp button
- Confirm sync
- Green checkmark when complete
- Navigate to Leads list
- Check boxes next to leads to sync
- Click Bulk Actions → Sync to MailChimp
- Confirm sync
- Progress indicator shows status
- 1-2 seconds per lead
- Shows success/failure count
- Notification when complete
- Settings → Integrations → MailChimp
- Auto-Sync Settings: - ☑ Enable automatic sync
- Trigger conditions: - ☑ When lead is created - ☑ When lead status changes - ☑ When contact info updates
- Click Save
- Runs in background automatically
- Syncs within 5 minutes of trigger
- No manual intervention needed
- Respects sync rules (status filters, etc.)
- Real-time: Sync immediately when changed
- Hourly: Batch sync every hour
- Daily: Sync once per day
- Manual only: No automatic sync
- Settings → Integrations → MailChimp
- Tagging Rules: - Add tag based on lead status - Add tag based on lead type - Add tag based on source
- Click Add Tag Rule
- Status = "Hot Lead" → Tag: "hot_prospect"
- Type = "Demo Request" → Tag: "demo_requested"
- Source = "WordPress" → Tag: "website_lead"
- Segmented email campaigns
- Automated workflows in MailChimp
- Better targeting
- Go to Audience → Segments
- Click Create Segment
- Add conditions using your mapped fields
- Save segment
- "Hot Leads" - Status = qualified, Last contact < 7 days
- "Lost Opportunities" - Status = lost, Industry = Healthcare
- "Trial Users" - Type = trial, Created > 30 days ago
- MailChimp icon shows sync status
- Green = Synced
- Gray = Not synced
- Orange = Pending sync
- Red = Sync failed
- Last sync date/time
- MailChimp subscriber ID
- Link to view in MailChimp
- Sync history
- Settings → Integrations → MailChimp
- Click View Sync Log
- See all sync events: - Timestamp - Lead name - Action (added/updated/removed) - Success/failure - Error messages if failed
- Date range
- Success/failure
- Specific lead
- Action type
- Automatically marked in LeadMachine
- "Unsubscribed" tag added to lead
- No longer synced to MailChimp
- Respects their opt-out
- Unsubscribed leads show badge
- Can't manually re-sync until they re-subscribe
- Historical data preserved
- ✓ Respects unsubscribe requests
- ✓ Allows data deletion
- ✓ Uses double opt-in if configured
- ✓ Provides audit trail
- Delete lead in LeadMachine
- Lead automatically removed from MailChimp
- Or delete in MailChimp first
- Sync will update LeadMachine
- Add custom field "Marketing Consent"
- Map to MailChimp GDPR field
- Only sync leads with consent = true
- Verify API key copied fully (no spaces)
- Check MailChimp account is active
- Generate new API key and try again
- Clear browser cache
- Try different browser
- Lead meets sync rules (status filter, etc.)
- Lead has valid email address
- Email not already in MailChimp list
- Sync log for error messages
- MailChimp list isn't archived
- Invalid email address
- Duplicate email in MailChimp
- Lead doesn't match sync filters
- Email previously unsubscribed
- Fix email format in LeadMachine
- Re-sync
- Lead is already in MailChimp list
- Force update to refresh data
- List was deleted in MailChimp
- Select different list in settings
- API key was revoked
- Generate new key
- Reconnect integration
- Delete duplicates in MailChimp
- Standardize email in LeadMachine
- Re-sync
- MailChimp will merge by email
- Settings → Integrations → MailChimp
- Webhooks: - ☑ Subscribe events - ☑ Unsubscribe events - ☑ Profile updates - ☑ Campaign sent
- Click Save
- Email address changes
- Unsubscribe status
- Profile updates
- See which campaigns lead received
- Track opens and clicks
- Log campaign activity in lead timeline
- Create automation in MailChimp
- Use tags as triggers
- Tag leads in LeadMachine
- Automation runs automatically
- Lead status → "Demo Complete"
- LeadMachine adds tag "demo_complete"
- MailChimp automation sends follow-up sequence
- ✓ Clean invalid emails
- ✓ Remove test leads
- ✓ Standardize names (capitalize properly)
- ✓ Fill in missing information
- Sync 10-20 leads manually first
- Verify they appear correctly in MailChimp
- Check field mappings are right
- Then enable auto-sync
- Review sync logs for errors
- Check for duplicate contacts
- Verify field mappings still correct
- Update sync rules if needed
- Clean unsubscribed leads
- Archive old campaigns
- Review and optimize segments
- Create segments by status
- Tag by source or type
- Build targeted campaigns
- Higher engagement, better results
- ✓ Unlimited syncs
- ✓ All features available
- ✓ No additional cost
- Free: 500 contacts, 1,000 emails/month
- Essentials: 50,000 contacts
- Standard: 100,000 contacts
- Premium: 200,000+ contacts
- Settings → Integrations → MailChimp
- Click Disconnect
- Confirm disconnection
- Integration stops working
- No more syncing
- Data remains in both systems
- Can reconnect anytime
- Screenshot of error message
- Sync log excerpt
- What you were trying to do
- Your MailChimp plan type
Setup Requirements
Before you start, you need:
Run the migration first:
Note: If you don't see Migrations page, ask your SuperAdmin to run it.
Getting Your MailChimp API Key
Step 1: Log into MailChimp
Step 2: Generate API Key
Security: Never share your API key or commit it to code.
Connecting MailChimp to LeadMachine
Initial Connection
Verify Connection
After connecting:
If connection fails:
Syncing Leads to MailChimp
Choose a List
Options:
Configure Sync Rules
Decide which leads to sync:
Sync Options:
Example configurations:
Option 1: Sync All Leads
Option 2: Sync Qualified Leads Only
Option 3: Manual Sync Only
Field Mapping
Map LeadMachine fields to MailChimp fields:
Standard mappings:
Custom fields:
To map custom fields:
Manual Sync
Sync individual leads manually:
Single Lead
Lead is added to configured MailChimp list with all mapped fields.
Bulk Sync
Sync multiple leads at once:
Processing:
Automatic Sync
Enable Auto-Sync
How it works:
Sync Frequency
Control how often leads update:
Options:
Recommendation: Real-time for most use cases.
Segmentation & Tags
MailChimp Tags
Automatically tag leads in MailChimp:
Example rules:
Use tags for:
Audience Segments
Create MailChimp segments based on LeadMachine data:
In MailChimp:
Example segments:
Viewing Sync Status
In LeadMachine
On lead detail page:
Click icon to see:
Sync Logs
View complete sync history:
Filter logs by:
Unsubscribes & Compliance
Handling Unsubscribes
When someone unsubscribes in MailChimp:
In LeadMachine:
GDPR Compliance
The integration:
To delete data:
Consent Tracking
Track email consent in LeadMachine:
Best practice: Get explicit opt-in before syncing to MailChimp.
Troubleshooting
Connection Issues
Problem: Can't connect MailChimp
Solutions:
Leads Not Syncing
Problem: Auto-sync enabled but leads not appearing in MailChimp
Check:
Common causes:
Sync Failing
Problem: Sync fails with error
Common errors:
"Invalid email address"
"Email already exists"
"List not found"
"API key invalid"
Duplicate Contacts
Problem: Same lead appears multiple times in MailChimp
Cause: Lead synced before email was cleaned/standardized
Fix:
Advanced Features
Webhook Integration
Get notified of MailChimp events:
Syncs back to LeadMachine:
Campaign Tracking
Track MailChimp campaign engagement:
Coming soon:
Custom Automation
Trigger MailChimp automations from LeadMachine:
Example:
Best Practices
Clean Data First
Before enabling sync:
Start Small
Initial setup:
Regular Audits
Monthly:
Quarterly:
Segmentation Strategy
Don't just dump all leads into one list:
Pricing & Limits
LeadMachine Limits
MailChimp integration included in all plans:
MailChimp Limits
Check your MailChimp plan limits:
If you exceed: Upgrade MailChimp plan or clean old contacts.
Disconnecting MailChimp
How to Disconnect
What happens:
Contacts remain in MailChimp - manually delete if needed.
Getting Help
Email: [email protected]
Include:
Last Updated: October 2025