- Server-side tracking is not a way around the GDPR: it changes the route data takes, not whether you may collect and send it.
- Reading or writing cookies in the browser needs consent under the ePrivacy rules unless it is strictly necessary, and every use of personal data needs a legal basis under the GDPR.
- What server-side tracking does help with is control: one place for consent logic, fewer fields, hashing, deletion and a log of what was sent.
- A GDPR-friendly setup blocks non-essential tags until consent, fires them the moment consent is given, and sends Google tags their consent state.
- Be wary of any tool that promises consent-free tracking, and check exactly what it sends for a visitor who declined.
Server-side tracking is not GDPR compliant or non-compliant by itself. It is a way to deliver data: from your server instead of the visitor's browser. Whether a setup complies depends on what it collects and sends, and on the legal basis for each step. Cookies and other device access need consent under the ePrivacy rules unless they are strictly necessary, and every use of personal data, such as a hashed email sent to an ad platform, needs a legal basis under the GDPR, whichever route it takes.
So server-side tracking does not let you skip consent. It does give you better control over what leaves your store. This guide explains the myth, what server-side tracking can and cannot do under the GDPR, how a GDPR-friendly setup handles Google Tag Manager, Google Analytics, Google Ads and the Meta pixel, and how ROASaurus draws the line.
Can server-side tracking solve GDPR challenges?
It solves technical problems, not legal ones. Browser pixels lose events to ad blockers, short cookie lifetimes in Safari and Firefox, and checkouts where third-party scripts cannot run. Sending purchases from your server fixes much of that, because the order data comes from your store's own records. Our guide to what server-side tracking is covers the mechanics.
The legal questions stay the same. Did the visitor agree to cookies that are not strictly necessary? Is there a legal basis for sending their order details to Meta or Google? Is the processor bound by a contract? Moving the request from the browser to a server answers none of these.
The myth: server-side tracking bypasses the GDPR
The idea goes like this: the browser never talks to Meta or Google, so no third-party cookie is set, so no consent is needed. It fails on three points.
- The browser step is still there. Most setups read a click id from the landing URL and store it in a first-party cookie, so it can be attached to the order later. Storing and reading that cookie is device access under Article 5(3) of the ePrivacy Directive. Being first-party does not make it strictly necessary.
- Personal data is personal data. An email, a phone number, an IP address or a click id tied to an order is personal data under the GDPR. Hashing it does not make it anonymous, because the platform hashes its own users' data to find the match.
- The recipient is the same. Whether Meta receives the purchase from a pixel or from your server, Meta receives it. Your privacy notice, your legal basis and your contracts must cover that.
A related myth is that the GDPR always requires consent. It does not: consent is one of six legal bases, next to contract, legal obligation, vital interests, public task and legitimate interests. Cookies for advertising do need consent under the ePrivacy rules. For server-to-server events, some stores rely on legitimate interests and others on consent. That choice belongs with your advisor, not with a tracking vendor.
What server-side tracking can do under the GDPR
Used well, server-side tracking makes a compliant setup easier to run.
| What it gives you | Why it helps with the GDPR |
|---|---|
| One place for consent logic | The server can check the visitor's choice once and apply it to every destination, instead of trusting each pixel to do it. |
| Control over the fields | You decide which fields each platform gets. Data minimization (Article 5(1)(c)) asks you to send what the purpose needs and no more. |
| Hashing before sending | Emails, phones and addresses can be normalized and hashed with SHA-256 on your side, so the raw values never travel. |
| A log of what was sent | You can show which event went where, when and with what result. That helps with accountability (Article 5(2)). |
| Deletion requests | Data held in your own system can be found and deleted when a customer asks (Article 17). |
| Reliable data for consenting visitors | Visitors who agreed are measured fully, even when an ad blocker stops a pixel. |
How ROASaurus handles GDPR-friendly server-side tracking
ROASaurus has a consent setting per store under Settings › Store. With Respect visitor consent, the default, it reads the visitor's choice from Shopify's Customer Privacy API or from your consent tool (OneTrust, Cookiebot, Usercentrics, Didomi, CookieYes, IAB TCF banners, Google Consent Mode and others). For a visitor who declined:
The paid order of that visitor is still sent server-side to Meta, TikTok, Snapchat, Pinterest, Reddit, X, Microsoft Advertising and Taboola, with the customer details from the order hashed with SHA-256 and without a click id (Microsoft gets it flagged as consent denied). Google Ads gets it flagged as consent denied, without customer details. The other destinations get nothing. Whether those purchase events may be sent for visitors who declined is a legal question; if your advice says they need prior consent too, contact ROASaurus before you turn on server-side purchases.
| Consent mode | What it does |
|---|---|
| Respect visitor consent (default) | Checks the visitor's marketing consent before it tracks them, as described above. |
| Strict | Nothing is sent and nothing on the device is read or written until the visitor consents; the server drops browser events without explicit consent. |
| By region | Visitors whose browser time zone is in the EU, the EEA, the UK or Switzerland are handled as with Respect; others are tracked unless they decline or send Global Privacy Control. |
| Always track | For stores that sell only where consent is not required. |
Other parts of the setup support the rest of the GDPR: browser fingerprinting is off unless the store turns it on, and then runs only with consent; owners choose how long raw events and visitor data are kept, from 30 days to 2 years; data is stored in Amsterdam; there is a data processing agreement with the sub-processors listed; and Shopify's customer redaction and data request webhooks are handled. Data quality › Consent shows the consent rate and the orders and revenue by consent state, so the effect of the banner on your ad data is visible. The details are on the consent help page.
What to watch out for in other tools
Whatever tool you use, ask the same questions. These are the warning signs.
- "GDPR-safe by default" or "no consent needed" claims
- No answer to "what do you send for a visitor who declined?"
- The same payload whether or not the visitor consented
- Fingerprinting or device ids without consent
- No data processing agreement or sub-processor list
- Dashboards that hide missing or blocked events
- A written description of each consent state
- A list of fields sent per destination
- Hashing on your side before sending
- A delivery log you can check per event
- A DPA, data location and retention settings
- A way to handle access and deletion requests
The most useful question is the first one in the right column. A vendor that can tell you exactly what happens for each consent state lets you and your advisor decide. A vendor that answers "it's compliant" leaves you holding the risk.
The ideal GDPR setup: key points
A setup that respects the rules and keeps the tracking you are allowed to do looks like this.
- Scan and categorize every cookie and script
Strictly necessary, preferences, statistics and marketing. Apps and theme edits add trackers over time, so scan again after changes.
- Block everything non-essential until consent
Marketing pixels, analytics where your law requires it, heatmaps and chat widgets that set cookies.
- Fire the tags the moment consent is given
On the same page, not on the next one. Otherwise the landing page with its click id and UTMs is lost for the visitor who just agreed.
- Tell Google tags the consent state
Use Consent Mode v2 so Google Analytics and Google Ads follow the choice.
- Keep server-side events in line
Decide with your advisor what the server sends for visitors who declined, and configure your tool to match.
- Document it
Your privacy notice names each recipient; your records show how consent was collected; your contracts cover each processor.
Google Tag Manager and the GDPR
Google Tag Manager is a container that loads other tags. Loading the container itself does not have to set marketing cookies; what matters is which tags it fires and when. A common mistake is the opposite extreme: a consent app that blocks the whole container, so even consented visitors are not measured, or a consent app that misses tags added outside it.
- Set the default consent state on the Consent Initialization trigger, before any other tag.
- Update it from your banner as soon as the visitor answers, through the data layer or the CMP's template.
- Rely on the built-in consent checks of Google tags, and add consent checks under Advanced › Consent Settings for tags that have none, such as third-party pixels.
- Check that the same tag is not also hard-coded in the theme or added by an app, where it ignores Tag Manager's checks.
Google Analytics and the GDPR
Google Analytics 4 uses cookies, so it falls under the ePrivacy rules in the EU. With Consent Mode, analytics_storage decides whether GA4 may use its cookies. With it denied, GA4 does not write or read its cookies; in advanced Consent Mode it sends measurements without cookies, which Google uses for modeling. Two checks are worth doing:
- Find every GA4 integration. A store can send data to GA4 from a sales channel app, a hard-coded tag and Tag Manager at the same time. A consent app may block one and miss the others.
- Look at GA4's consent settings. Under Admin › Data collection and modification › Consent settings, GA4 shows per data stream whether it receives the consent signals it needs.
Server-side GA4 events, sent through the Measurement Protocol, should carry the consent state too. Our guide to GA4 server-side tracking on Shopify covers the setup.
Google Ads conversion tracking and the GDPR
Google asks advertisers not just to block its tags, but to tell them the visitor's choice. With ad_storage denied, Google tags do not write or read advertising cookies. With ad_user_data denied, user data such as the hashed email of enhanced conversions is not used for advertising. With ad_personalization denied, the visitor is not added to remarketing lists. For visitors in the EEA, Google requires these signals to keep using measurement, personalization and remarketing. Our guide to Consent Mode v2 and the GDPR explains the signals and the Shopify setup.
The Meta pixel and the GDPR
The Meta pixel sets its own cookies, such as _fbp, and sends browsing events to Meta, so it needs marketing consent in the EU. The safe pattern is to load the pixel only after the visitor accepts marketing cookies. Meta's Conversions API sends events from your server; for a visitor who consented it restores the events a blocked pixel misses. For a visitor who declined, sending a purchase through the Conversions API is the legal question discussed above. Our guide to the Meta Conversions API covers the technical side, and first-party tracking on Shopify explains why a first-party cookie still needs consent.
Final recommendation: no loophole, but smart tracking
The GDPR does not prevent tracking. It asks you to collect consent where it is required, to have a legal basis for each use of personal data, to send no more than you need, and to be able to show all of that. Server-side tracking fits this well when it follows the visitor's choice and records what it sends. It fits badly when it is sold as a way to avoid asking.
A practical order: get a banner that works (see raising cookie banner acceptance without dark patterns), connect it to every tag, choose your consent mode with your advisor, and test both answers in a private window. Add the test to your BFCM tracking checklist, and check that tools such as Klaviyo follow the same choice, as described in Klaviyo tracking on Shopify. The consent mode glossary entry and cookieless tracking cover the related terms.
Sources
- EUR-Lex: Regulation (EU) 2016/679 (GDPR)
- EUR-Lex: Directive 2002/58/EC on privacy and electronic communications
- Your Europe: Online privacy, how to use cookies on your website
- Google for Developers: Consent mode overview
- Google Analytics Help: Verify and update consent settings in Google Analytics
- Shopify Dev: Customer Privacy API