Sitefinity / mailchimp-connector-sample

1 stars 0 forks source link

GDPR field #52

Open itineris-milos opened 1 year ago

itineris-milos commented 1 year ago

Hi Guys,

How we submit checkbox values through Mailchimp, do you have any sample code to modify existing connector? Currently it doesn't work and it will throw an error.

Thanks, Milos

bkirpiev commented 1 year ago

Hi Milos,

We will investigate this and I'll write you as soon as posible.

Regards, Boris

bkirpiev commented 1 year ago

Hi, Milos

We have updated the Mailchimp connector sample to work with the latest Sitefinity official version 14.4.8000.

Regarding your case with the checkbox values and the GDPR field you want to add I can give the following guidance:

From what I checked in the MailChimp in the Audience fields and |MERGE| tags menu when you try to add a new field, there is no option to add a checkbox field. Due to this reason you cannot see the checkbox fields in Sitefinity when you try to map a Sitefinity form field to the Mailchimp form field. This is the current behaviour of Mailchimp.

I'm not sure what scenario you are trying to achive but if you want to have a GDPR field in your Sitefinity form. You can create a checkbox field in your Sitefinity form and then in the SendFormData method in the sample you can get the value of this field and based on it you can descide what to pass in the CreateMember method. I saw that you can pass a marketing_permissions in the api when creating a member. You can see more in the Api documentation

Also before sending the data to Mailchimp and if you have enabled Tracking consent in Sitefinity in the SendFormData method you can make a check if the user has give you a permission to be tracked with this method TrackingConsentManager.CanTrackCurrentUser();

Best regards, Boris