Skip to content
LandexHub

How to check that your cookie banner waits for consent

· 4 min read

On this page
  1. Why it matters
  2. What you are looking for
  3. Step by step
  4. Consent Mode and cookieless requests
  5. How to check that changing consent works
  6. Common mistakes
  7. Let Consent Monitor do the check

There is a cookie banner on your website, but does measurement really wait for consent? You cannot tell from the outside. This guide shows how to check it yourself in Chrome in about ten minutes, without installing anything. It is for website owners and marketers who want to be sure the banner is more than decoration.

Why it matters

A banner that shows up does not necessarily block anything. Tracking code is often added by a theme, a plugin or an agency directly into the page, and it starts before the banner knows the visitor’s choice. Such a website collects data without consent, even though it looks fine at first sight.

The opposite mistake is just as common. Measurement does not start even after consent, so visits and conversions are missing in Google Analytics and Google Ads. The same check reveals both.

What you are looking for

You check two things: which cookies the website stored and where it sends requests. These names mean that a specific tool has started:

What you see Where Tool
_ga, _ga_XXXXXXX Cookies Google Analytics 4
_gcl_au Cookies Google Ads (conversion linking)
_fbp Cookies Meta Pixel
google-analytics.com/g/collect Network data sent to GA4
googleadservices.com, googleads.g.doubleclick.net Network Google Ads
facebook.com/tr Network data sent by Meta Pixel

The list is not complete. The principle is simple: before consent, the cookies should contain only the website’s necessary cookies and the cookie that stores the consent state.

Step by step

  1. Open the website in a private window

    A private window has no stored cookies and no earlier consent. Open a page that visitors from ads land on, such as a product or service page. Do not click the banner yet.

  2. Open the developer tools

    Press F12, or Cmd+Option+I on a Mac. On the Network tab, turn on Preserve log so the list is kept when the page reloads. Then reload the page.

  3. Check the cookies before consent

    On the Application tab, expand Cookies in the left column and click the website’s address. Look for the names from the table above. You can list the same in the Console tab:

    JavaScript
    document.cookie.split('; ').map(function (c) { return c.split('=')[0]; });

    Before consent, the result should look roughly like this, without _ga and other tracking cookies:

    TEXT
    ['PHPSESSID', 'cookie_consent']

    The name of the consent cookie depends on the banner. The console does not show HttpOnly cookies or cookies of other domains, so the Application tab is more reliable.

  4. Check the requests before consent

    On the Network tab, type collect into the filter, then facebook and doubleclick. There must be no requests to Meta Pixel or ad networks before consent. For Google Analytics, read on, there is an exception.

  5. Reject and check again

    Click Reject, reload the page and repeat steps 3 and 4. The result must be the same as before consent.

  6. Accept and check that measurement starts

    In a new private window, click Accept all. Now _ga, _gcl_au and _fbp should appear, and the Network tab shows requests to collect. If not, measurement does not work even with consent.

If the website uses Google Consent Mode v2 in advanced mode, Google Analytics sends requests to google-analytics.com/g/collect even without consent. They are limited and store no cookies. Google uses them to model the missing data.

You can recognise such a request by the gcs parameter in its address. Click the request on the Network tab and look at Payload:

TEXT
gcs=G100   ad_storage and analytics_storage denied
gcs=G101   only analytics granted
gcs=G110   only advertising granted
gcs=G111   both granted

Before consent and after rejecting, you must see G100 and no _ga cookie. If you see G111 before you click, the banner does not send the right default state to Google. How to set up Consent Mode is described in Google Consent Mode v2, explained simply.

Find the cookie settings link on the website, usually in the footer. After accepting earlier, change your choice to reject and reload the page. New requests to Meta Pixel and ad networks stop, and GA4 switches to gcs=G100.

Cookies stored before the change stay in the browser until the banner or the tool deletes them. New data must not be sent, though.

Common mistakes

  • Tracking code directly in the theme. The banner is set up correctly, but a plugin or the theme adds Google Analytics a second time, outside the banner.
  • Wrong order. Tag Manager loads before the default consent state, so the first request goes out as if consent was given.
  • Checking only the homepage. Other page templates, such as the cart or the blog, may add other scripts.
  • Checking in a normal window. An old consent is still stored and the banner does not show at all.
  • Forgotten embeds. A video or a map stores cookies on its own. See YouTube, maps and chat: the cookies everyone forgets.
  • Measurement does not work even after consent. The banner blocks more than it should and data is missing in analytics. Check it with the last step and in the Realtime report in GA4.

Consent Monitor runs the same check for free. It loads your page like a real visitor three times: without interaction, after reject and after accept. You get a summary right away and the full timeline of every script, cookie and consent signal by email.

Frequently asked questions

What is the quickest way to tell that a website measures without consent?
Open the website in a private window, do not click the banner, and look at the cookies in the browser's developer tools. If you see _ga, _gcl_au or _fbp, measurement runs before the visitor agreed.
Is it a mistake when the website sends data to Google Analytics before consent?
Not always. In Consent Mode's advanced mode, Google sends limited cookieless requests without consent. You can recognise them by the parameter gcs=G100. Requests with cookies or with gcs=G111 must not appear before consent.
Do I need to repeat the check?
Yes, after every change to the website, theme, plugins or Tag Manager. A new script easily ends up outside the banner.

Similar guides

5 min read

Google Consent Mode v2, explained simply

What Google Consent Mode v2 is, which four consent signals it sends, how to set it up in code and in Tag Manager, and how to check that it works.