File DA-033 View as Markdown
Mailchimp
With Mailchimp sign-up forms on your site, each new subscriber carries a DACLASS merge field set to human, bot or agent. You can then leave bots out of your campaigns.
Set it up
- In Mailchimp, open Audience, open the audience's … menu and choose Audience fields and merge tags.
- Choose Create a new field, pick Text, name it
DACLASSand set the merge tag toDACLASS. Leave Required unticked. Save. - Keep it off your visible form. On the Mailchimp-hosted form, open the form builder, click the field and set Field visibility to Hidden. In embedded form code, delete any
DACLASSinput Mailchimp added; the script adds its own.
The script finds every form that posts to list-manage.com and adds <input type="hidden" name="DACLASS"> with the visitor's class, including forms added to the page later. It needs ads consent, because Mailchimp feeds marketing lists (see consent).
Leave bots out of campaigns
Create a segment with the condition DACLASS is bot. When you send an email, pick it under Do not send to. Contacts who signed up before you set this up have no DACLASS, so excluding bots keeps them, while a segment of DACLASS is human would leave them out.
Stop bots at the form
doubleagent.push('init', { block: { forms: true } });
With this on, the submit button of a Mailchimp form is disabled, and the submit is stopped, when the class is bot with a bot probability of 0.8 or more. A wrong verdict would stop a real person too, so test it on your own form first.
Check it worked
Subscribe with a test email from your site. In Mailchimp, open the contact: DACLASS should show human.
Next: Klaviyo or How integrations work.