Synchronizing custom user fields with MailChimp

MailChimp User Sync allows you to synchronize your WordPress users to one of your MailChimp lists.

By default, it only synchronizes the EMAIL, FNAME and LNAME MailChimp fields as these are the only default fields MailChimp adds to every new list you create.

If you have more MailChimp list fields then you will have to let the plugin know what user fields correspond to which MailChimp list fields. The Send Additional Fields setting on the settings page of MailChimp User Sync allows you to do this.

The following image shows how to send a user's website to a MailChimp field called URL.

Option to sync additional fields to your list

User field names

If you start typing in the input field then the plugin will try to autocomplete the user field name for you. Please note: the plugin can only use user meta, the default way for storing metadata in WordPress.

If the plugin you're using for adding user fields stores metadata in a different way then MailChimp User Sync does not support this.

Advanced fields

There is a filter hook available which allows you send additional data from MailChimp. This allows for greater flexibility as to where you user data is stored..

Here's an example specifying the "MERGETAG" field from a simple user property.

add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
    $data['MERGETAG'] = $user->field_name;
    return $data;
}, 10, 2 );

Please note that this is an advanced feature. If you've never worked with filter hooks before, we recommend hiring a developer to make the necessary changes for you.

Was this article helpful? ·