Cookie Consent and Analytics Under GDPR: Measuring Within the Rules
If you advertise in Europe, you have probably felt the squeeze. Privacy rules require consent before most tracking happens, many visitors say no, and your analytics show fewer conversions than your sales team sees. The temptation is either to ignore the rules or to give up on measurement. Neither is necessary.
This guide explains how the pieces fit together and how a small or mid-sized business can build a setup that respects visitors’ choices and still produces data you can act on. It is general guidance, not legal advice: for your specific situation, talk to your data protection advisor.
The rules in plain language
Two sets of rules matter most for website tracking in Europe.
- The ePrivacy rules (implemented in each EU country’s national law, and in the UK through PECR) say that storing or reading information on a visitor’s device, such as cookies or similar identifiers, requires consent unless it is strictly necessary for the service the visitor asked for. Analytics and advertising cookies are generally not strictly necessary.
- The GDPR sets the standard for that consent: freely given, specific, informed and unambiguous. It also governs what you do with personal data afterwards, including transfers outside the EU and how long you keep it.
In practice, regulators across Europe expect a few things from a cookie banner: rejecting must be as easy as accepting, no tracking may run before a choice is made, pre-ticked boxes do not count, and visitors must be able to change their mind later.
Step 1: Audit what your site actually loads
Many sites have collected tags for years: an old pixel from a past campaign, a chat widget, embedded videos, a heatmap tool someone tested once. Start with an inventory.
- List every script, pixel and embed on the site, and who owns each one.
- Note which ones set cookies or send data to third parties.
- Remove anything nobody uses. Fewer tags mean less risk and a faster site.
- Classify the rest: strictly necessary, analytics, advertising, functional.
Step 2: Use a proper consent platform
A consent management platform (CMP) shows the banner, records each visitor’s choice and tells your tags what they are allowed to do. Choose one that supports the IAB Transparency and Consent Framework if you run programmatic ads, and that is certified for Google’s requirements if you advertise with Google in the EEA.
Configure it so that the “Reject all” button sits on the first layer next to “Accept all”, the categories match your audit, and consent logs are kept. Test it in a private browser window: before you click anything, no analytics or ad requests should leave the page.
Step 3: Turn on Google Consent Mode
Google Consent Mode passes the visitor’s choice to Google tags. Since March 2024, Google has required advertisers who use its ad products for users in the EEA to send consent signals, and Consent Mode is the standard way to do it.
There are two variants:
- Basic: Google tags do not load at all until the visitor consents.
- Advanced: tags load in a restricted state and, when consent is denied, send cookieless pings without identifiers. Google uses these to model conversions it can no longer observe directly.
Which variant is right depends on your risk appetite and your advisor’s view. Either way, it lets Google Analytics 4 and Google Ads fill some of the gap that consent creates, rather than simply losing that data.
Step 4: Move tagging closer to your own server
Server-side tagging routes measurement through a server you control instead of sending data directly from the visitor’s browser to many third parties. It does not remove the need for consent. What it gives you is control: you decide which fields leave your infrastructure, you can strip or hash data before it is shared, and page speed often improves because the browser does less work.
The same idea applies to advertising platforms. Meta’s Conversions API, Google’s enhanced conversions and similar tools from TikTok and LinkedIn send conversion events from your server, so they still depend on a valid legal basis and on respecting the visitor’s choice.
Step 5: Build first-party data you own
The most durable answer to shrinking third-party data is your own. First-party data is information people give you directly, with their knowledge: account sign-ups, newsletter subscriptions, quote requests, purchases and preferences.
- Offer a real reason to sign up: useful content, order tracking, faster checkout, member pricing.
- Connect your website forms, online store and CRM, so a lead can be followed from first visit to closed deal.
- Import offline conversions, such as signed contracts or B2B orders, back into Google Ads and Meta so campaigns optimize toward real revenue rather than form fills.
- Keep consent records alongside the data, and respect unsubscribe requests everywhere.
Step 6: Measure at the right level
With consent in place, you will never again see every single conversion tied to a single click. Accept that, and change how you judge results.
- Compare totals: orders and leads in your CRM or store versus what the ad platforms report.
- Look at trends over weeks rather than daily swings.
- Run simple tests, such as pausing a channel in one region for a few weeks, to see what it really contributes.
- Keep one source of truth for revenue, usually your store or ERP, and treat platform numbers as directional.
A quick checklist
- Tag inventory done and unused tags removed
- CMP installed with equal accept and reject options
- No tracking before consent, verified in a clean browser
- Google Consent Mode configured and tested
- Privacy and cookie policies match what the site really does
- Server-side or API-based conversion tracking where it makes sense
- CRM and offline conversions connected to your ad accounts
- Reporting based on business outcomes, not only platform dashboards
Getting it right without slowing down
A compliant setup is not a one-off project: tags, platforms and guidance change, so review it at least once a year and whenever you add a new tool. Done well, it gives you cleaner data, a faster website and more trust from the people you want to sell to.
Cactus builds websites and online stores and runs advertising for businesses across Europe, so we see both the technical and the marketing side of this every day. If you are not sure whether your consent and tracking setup is working, book a free 15-minute call. We will walk through it with you and point out the most important fixes.