Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MailChimp API GDPR Fields

I have a newsletter form with name & email fields, which upon submitting gets sent to /api.mailchimp.com/3.0/lists/####/members using the MailChimp API.

From what I understand, the new GDPR fields that MailChimp have created don't seem to have an associated field tag meaning that they can't be assigned values using the API.

Is there a way to capture the user's consent with my existing form, and match these up to the MailChimp GDPR fields, or do I need to replace my form with a MailChimp embedded form instead?

like image 725
Alexander Holsgrove Avatar asked May 01 '18 10:05

Alexander Holsgrove


People also ask

What are mailchimp GDPR fields?

GDPR fields. GDPR form fields include checkboxes that your contacts will use to opt in to your marketing, and space for you to add necessary information. Mailchimp provides suggested language that you can edit to fit your marketing plan. Make sure each section accurately describes your marketing activities.

What are GDPR fields?

GDPR fields are a way of allowing you to collect, store and track consent from your contacts while recording the name of the field and consent text. Using these fields on your forms will help to make your organisation compliant in relation to the General Data Protection Regulation legislation.

Does Mailchimp store data?

Mailchimp stores your forms and contact data in case you need it in the future. If someone signed up to your audience through a Mailchimp hosted form, you can export that audience and view information related to the signup. For additional evidence of consent, you may choose to turn on double opt-in.


2 Answers

meaning that they can't be assigned values using the API.

It's actually possible to set the GDPR options values via API for a list member, the only problem is to know the different marketing_permission_ids in advance. One trick though can be to insert the member (or a dummy member) without specifying them, extract such ids from the response payload, and then do a second update call using such ids:

PUT https://usXX.api.mailchimp.com/3.0/lists/{{listId}}/members/{{subscriberHash}}

{
    "marketing_permissions": [
        {"marketing_permission_id": "12a69fa097", "enabled": true},  // 'Email' consent
        {"marketing_permission_id": "d0dc5969af", "enabled": false}  // 'Direct Mail' consent
    ]
}
like image 80
Francesco Salvi Avatar answered Oct 24 '22 13:10

Francesco Salvi


I have the same problem, so I asked MailChimp support, here is the response I got:

Currently API support is not available for GDPR fields. We hope to have this functionality available soon, although I’m not able to provide a time frame. That being said, I’m happy to pass this feedback along to our developers.

like image 32
MAX POWER Avatar answered Oct 24 '22 13:10

MAX POWER