create_connected_site
Connect your domain to Mailchimp and obtain a tracking script to enable site analytics and pop-up forms.
Instructions
Connect a website to Mailchimp, generating a tracking script for that domain.
Use to enable site tracking and pop-up forms on a domain you control. After creation, install the returned script, then call verify_connected_site_script to confirm installation. Use list_connected_sites to check existing sites first.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: foreign_id: A unique identifier of your choosing for this site (e.g. 'my-store'). domain: The website domain to connect (e.g. 'www.example.com'). account: Optional account name (e.g. 'marketing') configured via MAILCHIMP_API_KEY_. Omit to use the default account. See list_accounts.
Returns: JSON with id, foreign_id, domain, site_script (object with url and fragment), status, created_at, updated_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| account | No | ||
| foreign_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |