Given that emailmarketing is still high on the list of ways folks prefer to receive communications from many retailers, and that large investments have already been made into Mailchimp, there is one very simple workaround to one of Mailchimp’s main caveats.
In Mailchimp, you are limited to one form per list. Need another form? That’s another list. With the risk of duplicate subscribers. Which you could get charged for. And getting charged for duplicate subscribers isn’t only problematic in and of itself it’s also cumbersome to manage multiple lists!

Fortunately, there’s a workaround. While a great way to deduplicate historical data in Mailchimp is to export the data to .csv and then import toTreasure Data, you can also implement a running webhook that adds records to aTreasure Data table every time your form is filled in and submitted.

We bring raw access to Mailchimp data. You can now do email analytics with SQL. This includes drawing insights bycombining Mailchimp data with data from all the other data sources currently supported onTreasure Data.
Implementing the WebhookFortunately, Mailchimp has made setting up webhooks a breeze. Here are a few useful bits of information to keep in mind:
Your webhook URL should look like this: You can send us any updates you like, but we suggest “subscribes”, “unsubscribes”, “profile updates”, “email changed” and “by subscriber”. This should give you the minimum data set you need to test with duplicate records. This blog assumes your Mailchimp form and webhook will return subscriber names and email addresses. For more information, consult Mailchimp webhook documentation .This is what setting it up looks like in action:

Use Case: Deduping the data, Treasure-Data Style
As you are filling (and sending) the form associated with your list, you should now be copying data now into your “mailchimp” database onTreasure Data.
Depending on the fields you’re importing via webhooks (each form filled and submitted becomes a new record in aTreasure Data table), you may be able to adapt the following queries to gain different insights and aid deduplication efforts.
Identifying duplicate emails: Get total number of emails and number of distinct emails: Next up…If you want to simplify list counting and item de-duping from Mailchimp and want to get started today, check out ourproduct demo.
Are you already usingTreasure Data and Mailchimp together?Let us know how you are combining the two products. We’d love to hear your comments and suggestions.