Gravity Forms Mailchimp Add-on - User Guide

Gravity Forms Mailchimp Add-on - User Guide

For pricing and how to add to your website see at the bottom of the page.

Setting Up the Mailchimp Add-On

Where to Find These Settings

The Mailchimp settings page can be found within your WordPress admin dashboard. From within the left side navigation menu, follow the path: Forms → Settings → Mailchimp.

Mailchimp settings

Connect your Mailchimp Account

To connect your site to your Mailchimp account simply follow the steps below.

  1. Click the Connect to Mailchimp button.
  2. Log in to your Mailchimp account within the MailChimp window provided.
  3. Click the Allow button to allow the Gravity Forms app to access your Mailchimp account.
  4. You should now be redirected back to your Settings page showing Connected to Mailchimp as: username. You will also see a Disconnect from Mailchimp button now, in case you need to undo this process.

Obtaining Your Mailchimp API Key

To use the Mailchimp Add-On for Gravity Forms, you will first need to obtain a Mailchimp API key. In this article, we will show you how to get your Mailchimp API key.

  1. Log into youMailchimp account.
  2. Click on your name (or profile image) at the bottom left of the screen, then click on Account.
  3. Click on Extras, then API keys.
  4. If you have never used Mailchimp’s API before, you will need to generate an API key. To do so, scroll down the page to the section labeled Your API Keys and click on the Create A Key button.
  5. The page will reload and the Your API keys section will now be populated with your new key.

Mailchimp API Keys page

Mailchimp Feed Setting Reference

Feed Settings

Screenshot of Mailchimp Feed Settings for Reference
SettingDescription
NameEnter a feed name to uniquely identify this setup.
Mailchimp AudienceSelect the Mailchimp audience you would like to add your contacts to.
Map FieldMap each of the Mailchimp fields to the desired form field that will contain that information. In Mailchimp these are the fields that display in the user profile information. You can add new fields to the profile under Audience -> Manage Audience -> Settings -> Audience fields and Merge tags. See note 1.
Screenshot Mailchimp Feed Settings for Reference Part 2
SettingDescription
GroupsUsed to add users to your Mailchimp groups. 
Marketing PermissionAllows you to set a condition to opt users into different marketing types. If an existing user is found and already opted-in for a Marketing Permission, they will stay opted-in. See note 2.
OptionsIf you select Double Opt-In, then all audience subscribers will be sent a confirmation email via Mailchimp’s service before they are finalised as included in the audience. The Mark subscriber as VIP checkbox sets the VIP flag.
Tags Using text and merge tags, you can assign tags to the entered subscriber. Multiple tags can be set as a comma separated list. This new integration with Mailchimp’s tags was launched with Mailchimp Add-On v4.4. 
NoteAssign a note to the entered subscriber. This is sent to Mailchimp so the note is added to the member details. This is only visible to the Mailchimp account owner. Supports merge tags.
Conditional LogicIf unchecked, every successful form submission will be sent to Mailchimp. If you wish to set specific conditions for sending form data to Mailchimp, then check the “Enable Condition” box and fill out your required criteria.

Note

  1. Map each of the Mailchimp fields to the desired form field that will contain that information. In Mailchimp these are the fields that display in the user profile information. You can add new fields to the profile under Audience → Manage Audience → Settings → Audience fields and Merge tags.
  2. Requires GDPR fields to be enabled for the Mailchimp audience. This is done under Audience → Manage Audience → Settings → Audience name and campaign defaults. Also the audience is required to have at least one member; if the audience does not have any members, add a temporary user (you can delete it after).

Limitations

Once a user has unsubscribed from Mailchimp, they cannot be resubscribed to an Audience through the Mailchimp Add-On and the Mailchimp API. They would only be able to resubscribe using Mailchimp’s subscribe forms. This is a limitation of the Mailchimp API.

Creating a Feed for the Mailchimp Add-On

feed is the way you define how data is passed from your form submission to an external service. This article will step you through the process of setting up a simple feed. This article assumes that you have already setup the Mailchimp Add-on.

For details on all of the Mailchimp feed settings, refer to the Mailchimp feed settings reference guide.

Scenario

Our example here will focus capturing sign-ups for our team sports newsletter, and registering them automatically to an existing Mailchimp Audience.

Step 1: Create a Form

Firstly, let’s create the form we will be using as the basis for our Mailchimp Feed.

  1. From your WordPress Dashboard, hover over the Gravity Forms icon, and select New Form in the dropdown that appears.
  2. Let’s call this form “Mailchimp Form (Team Sports)”.
  3. Add the following fields to the form: Email, Address, Name, and Phone. Later, we will map these fields in our feed so they can be imported into Mailchimp.
  4. Click Update to save your form.

If you are following along, your form should look basically something like this.

Screen Shot of Form for Mailchimp Feed
Our sample team sports newsletter form.

Step 2: Create a Feed

To create a feed, hover over Settings at the top of the form and click Mailchimp in the drop-down menu. On the Mailchimp Feeds page that appears, click Add New to create a feed. The steps below show how to configure your feed.

Creating a Mail Chimp Feed 1
  1. Since we are creating a feed about team sports let’s Name our feed Team Sports Feed.
  2. In the Mailchimp Audience we’ll choose Team Sports. The Audience must be created in your Mailchimp account first for it to show up here. 
  3. Next, we’ll map each MailChimp field to the corresponding form field you want to use to populate that data. For example, we will match Email Address field to the Email field we created on our form earlier.

Screenshot of Mailchimp Feed Settings - Part 2
  1. You can then select a Group for the user to be added to. We’ll select Soccer and Football and Assign to group: Always. The Group must be created in your Mailchimp account first for it to show up here. 
  2. We’ll leave the Marketing Permissions blank.
  3. We won’t enable Double Opt-In or Mark subscriber as VIP on this form.
  4. For Tags we will be adding Sports, Team Sports, and newsletter.
  5. For the Note, we will add “This user was added through our Team Sports feed.” Notes can only be seen by the Mailchimp account owner.
  6. We don’t need Conditional Logic on this form. Conditional Logic allows you to add more stringent conditions as to when the feed runs. 
  7. Click the Save Settings button to save your options.

That’s it! Whenever a user submits this form a new contact will be created in the Audience you specified on the feed. Of course, test it first!

Adding Mailchimp Subscriptions to Groups

When using the Mailchimp Add-On, you can add users to groups to better target subscribers. For example, if you want to send an email to all users who have shown interest in baseball, you can group users by interest so that the content can be specifically tailored to them. This differs from Audiences because subscribers can be part of multiple groups without signing up for multiple Audiences.
Here’s how to easily add users to different groups based on their form submissions:
  1. Ensure that the group exists within Mailchimp. If not, you’ll need to log into your Mailchimp account and create the group.
  2. When creating a feed for the Mailchimp Add-On, select the audience that contains your group.
  3. If groups exist within the audience, they will automatically appear with checkboxes next to each of them. Upon enabling a group, you will be able to select if all subscribers on the form will be added to the audience or just ones that fall under a specific condition. 
  4. Save your feed.
MailChimp Groups Settings

Conditional Audience Subscriptions in Mailchimp

In some scenarios, you may want different users subscribed to different Mailchimp Audiences based on their form selections. In this article, we will show you how to configure different subscriptions based on the form options chosen.

Note: This article assumes that you have already set up your audiences and have a basic familiarity with the Mailchimp Add-On.

  1. Create a Radio Button field and add your audiences as choices.
Screen Shot of Mailchimp Form Setup
  1. For each of your audiences, you will need to create a new feed. Within the form editor, hover over Settings and click on Mailchimp.
  2. Click Add New and begin setting up your feed, selecting one of your audiences. 
  3. Within your feed settings, click the checkbox labelled Enable Condition to enable Conditional Logic. Using conditional logic will allow you to only use this feed when a particular parameter exists. In this case, it is the setting you want to use for this audience.
Screenshot of Mailchimp Feed Conditional Logic
  1. Inside the conditional logic settings, select the field that you want to use for the audience selection, as well as the selection that a user will need to select for the audience to be used. In the example below, if the user selects Team Sports from the Audience field, that user will be added to Team Sports Audience in Mailchimp.
  2. Click Save Settings to save your feed configuration.
  3. Now this feed will only process if the conditional logic settings are met. You can create additional feeds for your other audiences like Video Games and Hunting using these same instructions.

Troubleshooting Mailchimp error “Unable to add/update subscriber”

Any issue that occurs while attempting to add or update a Mailchimp subscriber will often generate the same generic message

Unable to add/update subscriber: Invalid Resource

The error message is also saved as a note on the entry.

How To Capture More Info

Recreate the error with Gravity Forms logging enabled. The error will be saved to the Mailchimp error log, as well as a hopefully more detailed error message from the Mailchimp service.

For some Mailchimp errors, additional information is sent if a specific field has thrown an error. These errors are also saved to the Mailchimp Add-On log.

Checking Error Codes

You can cross-check any error code captured against Mailchimp’s Error Glossary

If the logged information does not help figure out why the error occurred, a developer could add specific debug statements into the site code to try and track the error.

Example

This screenshot shows an example snippet from the error log.

Note how the log identifies what exactly was sent, and what the returned error was. In this case, it is clarifying that when using the Mailchimp Address field, Mailchimp expects that you pass a complete address, including street address and zip code (If you only want to collect the city/state, create a text audience field and merge tag in Mailchimp to map to your Gravity Forms city/state field).

Remove an Application from your Mailchimp Account

Our Mailchimp Add-On now uses an upgraded OAuth authentication method, which upon connection and validation, creates an authorised app within your Mailchimp account.

This article shows how to revoke that access, by describing how to remove the app from your authorised list.

Steps

To remove an application from your list of authorised applications, follow these steps.

  1. Log in tmailchimp.com with a web browser.
  2. Click your profile icon and choose Account.
  3. Click the Extras drop-down menu and choose API keys.
  4. In the Authorised applications section, click the “X” next to the application you need to remove.

Overview and pricing of this feature. Click here

Troubleshooting this feature? Click here


    • Related Articles

    • Gravity Forms Mailchimp Add-on - Features

      View Guide Links at the bottom of the page Installation 1 CRU CREDIT Setup (optional) 1 CRU CREDIT Ease Of Use Easy Want this feature? Request Here Purchase CREDITS  Here The Gravity Forms Mailchimp Add-On gives you an easy way to integrate all of ...
    • Gravity Forms Mailchimp Add-on - Troubleshoot Guide

      Can't see any Troubleshooting Guides on this page? This means we don't have any, please raise a ticket here if you have an issue and help us build out our guides! Overview and pricing of this feature. Click here Looking for the user guide for this ...
    • Gravity Forms - Troubleshoot Guide

      Form submissions not syncing to Mailchimp This troubleshooting guide is for standard forms such as Contact Us or any other form that captures data that syncs to Mailchimp.  Requires Mailchimp/Form Add-On Integration If you are finding that new form ...
    • Gravity Forms User Registration - User Guide

      For pricing and how to add to your website see at the bottom of the page. Create Your Form The first step in integrating the User Registration Add-On is going to be creating the form you would like to use. This can include existing forms. The only ...
    • Gravity Forms User Registration - Feature

      View Guide Links at the bottom of the page Installation 1 CRU CREDIT Setup (optional) 1 CRU CREDIT Ease Of Use Easy Want this feature? Request Here Purchase CREDITS  Here Seamless Integration With the Gravity Forms User Registration Add-On you can ...