Skip to main content
All privacy rulings

Tags before consent

Reference material, not legal advice.

Regulators treat any non-essential cookie or tracking script that loads before a visitor actively accepts as a violation. The ePrivacy Directive, UK PECR, and most state privacy laws all require prior consent for advertising and analytics cookies.

A common failure is a tag manager container that fires marketing tags on page load, before the consent banner has collected a response. Another is a cookie set server-side before the banner renders.

CookieBeam blocks non-essential scripts until consent is recorded. The scanner detects cookies and scripts that load before the banner appears, and live monitoring flags new pre-consent tags as they are added.

What to check

  • Open your site in a clean browser session (private mode, cleared storage) and check DevTools storage before interacting with the banner. No advertising or analytics cookies should be present.
  • In the Network tab, filter for known tag manager and pixel domains. Confirm that requests to those domains only appear after you click Accept.
  • Run a CookieBeam scan and review the "Before consent" column in the script inventory.
  • Check that your tag manager container is configured to fire marketing tags only after a consent signal, not on page load.
  • Repeat the test on mobile and on pages behind login, where banner timing can differ.

How CookieBeam helps

Related guides

Cases