Support » Plugin: GDPR Cookie Compliance » Opt In

  • Resolved monowebdesign

    (@monowebdesign)


    Hi
    Is it possible to set the default values as ‘Accept’ and give the user the chance to opt out ? rather than ‘decline’ and ask the user to opt in?
    Many thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Second this.

    Yes, it would be the best solution (it’s a possibility contempled in the gdpr)

    Even the existing UK data protection act required a positive action to opt-in rather than a default. The same is even more true for gdpr!

    You have to get their opt-in and it cannot restrict their access to offered benefits if they decline. You can no longer just block access until it is checked

    Yes, patbell101 that is correct but if you have GA that does not track IP or it is anonymized then it is OK to implement such code without consent and give the opt-out possibility.

    This would be amazing! if will be implemented, this plugin will be my choice.

    Hopefully the silence from them means they’re building this into the next update…

    Plugin Author Gaspar Nemes

    (@gasparnemes)

    Hi there,

    Thanks for your comments and suggestions.
    I’ve implemented a hook in the plugin, and you can add the following code snippet to your theme’s functions.php

    To enable the scroll, add the “scrollEnable” option with offset value (in pixels) where the plugin should setup the default cookies for you like : scrollEnable: 200

    Below the snippets, the first it sets the default cookies (user can override) and the second script enable the default cookies on scroll:

    function moove_gdpr_script_extension() {
       	wp_add_inline_script(
    	   	"moove_gdpr_frontend",
    	   	"jQuery(document).ready(function(){
    			jQuery(this).moove_gdpr_save_cookie({
    				thirdParty: true,
    				advanced: false
    			});
    		});",
    		"after"
    	);
    }
    add_action( 'wp_enqueue_scripts', 'moove_gdpr_script_extension', 999 );
    function moove_gdpr_script_extension() {
       	wp_add_inline_script(
    	   	"moove_gdpr_frontend",
    	   	"jQuery(document).ready(function(){
    			jQuery(this).moove_gdpr_save_cookie({
    				thirdParty: true,
    				advanced: true,
    				scrollEnable: 200
    			});
    		});",
    		"after"
    	);
    }
    add_action( 'wp_enqueue_scripts', 'moove_gdpr_script_extension', 999 );

    I hope this helps.

    Fabulous !
    Thanks Gaspar, this added functionality ( and great service) puts this plugin head and shoulders above the rest of them out there.
    Thanks for taking the time to listen and act.
    Well done !
    Dave

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Opt In’ is closed to new replies.