# Use Mailchimp to collect customer emails

Mailchimp is a great way to stay in touch with your customers (and it's free!).

Connecting it to your Locksmith account lets you grow your mailing list subscription base, by making sure your visitors' email addresses are on record.

{% hint style="info" %}
Mailchimp has their own policies regarding double opt in, and it is typically enabled by default. This setting is adjusted in your Mailchimp dashboard - it is not a setting that is controlled by Locksmith.
{% endhint %}

To try it out, use these steps:

1. If you haven't yet, create your free Mailchimp account at [mailchimp.com](http://mailchimp.com/), and create at least one mailing list - this list is where Locksmith will load in your visitors' email addresses.
2. [Create a lock](/basics/creating-locks.md)
3. On the lock page, under "Keys" choose the "Mailchimp" key condition from the list:

![](/files/y7HewVppqP6c6xVjwIzD)

4\. In that key, click on "Connect Mailchimp" and sign into your mailchimp account. You'll be prompted to close that window when done.

5\. Choose your Mailchimp list, click off the pop-up, and then click Save.

Visitors who try to access your locked content will encounter a prompt to subscribe to your mailing list, and the email addresses they submit will be loaded into your Mailchimp account.

### Tips

* For a brand-new mailing list, it can take a few minutes for new email addresses to appear in your Mailchimp account.
* Mailchimp will not show subscribers in your admin panel if you have any required fields besides "Email Address". Check on this by opening your list in Mailchimp, then heading to "Settings" -> "List fields and \*|MERGE|\* tags".
* To make it easy to see your subscribers that arrive through Locksmith, create a "Locksmith" segment for your list. Do this by opening your list in Mailchimp, then heading to "Manage subscribers" -> "Segments". Click "Create Segment", and set up your segment like so:

![](https://d33v4339jhl8k0.cloudfront.net/docs/assets/5ddd799f2c7d3a7e9ae472fc/images/5e27859404286364bc9436ea/5e2785946ae6a.png)

Hit the "Preview" button, then on the next screen click "Save as segment".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.locksmith.guide/tutorials/more/mailchimp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
