Cookie banners, CMPs, and data loss: 20+ mistakes that break campaign measurement
A cookie banner is not just a legal element in the corner of a website. It is the first technical filter between the user, analytics, and ad systems.
Short Answer
A cookie banner is not just a legal element in the corner of a website. It is the first technical filter between the user, analytics, and advertising systems. When it is small, slow, poorly connected to GTM, or lets the user click through the site without a decision, you lose the visit source, click ID, first page_view, and part of conversions.
The worst cookie banners have two properties at once: they look legally suspicious and they technically destroy data. They hide rejection, use pre-checked categories, block all of GTM, remove URL parameters, leave hardcoded pixels outside consent logic, and offer no way to change the decision.
A good cookie banner has a clear choice, fast loading, equally available options to accept and reject, immediate consent update after a click, all tags connected in GTM, and an audit view of how many people accept or reject cookies and how that changes the real campaign numbers.
1. UX Mistakes That Lower Consent Ratio and Break the First Visit
From a data perspective, the cookie banner is a decision point. If the user ignores it, measurement remains in an uncertain or limited state. If the banner is a small strip in the bottom corner, some users overlook it and continue without a clear decision. The result is a worse consent ratio and less usable campaign data.
At the same time, watch the legal and reputational side. The goal is not to manipulate the user. The goal is to give a clear, fair, and quick choice. From a data perspective, a modal or prominent layer over the content can work well, but only if rejection is as available as acceptance and the user understands what they are choosing.
- The banner is too small. The user overlooks it, does not click, and you wait for consent that never comes.
- An X instead of a decision. From a data perspective, this creates a gray zone. The user did not choose acceptance or rejection, but the banner may disappear.
- The user can click under the banner. They move to another page before the consent update is sent. This can lose the referrer, landing URL, or click ID.
- A slow banner. If the banner loads late, tags may already run with an incomplete consent state.
- Visual style outside the brand. The cookie banner is often the first thing a user sees. If it looks like a foreign plugin or scam, it increases distrust.
Good UX Principle: Clear, Equal, and Fast
A good banner has clearly visible choices, equally available rejection and acceptance, understandable text, the option to configure details, and a technical response immediately after clicking. The cookie banner does not need to become a legal essay. The user should understand the purposes and decide quickly.
If you use a modal, watch two things: it must not be a dark pattern, and it must not break website performance. Buttons must work immediately. After a click, nothing should spin for two seconds, because the browser may interrupt network requests in the meantime or the user may leave.
2. Dark Patterns and Legal Mistakes That Destroy Trust
Marketing sometimes pushes for the highest possible consent ratio. That is understandable, but it must not turn into manipulation. Hidden rejection, pre-checked categories, or a more complicated path to reject are exactly the things regulators have been addressing for a long time and that reduce user trust.
From the performance team's perspective, this is also short-sighted. A falsely high consent ratio obtained through a dark pattern may look good in a report, but it harms brand reputation and creates legal risk.
- Rejection is hidden in the second layer. The user has an easy "Accept all" button, but rejection is a link or appears only after several steps.
- Marketing or analytics categories are pre-checked. Consent should be an active choice, not an opt-out construction.
- Rejection is asked again and again, while acceptance is remembered for a year. Technically, this looks like pressure to change the decision and is unpleasant for users.
- Marketing cookies are disguised as legitimate interest. Treat this as a high-risk claim for ad measurement and remarketing.
- There is no way to change your mind. The website should have a link or button to reopen cookie settings, typically in the footer or privacy policy.
3. Technical Mistakes in GTM and Tagging
The biggest technical problem is unclear responsibility. The cookie banner should collect and store the decision. Consent Mode should translate that decision into signals. GTM should use those signals to control tags. When one of these layers is implemented badly, the entire measurement setup starts lying.
A common antipattern is blocking all of Google Tag Manager until the user accepts cookies. At first glance, it sounds safe. In practice, it often blocks the tags that are supposed to set consent default, update, Consent Overview, and other logic. The better approach is to load GTM and control individual tags inside it according to consent state.
- Consent default fires late. The CMP or consent tag must run on Consent Initialization - All Pages.
- Events fire before the Google tag or consent. A conversion before consent state may be incomplete, misattributed, or blocked.
- All of GTM is blocked. Then the mechanism that should process consent often does not run either.
- Hardcoded scripts outside GTM. Meta, LinkedIn, TikTok, or Hotjar inserted directly into the site template may not follow consent in GTM.
- Duplicate implementation. Consent Mode is implemented both in site code and in GTM. One system sets denied, the other granted, the order changes, and nobody knows what applies.
- No additional consent checks for non-Google tags. Google tags have built-in logic, but other tags do not have it by themselves.
- Embeds outside consent. YouTube, Instagram, maps, or other embedded elements can load third parties even without marketing or embed consent.
4. CMP Platforms: When They Help and When They Hurt
A CMP platform can be useful. It can scan cookies, generate a cookie policy, keep consent logs, handle multilingual websites, regional rules, cross-domain scenarios, and management across a larger team. For a large company, it is often the cleanest operational solution.
At the same time, a CMP is not a magic guarantee of correct measurement. Some CMP scripts slow the site down, change URL parameters, block unexpected requests, or create their own logic outside GTM. Automatic scanners can also look like fake traffic in analytics if you do not identify and filter them where it makes sense.
5. Loss of Sources, Referrers, and Click IDs
One of the most underestimated problems is navigation under the banner. A user arrives from a campaign with gclid, wbraid, fbclid, li_fat_id, or UTM parameters in the URL. Before clicking consent, they click through to another page. The website, CMP, or redirect drops some of the parameters. When the user consents only on the second page, the first source may no longer be properly available.
Consent Mode can partly solve this for Google tools with URL passthrough, but only under certain conditions. For other advertising systems, you need to think separately. If you want robust attribution, you must watch redirects, parameters, your own identifier storage, server logs, and whether you are allowed to store the given identifier at all.
- GCLID/WBRAID/GBRAID. Google Ads identifiers. Watch auto-tagging, Conversion Linker, URL passthrough, and redirects.
- FBCLID. Meta click identifier. It is not the same as UTM, and Google Analytics will not read campaigns from it automatically like it can from a linked Google Ads account.
- li_fat_id. LinkedIn click identifier. If you use LinkedIn campaigns, remember that LinkedIn also has its own advertising identifiers.
- UTM parameters. Primarily analytics campaign tagging. They are not a replacement for click ID in an advertising system.
- Referrer. It can change or disappear during navigation, redirects, iframes, or external systems.
6. Not Knowing Consent Ratios and Real Numbers
Without knowing the consent ratio, you do not know how distorted the data is. It is not enough to know that GA4 shows 100 orders. You need to know how many orders the e-shop sees, how many orders advertising systems see, and how many users gave consent for analytics or marketing at all.
Good reporting should separate three layers: data from advertising systems, data from analytics, and backend reality. Backend reality is an order in the e-shop, a lead in the CRM, a phone call, a booking, or a paid invoice. The cookie banner affects the first two layers, but business reality also exists outside it.
Cookie Banner Audit: Technical Checklist
- Clear cookies/localStorage and test a new user in GTM Preview.
- Verify that consent default is created on Consent Initialization before all measurement tags.
- Verify that consent update is created immediately after clicking the banner and on the same page.
- Check that after rejection, Meta/TikTok/LinkedIn/Hotjar/Clarity do not run unless there is corresponding consent.
- Check that Google tags have a clearly chosen basic or advanced mode and that their behavior matches the decision.
- Verify preservation of GCLID/WBRAID/GBRAID, FBCLID, li_fat_id, and UTM parameters across internal redirects.
- Check that no measurement scripts are hardcoded outside GTM or CMP logic.
- Verify that YouTube/Instagram/maps and other embeds are not loaded before the corresponding consent.
- Find a button or link to change the decision in the footer or privacy policy.
- Measure consent ratio and compare GA4/Ads data with backend reality.
FAQ
Frequently Asked Questions
Next Article
Consent Mode v2 GTM Cookiebot
How to set up Consent Mode v2 in GTM with Cookiebot or a custom cookie banner
You can set up Consent Mode v2 in GTM in two main ways. The first is through a CMP with a ready-made GTM template or native integration.
Looking for someone who can take this off your plate?
Need to find out whether your cookie banner is burning campaign data? We will audit your CMP, GTM, Consent Mode, tags, click IDs, and consent ratio. We will show the specific places where you lose measurement, not just the generic recommendation to "set cookies correctly".