• Resolved lauratraveler

    (@lauratraveler)


    Hi,

    I actually started a thread a while ago and asked for a way to enable cookie acceptance when scrolling. You provided me with a code to insert in the functions.php. However, that code is not working. I wrote you on that thread to tell you, but the thread was marked as solved and I didn’t get any further replies.

    Could you please either include this as a feature in a future plugin update? The consent bar is so small at the bottom of the page, nobody is clicking the accept button and my traffic is down by 90%.

    Unfortunately, if this feature is not introduced soon, I’ll have to switch to a different plugin ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • +1 this feature would make the plugin better than the other we’ve been using (Cookie Notice).

    That works for me. Just need to force refresh now.

    Plugin Author Moove Agency

    (@mooveagency)

    Hi there,

    Thanks for your comments. You can enable the cookies on scroll by using one of the following code snippets:

    Version 1:

    function gdpr_js_extension() {
        ob_start();
        ?>
        <script>
        	jQuery(document).ready(function(){
        		if ( ! document.cookie.match(/^(.*;)?\s*moove_gdpr_popup\s*=\s*[^;]+(.*)?$/) ) {
    				jQuery(this).moove_gdpr_save_cookie({
    					thirdParty: true,
    					advanced: true,
    					scrollEnable: 200
    				});
        		}
        	});
        </script>
        <?php
        echo ob_get_clean();
    }
    add_action( 'wp_footer', 'gdpr_js_extension', 1000 );

    Version 2:

    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,
                    scrollEnable: 200
                });
            });",
            "after"
        );
    }

    I hope this helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please enable acceptance when scrolling’ is closed to new replies.