• Hi,

    I wanted to know if it was possible to deposit cookies (_ga, _gat, _gid, …) only after acceptance by the user of cookies?

    If so, how to do (function, filter, hook, …)?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 12851872

    (@anonymized-12851872)

    Thread Starter meneldil

    (@meneldil)

    Exactement !

    In fact, I would like to disable the automatic deposit of cookies and launch it manually with a function.

    • This reply was modified 6 years, 10 months ago by meneldil.
    Anonymous User 12851872

    (@anonymized-12851872)

    I understand, I’m not a coder, I can’t tell you how to do it.
    Sorry but thes codes are in the post.
    example

    <script>
    if(jQuery.cookieCuttr.accepted){
    
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
    ga(‘create’, ‘UA-XXXXX-X’, ‘auto’);
    ga(‘send’, ‘pageview’);
    
    }
    </script>

    Otherwise you can not prevent access to your site, for non acceptance of cookies
    CNIL says:
    Le consentement ne peut être valable que si la personne concernée est en mesure d’exercer valablement son choix et n’est pas exposée à des conséquences négatives importantes si elle refuse de donner son consentement. La personne qui refuse un cookie nécessitant un consentement doit pouvoir continuer à bénéficier du service (l’accès à un site internet par exemple).

    PS: You are not the person who was looking for, a delete the attached file page on wordpress-fr.net?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Acceptance of cookies’ is closed to new replies.