benjaminhoffman / gatsby-plugin-mailchimp

A simple, lightweight Gatsby plugin to subscribe new email addresses to your Mailchimp list
https://www.npmjs.com/package/gatsby-plugin-mailchimp
MIT License
138 stars 31 forks source link

GDPR Fields #80

Open Hendrejvr opened 4 years ago

Hendrejvr commented 4 years ago

Hi

Firstly, thank you for the plugin.

How do you guys handle the GDPR fields? In the form builder it looks like this: `

    </fieldset>`

Am I just missing something? Because at the moment it doesn't seem to be working

I am currently hard coding it like so (where gdprResponse is currently just "Y"): addToMailchimp(email, { //FNAME: "", //LNAME: "", "gdpr[42537]": gdprResponse, })

benjaminhoffman commented 4 years ago

we aren't handling it. sorry! would love if you wanted to help solve it and open a PR!

Hendrejvr commented 4 years ago

Sure, I can do that. Let me check

Hendrejvr commented 4 years ago

81

I have fixed it locally for me, so you can take your time reviewing it