MailChimp API GDPR Fields
Asked Answered
P

9

18

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?

Parts answered 1/5, 2018 at 10:28 Comment(2)
Did you find any workaround?Mathematical
Sadly not, as per @GSTAR answer, we just have to wait, or switch to the embedded form instead.Parts
B
11

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
    ]
}
Burrows answered 23/8, 2018 at 15:15 Comment(4)
Where do you find the permission ID?Dictatorial
@pthurmond by doing a "dummy" subscriber PUT first (in my code I delete the dummy subscriber later on). The creation of a new subscriber will return the whole permissions hash with all the options set to false, you can use this method to store/cache the values. Of course if an admin changes the options on the MailChimp list, these values will become stale.Burrows
Thanks, actually I was able to do a GET against the list ID and I see the permission IDs. GET us18.api.mailchimp.com/3.0/lists/[ID]/membersDictatorial
@pthurmond You are right, but only if you have at least one subscriber on the list.Reel
O
9

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.

Oddfellow answered 1/5, 2018 at 12:6 Comment(4)
They better get with it. They are leaving developers who built products around their API hanging out to dry like its our fault. Its us and our users who are gonna suffer, not Mailchimp who has plenty of resources to have had this solved long ago.Breadroot
I can confirm. I was just told the same thing by MC support. They have it setup as a macro...Phelgen
I asked on Twitter and were told something similar. When I asked if it will be available before GDPR deadline, the response I got indicated this isn't in their immediate plan.Eleni
Any status here?Meagan
N
9

Looks like MailChimp recently added support for their GPDR fields (marketing permissions) using their API. So now you should be able to use your existing form to capture consent.

Are GDPR tools available in the API?

Yes. We've added marketing_permissions as a field with a boolean value, so you can enable GDPR fields and sync contact marketing permissions using the API. To learn more about managing lists with MailChimp API, check out our API documentation.

To comply with requests to fully delete data, you can also permanently delete contacts using the API. After a contact is permanently deleted, they cannot be re-imported.

Source: https://mailchimp.com/help/gdpr-faq/#API

Note that you might want to checkout their docs on proving consent since you will not be using their form.

Naraka answered 21/8, 2018 at 22:37 Comment(0)
B
1

I was having the same issue using the embedded forms from Mailchimp, but found this as a possible workaround, which we have just implemented. So far, I believe this will work for us!

https://getpublii.com/blog/newsletter-opt-in-gdpr-compliance.html

Brazen answered 23/5, 2018 at 12:59 Comment(0)
C
0

One of the answers above says "we just have to wait, or switch to the embedded form instead". However, I navigated to this page because I was having a similar problem with the embedded form - I can't see a way of adding the GDPR fields to it. If anyone has a solution to that please let me know. However, if not, I'm assuming I need to wait for the same "fix" as you guys.

On the other hand, the Pop-up sign-up form does have the GDPR fields enabled. Unfortunately that is not suitable for my purpose.

Catha answered 7/5, 2018 at 20:13 Comment(2)
Same problem :/Macri
For embedded forms you have to go to settings of the list and check GDPR. For us this worked, but we really want to do it via APIMeagan
M
0

I tried to find the best way to skip the API.

And the best way i found is To use a HTML page where you can put your trackers (analytics, pixel) and what you want. And include a Subscriber pop-up compatible with the GDPR fields.

Macri answered 16/5, 2018 at 22:38 Comment(0)
J
0

While waiting for the API to include this possibility.. What I currently do is adding 2 fields to my list - "consent" and "consent date". "consent" stores the exact text used in my consent checkbox (same as mailchimp) "consent date" stores the date the consent was given. This is important since I'm updating subscribers info each time they fill a form and I don't want to lose the original consent date.

Once a visitor has given his consent I'm saving a cookie in order to hide the consent fields next time a form is served to him.

Jinnah answered 26/6, 2018 at 11:38 Comment(0)
E
0

Still no API for the field as of August 2018,it's very odd. We don't want to bypass it as having the consent is required.

I've seen some Mailchimp apps (such as Optin Cat for Wordpress) get around this by creating their own GDPR field/checkbox but obviously doesn't sync up with Mailchimp.

Expectorate answered 20/8, 2018 at 11:47 Comment(0)
P
0

In the meantime the Privacy Shield has fallen, which makes the storage of European data in MailChimp illegal, or at least questionable. You might want to reconsider your choices. Rocket Genius (MailChimp) is an explicit partner of the Privacy Shield.

See: https://www.cookiebot.com/en/schrems-ii-privacy-shield/

Phenacite answered 28/8, 2020 at 23:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.