• Resolved tomhoevenaars

    (@tomhoevenaars)


    Hello CookieYes,

    We noticed that CookieYes scans aren’t working if Delay Javascript is enabled. For this we use the plugin Perfmatters.

    After the scans are completed they found 0 cookies.

    We already tried to add exclusions in Perfmatters, see below:
    /wp-content/plugins/cookie-law-info/legacy/public/js/cookie-law-info-public.js
    cookie-law-info
    client_data/(.*)/script.js
    _ckyGcm
    jquery.min.js
    https://cdn-cookieyes.com/
    /cookieyes.js

    Are these all necessary and which path or file do we need to exclude to make the scans work again?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi Tom,

    Greetings from CookieYes!

    Thank you for reaching out and for providing insights into your scanning process.

    The behaviour you’re experiencing is due to website optimization settings that defer loading scripts, including those responsible for setting cookies, until user interaction occurs (such as mouse movement or clicks). This optimization improves performance but affects automated scans that do not trigger such interactions.

    To ensure an accurate cookie scan, we recommend temporarily disabling this optimization and then running the scan again. Once the scan is complete, you can re-enable the optimization settings. The process for disabling this feature will depend on the optimization tool or plugin you are using. You may need to check its documentation or settings to find an option related to “delayed script execution” or “lazy loading of JavaScript.”

    If you need further guidance, please let us know which optimization plugin you are using, and we’ll do our best to assist you.

    Thread Starter tomhoevenaars

    (@tomhoevenaars)

    Yes, I know that the scans aren’t working if Delay Javascript is enabled. Did you read my post? I literally mentioned the optimization plugin we use: “Perfmatters”..

    For a one-time scan we can disable Delay Javascript, but most of the time we schedule cookie scans for all our websites. When we do this we can’t disable Delay Javascript for all our websites before the scheduled scan runs.

    So, I want to know if we can add any other exclusions so that CookieYes scans are not affected by Delay Javascript.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi Tom,

    Thank you for your response, and we appreciate the clarification.

    The issue you’re experiencing is not caused by the optimization of specific JavaScript files but rather by the overall website optimization behavior applied by the Perfmatters plugin. As a result, excluding specific JavaScript files will likely not resolve the issue. Since Perfmatters delays JavaScript execution until user interaction occurs, the CookieYes scan is unable to detect cookies as the scripts do not load during the automated scanning process.

    To ensure that scheduled scans are completed successfully, it may be necessary to review the optimization settings in Perfmatters, particularly any features that delay full website loading until user interactions (such as mouse movement, clicks, or scrolling).

    Since this behaviour is managed by Perfmatters, we recommend checking their documentation or reaching out to their support team for further guidance on whether an adjustment can be made while maintaining your website’s performance optimization.

    Let us know if you need any further clarification!

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi Tom

    As we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

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

The topic ‘CookieYes scans vs. Perfmatters Delay Javascript’ is closed to new replies.