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 cookies | Visitor rejects cookies | |
|---|---|---|
| Event collected | Yes | Yes |
userId / visitorId | Kept | Removed |
| First-party visitor cookie | Set | Not set, existing one cleared |
| Client IP (in setups we configure) | Forwarded | Not forwarded |
| Counted in recognized visitors and Consent Rate | Yes | No |
| Sent to marketing destinations with Consent Mode on | Yes, with consent: true | No |
The visit is counted. The visitor stays anonymous.
How does consent work in a server-side GTM setup?
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.
Cookie consent checklist: 6 checks in GTM Preview
Open GTM Preview in both the web and server containers.
- Map your consent signal. Find where the choice comes from, such as Google Consent Mode's
analytics_storagesignal or your consent platform's callback. It should map explicitly tograntedordenied, never to a category name or an object. - Test the fallback. Clear cookies and load a page before making a choice. The request to Hardal should carry
denied, notgranted, and shouldn't be skipped if you measure anonymously. - Reject cookies, then inspect a request. It should carry
x-hrd-consent: denied, have noX-Forwarded-Forheader and contain nouserIdorvisitorId. - Browse three pages after rejecting. Check what happens to the session ID and make sure it matches what you intended.
- Change your mind. Accept after rejecting, or the other way round. The latest choice should apply from the next request.
- 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.
Related
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.