RankDossier
Check family

Cookie consent and privacy page checks: what the audit looks for

These checks look at technical signs of how a site handles visitor privacy: trackers that load before the visitor agrees, a missing cookie banner, and no linked privacy policy or cookie policy. They report what the audit can see in the page and its requests. They are not legal advice and do not decide whether a site meets the law. Ask a qualified person about your own obligations.

How the problem happens

A tracking or marketing script is pasted into the template and loads for everyone. Or the banner and the policy pages exist, but no link points to them, or the tracker starts before the choice is made.

A site that handles visitor data is judged by people and by systems. In the EU, the GDPR and the EU directive on privacy in electronic communications expect visitors to see what is collected and to be asked before analytics or advertising scripts such as Google Analytics or the Meta Pixel run. Search engines such as Google and Bing do not rank pages by cookie banners, so this family is not about ranking tricks. It matters because privacy pages and consent behavior are part of how a site shows that a real, accountable organization stands behind it, a trust signal for visitors that quality guidelines also describe; no direct effect on rankings or AI answers is claimed here.

The technical side is concrete, and you can see it in about two minutes in Chrome DevTools. A tracker that fires on page load, before any choice, sends the visitor's IP address and behavior to a third party such as Google or Meta immediately. A site that sets cookies but shows no way to refuse them, or has no linked policy that describes what is collected, leaves the visitor with no information, which Article 13 of the GDPR asks you to provide. This page describes what RankDossier can observe in the code and the requests of a page. It is not legal advice and cannot say whether a site meets the law in a given country, for example Germany or France; that is a question for a qualified person who knows your situation.

Open the site in a private window of Chrome or Firefox with an empty profile, so no earlier choice is stored. Before you click anything on the banner, open the Network panel and the Application panel of Chrome DevTools (F12). List the requests that go to other domains and the cookies that are set, for example _ga from Google Analytics. Google Analytics, the Meta Pixel, Google Tag Manager, social widgets and embedded YouTube videos are the usual suspects. If requests to those services appear before you have chosen, the trackers load before consent. In the Network panel, the Third-party filter shows them quickly.

Then test the choices. Click Reject all and confirm that the same third-party requests do not appear. Click Accept and confirm that they do. Check that the banner offers a clear way to refuse and that the choice can be changed later, because the GDPR says that withdrawing consent must be as easy as giving it. Finally, look for the links: a privacy policy and a cookie policy should be reachable from every page, usually in the footer, and the pages should open and describe what you actually use. Compare the list in the policy with the cookies and services you saw in the Network and Application panels.

Load tracking scripts such as Google Analytics only after consent. Use a consent management tool or a small script that starts analytics, advertising and social tags when the visitor agrees, as in the example, and keeps them off until then. In Google Tag Manager, set the tags to fire on the consent event instead of on every page. Self-host fonts instead of loading them from Google Fonts, and avoid embeds that set cookies on load; a YouTube video can be shown as a preview image that loads the player after a click.

Add a banner that lists the categories clearly and gives rejection the same prominence as acceptance, and store the choice so the banner does not return on every page. Publish a privacy policy and a cookie policy, link both from the footer on every page and keep them in step with what the site really does. Have the legal text written or checked by a qualified person for your market. After each change, repeat the manual test, because a WordPress plugin update can quietly restore a tracker.

<!-- load the analytics script only after the visitor agrees -->
<script>
  window.addEventListener('consent-granted', function () {
    var s = document.createElement('script');
    s.src = 'https://analytics.example.com/script.js';
    s.async = true;
    document.head.appendChild(s);
  });
</script>

<footer>
  <a href="/privacy">Privacy policy</a> · <a href="/cookies">Cookie policy</a>
</footer>

RankDossier loads the page in Chromium and observes the requests it makes before any interaction. The checks in this family report known tracking services, for example Google Analytics or the Meta Pixel, that load before consent, a site that uses cookies or trackers without showing a cookie banner, and the absence of a linked privacy policy or cookie policy. They describe technical observations about the page, not a legal verdict, and the report leaves the legal assessment to you.

Each finding lists the services or links that were seen. The guide to the website audit tool shows how these checks appear in a full report, the technical SEO audit guide places them among the other signals, the E-E-A-T guide explains why visible policies and an accountable organization support trust, and the guide to reading an audit report helps you decide what to fix first.

Wrong and right

Wrong

<!-- the tracker loads on every visit -->
<script src="https://analytics.example.net/tag.js"></script>
<!-- the tracker loads only after the visitor accepts -->
<script>
  if (consent.analytics) loadScript('https://analytics.example.net/tag.js');
</script>

How to fix it

WordPress

Use a consent plugin that blocks scripts until the visitor chooses, load tracking only through it, and link the privacy policy and the cookie policy in the footer of every page.

Next.js

Load analytics and marketing scripts only after consent, for example by rendering the script component when the consent value is set, and link the policy pages in the layout.

'use client';
import Script from 'next/script';

export function Analytics({ consent }: { consent: boolean }) {
  return <>{consent && <Script src="https://analytics.example.net/tag.js" />}</>;
}

Nginx

Nginx does not manage consent. Request the live page and list the scripts it loads, so you know which ones must wait until the visitor has made a choice.

# Nginx does not control consent; check what the live page loads
curl -s https://example.com/ | grep -io '<script[^>]*src="[^"]*"'

Check codes in this family

These checks belong to this family. Each code appears in the audit report with its own explanation and fix.

  • GDPR_TRACKERS_BEFORE_CONSENT Trackers before consent
  • GDPR_NO_BANNER No cookie banner
  • GDPR_NO_PRIVACY No privacy policy
  • GDPR_NO_COOKIE_POLICY No cookie policy

Read the full guide How to choose a website audit tool and fix SEO issues with it for the wider picture.

Check your own site

Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.

Start the free pre-check