Support » Plugin: Complianz - GDPR/CCPA Cookie Consent » How to block a particular plugin

  • Resolved Gmads

    (@gmads)


    Hello,

    Besides Google Analytics I am also using Yandex Metrica (by Mustafa Uysal; version 1.8.1), however, as this plugin is not listed at the wizard, I tried with the “Adding a script” option.

    Maybe I misunderstood how the process should be done, but I went and copied the Yandex Metrica function into the “Run asynchronous scripts on consent” text area, saved the changes, cleared all the cookies, and refreshed the page. The Yandex cookies still appeared before consenting.

    https://i.postimg.cc/05XY7tmn/script-blocking.png

    Thanks for your help,
    Guillermo

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    Hi @gmads,

    Did you remove the original implementation of this script? If you have entered the script via the Complianz script center, it will inject the script on visitor consent. If you left the original implementation on the page, the script will run twice.

    Besides that, your implementation seems fine!

    Kind regards,
    Leon

    Gmads

    (@gmads)

    Hello Leon,

    I kind of imagined that, but I wasn’t sure about how to proceed; I also imagined that maybe the plugin would scan the code and block the referenced script 😀

    So, I should then simply disable the Yandex plugin, or remove it all together?

    Thanks,
    Guillermo

    Gmads

    (@gmads)

    If I disable the plugin… I would then miss the statistics block shown at the dashboard, which would then defeat the purpose of having this plugin. I think there is something here that I’m not getting about this “removing the function from the page.”

    Thanks,
    Guillermo

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @gmads,

    I see the plugin adds the code as well.

    You can either go to https://yandex.com/support/metrica/general/ip-masking.html and follow the suggestions to configure Yandex for GDPR. This way you can set Yandex cookies without consent in your country.

    Or, if you need to ask for consent, because you add marketing option (for example e-commerce data) you can do the following:

    Under Complianz Integrations – Script Center, you can remove the Yandex script and add:

    https://mc.yandex.ru/metrika/watch.js

    to the block for scripts that need to be blocked before consent.

    Hope this helps, regards Aert

    Hello Aert,

    Yes, I have pending doing the IP anonymization, just as I did for Analytics, but even so, it would have been great to have the cookies actually not set until the user consents to the statistical cookies, just as with those of Google.

    No, no e-commerce data used. My client’s site is very simple in this respect because, at least for the moment, they only need to have a general idea about how the site is being used.

    Hopefully at some point the Complianz plugin will be able to also put on hold Yandex cookies 🙂

    Thanks for your help,
    Guillermo

    Hello,

    Just a quick update regarding the Yandex plugin.

    I finally solved this by reinserting the Yandex Metrica counter function into the “Run asynchronous scripts on consent,” and by modifying the plugin to block the code that inserts the function into the page. Now I can have the cookies blocked until the user consents, and still have the reports at the WP dashboard.

    Thanks again for your advice,
    Guillermo

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.