Trackers before cookie consent

How the scan counts analytics, advertising and social connections made before a visitor answers a cookie banner, and how to block them until consent.

What AuditX checks

The check needs two things from the scan. The first is a banner: the scan opens the page at desktop and phone size and looks for a fixed or sticky element that covers at least 3 percent of the first screen and carries cookie or consent wording, or the name of a known consent platform. The second is the list of third-party hosts that one Lighthouse page load connected to. That load does not scroll, wait or click. A host is third-party when it is outside your own site domain. Each host is matched against a built-in list of vendors. Only hosts in the analytics, advertising and social groups count as trackers. The report counts the connections and the services behind them, so two hosts of one analytics tool are one service. Tag managers, fonts, maps, chat widgets, CDNs, payment services, error monitors and the consent tool itself are never counted, and a host that is not on the list is not counted either. Google Analytics and the Google ad services are named apart and not counted when the same page load shows Google Consent Mode with ad and analytics cookies denied, the state the Google Consent Mode check passes on: Google then measures without cookies until a visitor accepts. Whether that cookieless measurement needs consent where your visitors are is not something the scan answers. If those Google services were the only trackers seen, the result is an info note. If no banner was seen, the result is an info note, which does not lower the score, saying the check does not apply. If a banner was seen, the check passes when no tracker host connected, warns when hosts of 1 or 2 services did, and fails when hosts of 3 or more services did. If the connections or the page render could not be measured, the result is an info note marked as not measured, which leaves it out of the score. Because the load never scrolls or clicks, a tracker that waits for a scroll, a delay or a click is not seen, and one already blocked by the banner is not seen either. The result is a fact about connections and is not a legal verdict.

Why it matters

MDN explains that third-party cookies can be used as tracking cookies to follow people across sites, and that privacy rules in several regions ask companies to be open about them and to let visitors opt in.

OWASP notes that third-party code on a page runs with the same privileges as the visitor, so every extra vendor script is something you have to trust and keep an eye on.

How to fix it

  1. Open your consent tool settings and turn on blocking, so analytics, advertising and social scripts do not load until a visitor accepts them.
  2. If you use a tag manager, set the tags to fire only after consent, and not on the first page view.
  3. Remove any tracker you no longer use. Each one you remove is one fewer connection to explain.
  4. Reload the page in a private window without clicking the banner and check the Network tab for requests to the vendors named in the report.
<script type="text/plain" data-category="analytics" src="https://analytics.example.com/tag.js"></script>

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.