Server Side Tracking GDPR: When Consent Is Required

Daniel Kalcher

CTO, lead-metrics.com

10 min read

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 flowsDevice 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 serverApplies: storing and access only with consentAlso applies once the identifier is personalYes, 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 serverApplies: active reading counts as access (DSK para. 24)Also applies if this creates a personal referenceYes, for advertising and analytics purposes as a rule
IP address, user agent, URL that arrive at the server with every requestTo be checked case by case, the focus here is Art. 6Applies: 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 platformDoes not apply to a send from the CRM, because no device is involvedApplies: hashing is pseudonymisation, the personal reference staysA 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 itDoes not apply without personal referenceNo, 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.

Three reasons, each with a concrete flow.

  1. The server sets the cookie, the browser stores it. A server container on track.your-domain.com answers 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).
  2. 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.
  3. 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

  1. 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.

  2. 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.

  3. 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.

  4. Configure the server to pass on less

    Remove or truncate the IP address, drop parameters you do not need, set cookies only after consent.

  5. 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.

  6. 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.

πŸ’‘
This article classifies legal provisions and statements by supervisory authorities. It is not legal advice. How your setup is assessed in detail is a matter for your data protection officer or law firm.

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?

Try LeadMetrics free for 10 days and see which campaigns actually drive revenue.
Try free for 10 days

Ready for better tracking?

Discover how LeadMetrics helps you understand the true ROI of your marketing channels.

Try free for 10 days