Home / Guides / Ley-de-Cookies: A Practical Guide to Fixing Scanner Issues and Achieving Compliance

Website Compliance

Ley-de-Cookies: A Practical Guide to Fixing Scanner Issues and Achieving Compliance

A practical guide to ley-de-cookies compliance, focusing on fixing scanner issues. Covers requirements, step-by-step implementation, common mistakes, and how to use GDPRChecker to validate consent, pre-consent network requests, and disclosures.

Author

GDPRChecker Editorial Team

Reviewed by

Privacy & Compliance Research Team

Last updated

July 2026

Reading time

11 min read

Educational guidance for compliance readiness — not legal advice. Requirements vary by jurisdiction and your specific processing activities.

Introduction

*Updated for 2026 compliance practices.*

If you run a website that serves visitors from Europe, you have likely encountered the term **ley-de-cookies**. While not a single law, it refers to the practical compliance topic of managing cookies and similar tracking technologies under the ePrivacy Directive and the General Data Protection Regulation (GDPR). For website owners, ley-de-cookies means validating consent, tags, and disclosures so that your site respects user choices. This guide focuses on the technical implementation side—specifically, how to identify and fix scanner issues that often go unnoticed. We will walk through requirements, step-by-step implementation, common mistakes, and how to use GDPRChecker to verify your setup. Remember, this guide provides technical implementation guidance, not legal advice. For legal questions, consult a qualified professional.

What Ley-de-Cookies Means for Website Owners

Ley-de-cookies is not a formal legal term but a shorthand for the obligations around cookie consent. In practice, it means you must inform users about the cookies and trackers your site uses, obtain valid consent before setting non-essential cookies, and provide a way for users to change or withdraw consent. The underlying rules come from the ePrivacy Directive (often called the "cookie law") and the GDPR’s requirements for transparent data processing. For website owners, this translates into a series of technical checks: ensuring your consent banner appears before any tracking scripts fire, that consent is properly recorded, and that your cookie policy is accurate and up to date. Many sites fail not because they lack a banner, but because of subtle configuration errors that a scanner can reveal. For example, a tag might fire before the user interacts with the banner, or a "Reject All" button might not actually block all cookies. These are the scanner issues that GDPRChecker helps you uncover and fix.

Requirements and Compliance Expectations

Under the ePrivacy Directive and GDPR, the core expectations for ley-de-cookies compliance include:

  • **Prior consent**: Non-essential cookies (e.g., analytics, advertising) must not be set until the user has given affirmative consent. Essential cookies (e.g., session cookies, shopping cart) are exempt but should still be disclosed.
  • **Granular choice**: Users must be able to accept or reject cookies by category. A simple "OK" button without a reject option is insufficient under many EU regulators’ interpretations.
  • **Easy withdrawal**: It must be as easy to withdraw consent as it is to give it. This often means a persistent cookie settings link or floating button.
  • **Transparent information**: Your cookie policy must clearly list all cookies, their purposes, durations, and any third-party recipients. This is closely tied to your privacy policy.
  • **Documentation**: You should maintain records of consent, including timestamps and the specific choices made. Many Consent Management Platforms (CMPs) handle this automatically.

These expectations are enforced by data protection authorities across the EU, with guidance from the European Data Protection Board (EDPB). While the exact interpretation can vary by member state, the technical baseline is consistent: no tracking before consent. This is where many websites stumble. A scanner can detect whether scripts like Google Analytics or Facebook Pixel are loading before the user has a chance to consent. If they are, you are likely in violation. GDPRChecker’s scanning capability is designed to flag these pre-consent network requests, giving you a clear starting point for remediation.

How to Implement Ley-de-Cookies Step by Step

Implementing ley-de-cookies correctly involves several layers: choosing a consent mechanism, configuring your tags, and verifying the outcome. Here is a step-by-step approach:

1. Choose a Consent Management Platform (CMP)

A CMP is a tool that manages the consent banner, records user choices, and signals consent status to other scripts. While you can build a custom solution, most website owners use a third-party CMP for reliability and ease of updates. When selecting a CMP, consider whether it supports the IAB Europe Transparency & Consent Framework (TCF) if you run ads, and whether it integrates with Google Consent Mode. Note that GDPRChecker does not endorse any specific CMP, but the scanner can validate the behavior of any CMP you choose.

2. Configure the Consent Banner Correctly

The banner must appear on the first page load and block all non-essential scripts until the user makes a choice. Key configuration points: - **No pre-selected checkboxes**: All non-essential categories should be off by default. - **Reject All button**: The banner must have a clearly visible option to reject all non-essential cookies. This is now a firm expectation under many EU guidelines. For more details, see our guide on reject-all-button-requirements. - **Equal prominence**: The "Accept All" and "Reject All" buttons should be equally prominent to avoid nudging users toward acceptance. - **Granular options**: Provide a settings panel where users can toggle individual cookie categories.

3. Integrate with Google Consent Mode (if using Google services)

If you use Google Analytics, Google Ads, or other Google tags, implementing Google Consent Mode is highly recommended. Consent Mode allows Google tags to adjust their behavior based on the consent state, sending cookieless pings when consent is denied. This helps preserve some measurement while respecting user choices. The official documentation from Google explains how to set up Consent Mode for your website. In practice, you need to update your gtag.js or Google Tag Manager container to listen for consent updates from your CMP. Without Consent Mode, you must completely block Google tags before consent, which can be more complex. Our guide on block-google-analytics-before-consent walks through the blocking approach.

4. Adjust Tag Manager Triggers

If you use Google Tag Manager (GTM), you must ensure that tags are not fired until the appropriate consent is given. This typically involves: - Creating custom event triggers that fire only after the CMP signals consent. - Using GTM’s built-in consent settings (Consent Overview) to map consent states to tag firing. - Blocking all tags by default and only allowing them on the consent-granted event.

A common mistake is to rely solely on the CMP to block scripts, while GTM still fires tags unconditionally. This can lead to tags slipping through, especially if the CMP loads asynchronously. A scanner can detect these leaks.

5. Update Your Cookie Policy

Your cookie policy must accurately reflect the cookies in use. After implementing your CMP and configuring tags, update your policy to list every cookie, its source, purpose, and expiration. This is not a one-time task; whenever you add a new tool or plugin, you must update the policy. For a detailed breakdown, refer to our cookie-policy-requirements guide.

6. Test the Reject Flow

After setup, manually test the reject flow: clear your browser cookies, load your site, click "Reject All," and then inspect the cookies stored and network requests made. No non-essential cookies should be present, and no tracking requests should appear in the network tab. Repeat this test in an incognito window to avoid cached consent. Then, use GDPRChecker to automate and validate this process at scale.

Common Mistakes and How to Avoid Them

Even with a CMP in place, many websites fail scanner checks due to these recurring issues:

1. Pre-Consent Network Requests

This is the most critical mistake: tracking scripts fire before the user interacts with the consent banner. It often happens because the CMP script loads asynchronously, and other tags in the page’s <head> execute first. To avoid this, you can: - Place the CMP script as high as possible in the <head>. - Use a blocking script that prevents other tags from loading until consent is determined. - Implement a server-side solution that conditionally injects tags based on consent.

GDPRChecker scans specifically look for these pre-consent requests. If your scan shows hits to Google Analytics, Facebook, or other tracking domains before consent, you have a problem to fix.

2. Incomplete Reject All Functionality

Some CMPs offer a "Reject All" button that only rejects a subset of cookies, or the button is present but does not actually block all non-essential cookies. This can happen if the CMP is not correctly integrated with your tag manager or if some scripts are hardcoded outside the CMP’s control. Always verify by testing the reject flow and scanning with GDPRChecker.

3. Missing or Outdated Cookie Policy

A cookie policy that does not list all cookies, or lists cookies that are no longer used, is a compliance gap. Scanners can compare the declared cookies in your policy with the actual cookies detected on your site. Discrepancies can lead to enforcement actions. Regularly scan your site and update your policy accordingly.

4. Ignoring Consent Mode Configuration

If you use Google services but have not implemented Consent Mode, you may be sending full tracking data even when consent is denied. This is a common oversight. Consent Mode requires both the CMP and the Google tags to be configured correctly. Without it, you must completely block Google tags before consent, which can be technically challenging.

5. Not Testing After Changes

Every time you add a new plugin, update a theme, or modify your CMP settings, you risk introducing new scanner issues. A seemingly harmless update can cause a tag to fire unconditionally. Make post-change scanning a routine part of your deployment process.

How to Validate with GDPRChecker

GDPRChecker provides a scanner that automates the verification of your ley-de-cookies implementation. Here’s how to use it effectively:

  1. **Run an initial scan**: Enter your website URL into GDPRChecker. The scanner will crawl your site and report on pre-consent network requests, banner behavior, and disclosure gaps.
  2. **Review the results**: The report highlights issues such as tags firing before consent, missing cookie policy disclosures, and banner configuration problems.
  3. **Fix the issues**: Use the detailed findings to adjust your CMP settings, update your tag manager triggers, or revise your cookie policy.
  4. **Re-scan after changes**: After making fixes, run another scan to confirm the issues are resolved. This iterative process helps you close gaps systematically.
  5. **Monitor regularly**: Compliance is not a one-time event. Schedule regular scans, especially after site updates, to catch new issues early.

GDPRChecker scans help verify pre-consent network requests, banner behavior, and disclosure gaps after changes. By integrating scanning into your workflow, you can maintain continuous compliance and avoid the common pitfalls that lead to scanner issues.

Implementation Checklist

Use this checklist to ensure your ley-de-cookies implementation is thorough:

  1. Choose and install a CMP that supports granular consent and a "Reject All" button.
  2. Configure the CMP to block all non-essential cookies by default.
  3. Ensure the consent banner appears on every page, including landing pages and blog posts.
  4. Verify that no pre-selected checkboxes are present for non-essential categories.
  5. Integrate Google Consent Mode if using Google Analytics or Google Ads.
  6. Update Google Tag Manager triggers to fire only after consent is granted.
  7. Block all hardcoded tracking scripts (e.g., Facebook Pixel) before consent using the CMP or a custom wrapper.
  8. Create or update your cookie policy to list all cookies, purposes, and durations.
  9. Add a persistent cookie settings link or floating button for users to change preferences.
  10. Test the reject flow manually in an incognito browser window.
  11. Run a GDPRChecker scan to detect pre-consent requests and other issues.
  12. Fix any issues found and re-scan until the report is clean.

FAQ

What is ley-de-cookies? Ley-de-cookies is a practical compliance topic referring to the rules around cookie consent under the ePrivacy Directive and GDPR. It involves informing users, obtaining prior consent for non-essential cookies, and providing easy withdrawal options. For website owners, it means validating consent, tags, and disclosures to avoid scanner issues.

Do I need ley-de-cookies for GDPR? Yes, if your website serves users in the European Economic Area and uses non-essential cookies or similar tracking technologies. The GDPR requires a legal basis for processing personal data, and consent is one such basis. The ePrivacy Directive specifically requires consent for storing or accessing information on a user’s device, with limited exceptions.

How do I implement ley-de-cookies? Implement a Consent Management Platform (CMP) that blocks non-essential cookies until consent is given. Configure your tags to fire only after consent, integrate Google Consent Mode if applicable, and update your cookie policy. Then, test thoroughly using manual checks and a scanner like GDPRChecker to verify no pre-consent requests occur.

How can I verify ley-de-cookies with a scanner? Use GDPRChecker to scan your website. The scanner checks for pre-consent network requests, banner behavior, and disclosure gaps. It reports any tracking scripts that fire before consent, missing cookie policy information, and configuration errors. After fixing issues, re-scan to confirm compliance.

What are common ley-de-cookies mistakes? Common mistakes include pre-consent network requests (tags firing before user interaction), incomplete "Reject All" functionality, outdated cookie policies, missing Google Consent Mode integration, and failing to re-scan after site changes. These issues can lead to non-compliance and are easily detected by GDPRChecker.

Closing the Gaps with GDPRChecker

Achieving ley-de-cookies compliance is an ongoing process of implementation, testing, and monitoring. The most persistent challenges are the scanner issues that slip through manual testing—pre-consent requests, incomplete blocking, and policy mismatches. GDPRChecker is built to help you close these gaps efficiently. By scanning your site regularly, you can catch problems early and maintain a compliant setup. Remember, this guide provides technical guidance, not legal advice. For specific legal requirements, consult a qualified professional. Ready to fix your scanner issues? Try GDPRChecker today and ensure your ley-de-cookies implementation stands up to scrutiny.

<!-- schema:faq ready -->

GDPRChecker guides are educational resources and do not constitute legal advice. Use them to understand technical and operational privacy requirements, and consult qualified counsel for legal interpretation.

Check Your Website in Under 60 Seconds

  • No signup required
  • GDPR-focused checks
  • Cookie banner detection
  • Privacy policy verification
Ley-de-Cookies: Fix Scanner Issues & Validate Consent | GDPRChecker