Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Slove,

    What did you have in mind, specifically?

    Thread Starter slove05

    (@slove05)

    A required unchecked box with a link to privacy policy / cookies / notification we are sending information to Mail Chimp. It seems your forms we are researching as an option have GDRP built in. You write a great article for MailChimp for WordPress on how this needs to happen but this add-on plugin does not facilitate that unless I’m missing something.

    Plugin Contributor Lap

    (@lapzor)

    I guess you could try something like this:

    add_action( 'mctb_before_submit_button', function() {
    	echo '<label><input type="checkbox" name="AGREE" value="1" required> I agree to have my personal information transfered to MailChimp (<a href="#">more information</a>)</label>';
    });

    https://kb.mc4wp.com/adding-code-to-to-your-website/

    Not sure if it will fit properly in the topbar, maybe make the text something shorter.

    Hope that helps. If you have any questions, please let us know!

    Hi Lap,
    good tip. However I think a piece of code is missing. In this way I only see the checkbox in the top bar but the information is not sent to MailChimp after submission.

    For example I have this code in my functions.php

    add_action( 'mctb_before_submit_button', function() {
    	echo '</br><label><input name="INTERESTS[5d4bfbd773][]" type="checkbox" value="5404abb47e"> <span>Acconsento al trattamento dei dati personali come specificato nella Privacy Policy</span></label>';
    	echo '</br><label><input name="INTERESTS[5d4bfbd773][]" type="checkbox" value="5f520cd2c9"> <span>Sì, inviami email con aggiornamenti, notizie, eventi e promozioni</span></label></br>';
    });

    What should I add to link the data to MailChimp?

    Thanks

    Plugin Contributor Lap

    (@lapzor)

    it won’t send the checkbox to mailchimp but it won’t allow you to submit the form if the box is not checked.

    If I understand it correctly, I think it needs to request consent and transfer the confirmation to mailchimp. You can then build segments of the MP list where consent=yes for mailing. Mailchimp have done this with pop-up forms that use the modal design format.

    Why wont you send the checkbox to MC?

    Plugin Contributor Lap

    (@lapzor)

    You can send the checkbox to MailChimp, by using Interest groups instead.

    I’m not a lawyer and I can’t give any legal advice on how to implement GDPR, the interpretations of this new law seems to vary wildly even from law firm to law firm.

    For an example snippet see:
    https://kb.mc4wp.com/add-name-field-to-mailchimp-top-bar/
    and
    https://github.com/ibericode/mc4wp-snippets/blob/master/add-ons/top-bar/add-to-interest-groups.php

    It needs some tweaking to combine the two and I currently don’t have time for that.
    One way of doing it is checking the Post for your own checkbox value and then set the interest group based on that.

    Quick UNTESTED example of one of many ways to implement this:

    add_filter( 'mctb_data', function($data) {
    
    //If the checkbox with name AGREE is checked
    if($_POST['AGREE'] == '1') {
    
    	// make sure we have an array to work with
    	if( ! isset( $data['INTERESTS'] ) ) {
    		$data['INTERESTS'] = array();
    	}
    	// replace "interest-id" with the actual ID of your interest.
    	$data['INTERESTS'][] = "interest-id";
    
    }
    	return $data;
    });

    Hope that helps. If you have any questions, please let us know!

    Plugin Contributor Lap

    (@lapzor)

    I’ve created a feature request for this here: https://github.com/ibericode/mailchimp-top-bar/issues/79

    Hey guys, thanks for making such an awesome and simple plugin!

    Is there any update on the GDPR compliance?

    I can’t get the above code to work, no matter what I do the checkbox just won’t show on the bar (‘name box’ and ‘add to interest groups’ works fine), here’s my site: https://saasconversions.com

    This useful topbar does need to be updated to allow a required checkbox otherwise it’s no longer useful/legal to use on any website within the EU or any website collecting data from EU citizens.
    Lap’s checkbox code works for me when added directly to the live theme functions.php.
    The code didn’t work for me using Functionality or other similar plugins which add code to functions.php.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Will this become GDPR compliant?’ is closed to new replies.