• Accepted form shortcode arguments

    The Mailchimp for WordPress plugin comes with a shortcode that allows you to place a sign-up form just about anywhere. You can put a shortcode in a Post, Page or Widget to display the form to website visitors in that position. While this shortcode works without any arguments, you can specify a few arguments to […]

  • Block spam sign-ups

    Mailchimp for WordPress includes several checks to help block spam sign-ups. Forms include a hidden honeypot field and a timestamp check. Submissions from obvious bots are rejected. Some bots still get through. They may target your site directly, or they may use browser automation that looks more like a real visitor. If your Mailchimp audience […]

  • Change position of form response

    You can change the position of success and error messages using the {response} tag or by using the mc4wp_form_message_position filter. Using {response} To set the position of the messages using the {response} tag, just place it anywhere in your form mark-up. Using the filter Valid options for the filter are before or after, which will […]

  • Conditional fields or elements

    Mailchimp for WordPress supports conditional fields or elements by using two special attributes: data-show-if and data-hide-if. The attribute value can be either just a field name or a field name followed by a colon and the expected field value. For example, let’s assume you have a field named FOO and you want to show some […]

  • Duplicating a sign-up form with its settings

    Sometimes you will want to copy over all the work you’ve done on a sign-up form and take all its settings with it. When using Mailchimp for WordPress, it is easy to duplicate your sign-up forms by taking the following steps. That’s all there is to it! You should now have a new form with […]

  • Track form events with Google Analytics

    The plugin makes it easy for you to interact with the various form events and run a piece of code, like tracking the event with Google Analytics. Say you want to send an event to Google Analytics every time someone used a form to subscribe? You can do that by adding the following snippet to […]

  • Email notifications for forms

    By default, you can use Mailchimp to send an email notification for every sign-up. However, there are some drawbacks to this method. We’re in luck though. You can use Mailchimp for WordPress Premium to send out an email notification for every successful form submission. After activating the Premium plugin, your “edit form” page will have […]

  • Google Tag Manager tracking

    You can use Javascript Events to track form interactions. Use the following code if you are using GTM. Check here for other analytic integrations. If you are using Google Tag Manager you need to create a Custom Event and Tag in your GTM control panel for it to work. In case of the code above […]

  • Make Interest Groupings a required field

    If you include an interest grouping in your sign-up form using checkboxes, you may want to enforce your visitors to select at least one interest. There are multiple ways to go about this. As a start, you can pre-select one of the choices. To do this, you can add a “checked” attribute to the input […]

  • JavaScript form events

    Mailchimp for WordPress triggers various JavaScript events whenever your visitors interact with a sign-up form on your site. These events can be used to run custom code, for example to track form sign-ups with Google Analytics. You can include this code directly in the form editor if you like. The mc4wp reference is only registered […]