MailChimp Integration
Automatically capture email addresses from captive portal WiFi guests and sync them to your MailChimp lists for GDPR-compliant email marketing campaigns.
Overview
The MailChimp integration enables:
- Automatic subscriber collection from captive portal
- List segmentation based on location or access type
- Marketing campaigns to WiFi guests
- GDPR-compliant opt-in collection
Prerequisites
- IronWifi account with captive portal
- MailChimp account (mailchimp.com)
- MailChimp API key
MailChimp Setup
Get API Key
- Log in to MailChimp
- Click your profile > Account & billing
- Go to Extras > API keys
- Click Create A Key
- Copy the API key
Create Audience (List)
- Go to Audience > All contacts
- Click Create Audience if needed
- Note the Audience ID (found in Settings > Audience name and defaults)
Configure Merge Fields (Optional)
Add custom fields to capture additional data:
- Go to Audience > Settings > Audience fields and |MERGE| tags
- Add fields like:
- Location
- Visit Date
- Access Type
IronWifi Configuration
Step 1: Add MailChimp Integration
- Log in to IronWifi Console
- Navigate to Networks > Captive Portals
- Select your captive portal
- Go to Authentication Providers or Integrations
- Click Add Integration > MailChimp
Step 2: Configure API Connection
Enter MailChimp credentials:
- API Key: Your MailChimp API key
- Audience ID: Target list ID
Step 3: Field Mapping
Map IronWifi fields to MailChimp merge fields:
| IronWifi Field | MailChimp Field |
|---|---|
| First Name | FNAME |
| Last Name | LNAME |
| Phone | PHONE |
| Location | LOCATION (custom) |
Step 4: Subscription Settings
Configure how users are added:
- Status: Subscribed, Pending (double opt-in), or Transactional
- Tags: Auto-apply tags (e.g., "WiFi Guest", location name)
- Opt-in Required: Enable for GDPR compliance
Captive Portal Setup
Email Collection Form
Update your splash page to collect email:
<form method="POST" action="{{auth_url}}">
<input type="email" name="email" placeholder="Email address" required>
<label>
<input type="checkbox" name="marketing_consent" value="yes">
Subscribe to our newsletter
</label>
<button type="submit">Connect to WiFi</button>
</form>
Consent Collection
For GDPR compliance, explicitly collect consent:
<div class="consent-section">
<h3>Stay Connected</h3>
<p>Get updates on promotions and events</p>
<label class="checkbox">
<input type="checkbox" name="subscribe" id="subscribe">
<span>Yes, I'd like to receive marketing emails</span>
</label>
<small>
By checking this box, you agree to receive marketing communications.
You can unsubscribe at any time.
</small>
</div>
Data Synchronization
What Gets Synced
When a user authenticates:
- Email address (required)
- Name (if collected)
- Custom fields (as mapped)
- Tags (as configured)
- Subscription status
Sync Triggers
Data syncs to MailChimp:
- On successful authentication
- If user opts in to marketing
- Based on configured rules
Duplicate Handling
MailChimp handles duplicates:
- Existing subscribers are updated
- New emails are added
- Unsubscribed users are not re-subscribed
Segmentation
Automatic Tags
Configure automatic tagging:
- Location-based: Tag by WiFi network location
- Time-based: Tag by visit date/time
- Access type: Tag by authentication method
Use in Campaigns
Create targeted campaigns:
- In MailChimp, go to Audience > Segments
- Create segment based on tags
- Target WiFi guests with relevant content
Analytics
Track Performance
In MailChimp:
- Audience Growth: See subscribers from WiFi
- Campaign Stats: Track engagement
- Revenue Attribution: Connect to e-commerce
IronWifi Metrics
Monitor:
- Emails collected per day
- Opt-in rates
- Sync success/failure rates
Troubleshooting
Subscribers Not Appearing
- Verify API key is valid
- Check Audience ID is correct
- Confirm email field is mapped
- Review IronWifi logs for errors
Sync Errors
- Check MailChimp API status
- Verify field mapping
- Check for invalid email formats
- Review error messages in logs
Double Opt-in Not Working
- Verify "Pending" status is configured
- Check MailChimp automation is enabled
- Test with a real email address
GDPR Compliance
Best Practices
- Explicit consent: Use checkbox for opt-in
- Clear language: Explain what users subscribe to
- Easy unsubscribe: MailChimp handles this automatically
- Data access: Provide way to request data
- Retention policy: Set data retention periods
Required Disclosures
Include in your splash page:
- What data is collected
- How it will be used
- Link to privacy policy
- Unsubscribe information