Server Side Tracking GDPR: When Consent Is Required
CTO, lead-metrics.com
Server side tracking is neither automatically allowed nor banned under the GDPR. The server route changes where data flows, not whether you need consent. Two questions decide it: if your setup stores something on the device or reads from it, the ePrivacy rules generally require consent. If you process personal data, you also need a legal basis under Art. 6 GDPR.
Anyone hoping to bypass the cookie banner with a server fails on the first question. Anyone who only sends CRM data to ad platforms is more likely to fail on the second. This article sorts server side tracking GDPR questions by data type. As of November 2026, not legal advice.
Key takeaways
- Two checks, not one: the ePrivacy rules cover access to the device, Art. 6 GDPR covers processing of personal data. Either can require consent.
- The server does not replace the banner: a cookie set by the server still sits in the browser. A script that reads device properties is an access too.
- Hashing does not anonymise: hashed email addresses remain personal data.
- The gain lies elsewhere: fewer fields, no IP forwarding, an EU location and one place where you enforce the consent signal.
- Server events from your CRM need no cookie consent, but they do need a legal basis and a decision on which leads go to which platform.
Server side tracking GDPR: which data needs what?
The table shows how the two checks apply to typical data types. It does not replace an assessment of your own setup.
| What flows | Device access (ePrivacy, in Germany Β§ 25 TDDDG) | Art. 6 GDPR (processing) | Consent needed? |
|---|---|---|---|
| Cookie, local storage or device ID is set or read, including a Set-Cookie header from the server | Applies: storing and access only with consent | Also applies once the identifier is personal | Yes, unless setting it is strictly necessary for a service the user explicitly requested |
| Script reads device properties (screen size, fonts) and sends them to the server | Applies: active reading counts as access (DSK para. 24) | Also applies if this creates a personal reference | Yes, for advertising and analytics purposes as a rule |
| IP address, user agent, URL that arrive at the server with every request | To be checked case by case, the focus here is Art. 6 | Applies: IP addresses are online identifiers (recital 30) | Depends on the purpose. Security and operation may rest on Art. 6(1)(f), passing data to ad platforms needs its own assessment |
| Contact details that visitors submitted themselves, hashed and sent to a platform | Does not apply to a send from the CRM, because no device is involved | Applies: hashing is pseudonymisation, the personal reference stays | A legal basis is required. Whether consent or a balancing of interests carries it is a case-by-case question |
| Figures without personal reference (page views per day, aggregated) | Only if something is stored on or read from the device for it | Does not apply without personal reference | No, as long as both hold |
Two rows are often misread. Row one: a server cookie is still a cookie. Row four: no cookie does not mean everything is free, because Art. 6 still applies.
Two checks instead of one
Check 1: device access. The ePrivacy Directive (Directive 2002/58/EC) requires consent before information is stored on a user's device or accessed there, except where strictly necessary for a service the user asked for. Germany implements this in Β§ 25 TDDDG. The German data protection authorities (DSK) read it in a technology-neutral way. Every method that stores or reads information is covered, and it does not matter whether the information is personal (Orientierungshilfe Digitale Dienste, version 1.2, November 2024, paras. 21 and 26, in German).
Check 2: Art. 6 GDPR. As soon as personal data is processed, every processing needs a legal basis. The DSK states that the legal bases in Art. 6(1) rank equally, but that point (f) is not a catch-all (paras. 100 and 107). Whether a balancing of interests can carry an advertising setup or only consent can, you clarify with your data protection advisor, not in marketing.
The two checks are linked. If consent for device access is missing or invalid, the DSK takes the view that this carries over to the processing that follows (para. 98). A clean server-side forward does not cure an access that was already unlawful in the browser. The GDPR itself is available in full text on EUR-Lex.
Why the server route does not replace the cookie banner
Three reasons, each with a concrete flow.
- The server sets the cookie, the browser stores it. A server container on
track.your-domain.comanswers the first request with a Set-Cookie header that carries a client ID. It is stored in the visitor's browser, which is the terminal equipment. Google itself describes that in basic mode without consent no analytics cookies are set or read, neither on the client nor on the server (Google: consent mode with server-side Tag Manager). - The script reads, the server receives. If a script in the browser reads screen resolution, language and fonts and sends them to your server, the DSK counts that as access to information on the device (para. 24). That the data then lands on a server does not change the assessment.
- Advertising is not a basic service. The exemption for strictly necessary operations covers what a visitor explicitly asks for, such as error-free delivery of the page. The DSK, by contrast, calls the profitability of ads as a rule a primary interest of the operator (para. 90).
That leaves the idea of running the server on your own domain so that nobody recognises the request as tracking. This changes visibility, not the obligation: purpose and access decide, not the hostname.
For how the browser and server routes differ technically, see client-side vs. server-side tracking. What Google does with your conversions when consent is denied is covered in Consent Mode v2 in lead generation. For what stays measurable without cookies, the lead tracking feature shows how sessions behave with and without consent.
Server events from your CRM: what happens without a browser
In lead generation, the valuable part of the journey does not happen in the browser. A person fills in a form in March, declines marketing cookies in the banner and becomes a customer in May.
Your CRM marks the deal as won, and a server could now send a "deal won" event with a hashed email address and order value to Meta Ads or Google. Which pipeline stages work as conversions is a separate question.
The device-access rule does not apply to this send, because no device is involved. Art. 6 GDPR applies in full, because the hashed email address stays personal.
Hashing is pseudonymisation under Art. 4(5) GDPR. Passing data on to third parties also needs a legal basis under Art. 6(1), which the DSK says explicitly for third-party content (para. 101). And your privacy notice must state which recipients you pass such data to (Art. 13 GDPR).
For this lead, that means the refusal in the banner is a signal you have to weigh before the event goes out. Whether a consent given in the form is enough as a basis is a legal question, not a tool setting.
LeadMetrics sends leads, deals and payments through the Conversion API to Meta, Google Ads, TikTok and LinkedIn, with SHA-256 hashed contact details. How to set this up for Meta is in the guide to the Meta Conversions API setup, and for LinkedIn in the LinkedIn Conversions API setup.
How to set it up is covered in the Conversion API CRM setup guide.
When pixel and server run in parallel, the Conversion API comparison shows how the platforms differ, and for Google there is the import of offline conversions as well as the Data Manager API for enhanced conversions. LeadMetrics itself does not check a lead's consent status. You decide per project which events go to which platform, and you decide beforehand for which leads you can take responsibility.
What server side tracking really gives you for privacy
The gain lies in control over what leaves the server. Four levers are real:
- Fewer fields: you decide which parameters go to the platform. That implements the data minimisation principle of Art. 5(1)(c) GDPR in technical terms.
- No IP forwarding without reason: the IP address arrives at your server with every request. You decide what part of it goes on to platforms.
- One place for the consent signal: at the server you can define that tags fire only once consent exists. For Google, the documentation says it is enough to set up consent mode in the web container. The consent parameters travel with the request to the server container, and the Google tags there follow them.
- Location and contract: if the server runs at a provider, you need a data processing agreement under Art. 28 GDPR. If the server is outside the EU, Art. 44 ff. GDPR on third-country transfers apply.
Checklist: setting up server side tracking GDPR-compliant
List purposes and recipients
Write down which data goes to which platform and why: measurement, optimisation, reporting. Without this list you cannot assign a legal basis.
Run both checks per data type
Take the table above and enter your setup: is something stored on or read from the device? Is the data personal? That shows where consent is needed.
Capture consent and pass it on
Your consent management has to store the decision in the browser and forward it to the server. The server fires tags only when the signal fits.
Configure the server to pass on less
Remove or truncate the IP address, drop parameters you do not need, set cookies only after consent.
Check contracts, location and privacy notice
A data processing agreement under Art. 28 GDPR with every provider, server location under Art. 44 ff. GDPR, and a privacy notice that names recipients and purposes.
Assign CRM events deliberately
Send only events to platforms for which you have a legal basis. In LeadMetrics you assign per project which event goes to which platform and leave out the rest.
Running server side tracking GDPR-compliant starts with deciding which data you need for what, then asking the two questions per data type. The server is where you enforce the answer, not a reason to skip the question.
Ready for better tracking?
Ready for better tracking?
Discover how LeadMetrics helps you understand the true ROI of your marketing channels.
Try free for 10 daysTerms in this article
Related guides
How to Send Sales Pipeline Stages as Conversions to Meta and Google
Which pipeline stages to send to Meta and Google Ads as conversions, how to map them to events, assign values, meet upload deadlines and avoid duplicates.
Read guideHow to Set Up a Conversion API with Your CRM: Send CRM Events to Meta, Google, TikTok and LinkedIn
How to send leads, deal stages and closed deals from HubSpot or Close to Meta, Google Ads, TikTok and LinkedIn through their conversion APIs: event mapping, matching data, deduplication, upload windows and values.
Read guide