What Happens to Your Data When Visitors Reject Cookies?

What happens when visitors reject cookies? How Hardal keeps anonymous, IP-free measurement in server-side setups, plus 6 checks to run in GTM Preview.

Emre Süren
7 min read
Privacy

A rejected cookie banner means "don't identify me." It doesn't mean "I was never here."

Every cookie consent banner splits your visitors into two groups: those who accept and those who reject cookies. In many tracking setups, the second group simply disappears. No page views, no sessions, no purchases.

The reports still look clean, but they only describe part of your traffic. Worse, the missing share keeps moving. It changes with the banner design, the audience and the season, so even trend lines stop being reliable.

As a Customer Engineer at Hardal, I see this a lot in server-side setups. The intention is right: respect the visitor's choice. But respecting the choice and acting as if the visit never happened are two different things. Anonymous measurement is the middle path, and this post shows how it works in Hardal and how to check your own setup.

In this post:

  • What rejecting cookies actually turns off, and what it doesn't
  • What Hardal does when a visitor rejects cookies
  • How consent works in a server-side GTM setup
  • How much revenue comes from visitors who reject cookies
  • Six cookie consent checks to run in GTM Preview

This is a technical explanation, not legal advice. How KVKK, GDPR or any other regulation applies to you depends on your setup, your destinations and your disclosures. Review your implementation with your DPO or legal advisor.

What does rejecting cookies actually turn off?

Most setups treat "reject" as a single switch: tracking off. In Hardal, it's three separate decisions.

Collecting the event. Which activity and parameters your implementation sends.

Recognizing the visitor. Whether identity fields can be processed and whether a first-party cookie can connect visits.

Forwarding to a destination. Whether a platform like Meta or Google Ads may receive the event, and which fields it gets.

A consent signal for collection is not a blanket pass to send every field everywhere. Once you separate the three, a denial no longer has to switch everything off. It changes what happens at each step.

What does Hardal do when a visitor rejects cookies?

Hardal accepts anonymous events. When a request arrives without granted consent (and without a valid identity from an earlier granted visit), Hardal removes userId and visitorId before processing it. An explicit denial also clears any existing identity cookie (Consent docs).

Here is the difference side by side:

Visitor accepts cookiesVisitor rejects cookies
Event collectedYesYes
userId / visitorIdKeptRemoved
First-party visitor cookieSetNot set, existing one cleared
Client IP (in setups we configure)ForwardedNot forwarded
Counted in recognized visitors and Consent RateYesNo
Sent to marketing destinations with Consent Mode onYes, with consent: trueNo

The visit is counted. The visitor stays anonymous.

In server-side setups, the consent state travels with every request. Hardal's server event endpoint takes an x-hrd-consent header set to granted or denied. The rule is simple: send granted only when identity processing is allowed, and denied when consent is declined or unknown.

The Hardal server-side GTM template follows the same rule. It reads the consent signal for each event, for example the analytics_storage state from Google Consent Mode v2 or your consent platform's callback, and maps it to that header. When the signal is missing or invalid, the fallback can be set to denied, so the event still reaches Hardal anonymously instead of being skipped. A missing signal never turns into granted.

The visitor's IP address follows the same logic. In the setups we configure, the client IP goes out in X-Forwarded-For only when consent is granted. A denied event arrives without it.

This is where anonymous measurement differs from simply not tracking. Drop denied visitors and you lose their page views, sessions and purchases. Send them anonymously and you keep an honest count of what happened on your site, with no identity or IP attached.

Do Meta and Google Ads receive data from visitors who reject cookies?

Not by default. Keeping anonymous events in Hardal doesn't mean sending them to ad platforms.

Every Hardal destination has its own Consent Mode setting (separate from Google Consent Mode), and for marketing destinations it's on by default. With it on, Hardal forwards only events that carry consent: true. Everything else still lands in your Hardal dashboards and stays there.

For EU and Turkey e-commerce, we recommend keeping these defaults and passing consent: true only after the visitor accepts your banner. Turning Consent Mode off on a marketing destination forwards every event regardless of consent, so only do it if your regional regulations allow it.

How much revenue comes from visitors who reject cookies?

Once denied visitors are measured anonymously, you can finally answer this. The Acquisition report has a Conversions by Consent chart and the Commerce report has Revenue by Consent. Both compare Consented and Denied / Unknown traffic day by day. The Denied / Unknown group covers visitors who rejected cookies and visitors who never made a choice.

Read them next to Consent Rate, the share of sessions with visitor consent, and you'll know how much of your business happens outside the consented group. Drop denied visitors, and that part of the picture is gone. (For how the charts group traffic, see Revenue by Consent: Measure Your Consent Gap.)

Why do sessions spike after visitors reject cookies?

Without granted consent, Hardal's web tracker treats each new page load as a new visit, with no cookie connecting them. On the server endpoint, Hardal creates a session ID when none is sent, and reuses the one you pass in x-hrd-session-id for events from the same session.

This is easy to get wrong without noticing. If your server-side setup builds the session ID from values that change on every page load after a rejection, one visit turns into many sessions. We've seen this in real tracking audits. Decide how rejected visits should be grouped, then confirm your setup does exactly that.

Open GTM Preview in both the web and server containers.

  1. Map your consent signal. Find where the choice comes from, such as Google Consent Mode's analytics_storage signal or your consent platform's callback. It should map explicitly to granted or denied, never to a category name or an object.
  2. Test the fallback. Clear cookies and load a page before making a choice. The request to Hardal should carry denied, not granted, and shouldn't be skipped if you measure anonymously.
  3. Reject cookies, then inspect a request. It should carry x-hrd-consent: denied, have no X-Forwarded-For header and contain no userId or visitorId.
  4. Browse three pages after rejecting. Check what happens to the session ID and make sure it matches what you intended.
  5. Change your mind. Accept after rejecting, or the other way round. The latest choice should apply from the next request.
  6. Check every marketing destination. Consent Mode should be on, and denied events shouldn't be forwarded.

One caution: a successful request or consent call doesn't prove that a visitor was recognized or that a destination received an event. Check the request and the resulting event and session data, not just the tag status.

Measure the visit, not the visitor

A rejected banner is a clear message: don't identify me. It isn't a request to erase the visit. With the right setup, you can respect that and still see how your site really performs.

Want to see how your setup handles denied consent? Book a call with me and we'll walk through it in Preview together.

Never miss a resource.

Subscribe to our newsletter.

FAQs
4 Questions

Frequently Asked Questions

What happens when visitors reject cookies, how Hardal's Consent Mode differs from Google Consent Mode, and why traffic drops after a cookie banner.

Can you track visitors who reject cookies?
You can measure their visits anonymously if your setup and legal basis allow it. In Hardal, events from visitors who reject cookies are collected without `userId` or `visitorId`, no visitor cookie is written, and in the setups we configure no client IP is forwarded. Check your implementation with your DPO or legal advisor.
What is the difference between Google Consent Mode and Hardal's Consent Mode?
Google Consent Mode is the signal your site sets based on the visitor's banner choice, such as `analytics_storage`. Hardal's Consent Mode is a setting on each Hardal destination that decides whether events are forwarded to platforms like Meta or Google Ads. The first is an input. The second controls what goes out.
Do ad platforms get data from visitors who reject cookies?
Not with Hardal's default settings. Marketing destinations have Consent Mode on by default, so only events carrying `consent: true` are forwarded. Events from visitors who reject cookies stay in your Hardal reports.
Why does my traffic drop after adding a cookie banner?
Usually because the setup stops sending any data once a visitor rejects cookies. The visits still happen; they're just not counted. Measuring denied visitors anonymously, and comparing Consented with Denied / Unknown traffic, shows how much of your traffic and revenue was missing.