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.
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.
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!
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.