• Resolved tcress101

    (@tcress101)


    Thanks for this plugin, it is very close to what I need. The only thing missing is an option to enable scrolling for acceptance (which is perfectly appropriate for many websites) and excluding countries from having to see the cookie bar at all (yet still able to load scripts and cookies for non-EU visitors).

    For geo-targeting, Category Country Aware WordPress works nice with the Cookie Notice plugin and that is near perfect…(but unfortunately this plugin creates new site urls once cookies are accepted and that is a nightmare for Google penalties…duplicate content, etc.). The CCA plugin author suggests a bit of code added to a cookies plugin makes it compatible with his…quote:

    But I don’t know which plugins other than Cookie Notice provide such a hook.
    
    You could ask Ginger either to provide a hook; or (better, no need for code by you) Ginger to use the CCA function mentioned in the article. It would require them to add a couple of lines of code.
    
    

    if ( function_exists(‘cca_is_EU’) && ! cca_is_EU() ):
    // if CCA plugin is running and visitor not from EU
    // Ginger does nothing
    else:
    // Ginger’s code for Cookie consent/allow/block
    endif;`

    Not tested, but I assume it will work. Get them to let me know if they do this and I’ll modify the article to highlight it being “built in” to Ginger.`

    That comment was made on his website in the comments section here: european-cookie-law-bar.

    The problem right now with the GDPR Cookie Compliance plugin is that absolutely no code(cookies) is loaded for all, world-wide visitors unless they specifically click the agree button. This is overkill.

    So close!

Viewing 4 replies - 1 through 4 (of 4 total)
  • lauratraveler

    (@lauratraveler)

    +1 this. I don’t think scrolling for acceptance is against the GDPR. Or is it?

    Jon Fergus

    (@jon-fergus)

    I second this. A geolocation function is a must.

    hi,
    Scrolling for acceptance is against the GDPR.
    Just by clicking on an element or loading a other internal page.

    A post from CNIL, la Commission Nationale de l’Informatique et des Libertés
    (the french National Commission of Computing and Freedoms)
    https://www.cnil.fr/fr/cookies-comment-mettre-mon-site-web-en-conformite

    Conditionner le dépôt de cookies au consentement.
    Dans la mesure où le consentement ne doit pas être ambigu, ce bandeau ne doit pas disparaître tant que la personne n’a pas poursuivi sa navigation, c’est-à-dire tant qu’elle ne s’est pas rendue sur une autre page du site ou n’a pas cliqué sur un élément du site (image, lien, bouton ” rechercher “).

    Sauf consentement préalable de l’internaute, le dépôt et la lecture de Cookies ne doivent pas être effectués :

    si l’internaute se rend sur le site (page d’accueil ou directement sur une autre page du site à partir d’un moteur de recherche par exemple) et ne poursuit pas sa navigation : une simple absence d’action ne saurait être en effet assimilée à une manifestation de volonté ;
    s’il clique sur le lien présent dans le bandeau lui permettant de paramétrer les cookies et, le cas échéant, refuse le dépôt de cookies.

    • This reply was modified 7 years, 12 months ago by tarvathorg.
    Plugin Author Moove Agency

    (@mooveagency)

    Hi there,

    Thanks for your comments.
    You can use one of the following scripts to accept the cookies on scroll:

    GDPR enable cookies on load and on scroll V1

    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 );

    GDPR enable cookies on load and on scroll V2

    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"
        );
    }
    add_action( 'wp_enqueue_scripts', 'moove_gdpr_script_extension', 999 );

    I hope this works.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude/Include Countries or Activate on Scroll Possible?’ is closed to new replies.