Server-Side Tracking for Online Shops: Reliable Data Despite the Cookie Banner
Why shops without server-side tracking measure revenue wrongly and steer campaigns wrongly. What it is, what consent means and how implementation works.
If Meta reports 120 purchases, Google 90 and the shop counts 100 orders, which number is right? For the till, the shop's. For steering the campaigns, however, what matters is that Meta and Google learn as completely as possible which click led to which purchase. Server-side tracking helps with this, without bypassing consent. This article is part of our guide E-commerce marketing.
In short
- Server-side tracking transmits events such as purchases from the server to Meta, Google and analytics, not only from the browser.
- It closes gaps caused by blockers, browser protection features and aborted page loads.
- It does not replace consent. Anyone who does not consent is not tracked personally on the server side either.
- For Meta, the interface is called the Conversions API; for Google, there are server-side tags and Enhanced Conversions.
- Control is mandatory: regularly match platform figures against shop orders.
What server-side tracking is
With classic browser tracking, a script runs in the visitor's browser, for example the Meta pixel, and reports events directly to the platform. With server-side tracking, a server additionally or instead reports the same event. That can be your shop system itself, an official app or your own tracking server, for example a server-side Google Tag Manager.
| Browser tracking | Server-side tracking | |
|---|---|---|
| Who sends | Script in the browser | Shop or tracking server |
| Vulnerable to blockers | Yes | Less |
| Control over data sent | Low, scripts collect a lot | High, you define the fields |
| Effort | Low | Medium, one-off setup and maintenance |
| Consent needed | Yes | Yes, same rules |
In practice, both usually run in parallel. Meta recommends pixel and Conversions API together and removes duplicate events via a shared event ID.
Why browser tracking has gaps
Browser tracking loses events for several reasons:
- Ad blockers suppress tracking scripts completely.
- Browser protection features limit the lifetime of cookies or block third-party scripts.
- Aborted page loads: if someone closes the confirmation page before the script loads, the purchase is missing.
- Payment providers with redirects: if buyers do not return to the confirmation page, the event is missing.
- Rejected consent: this is intentional and remains a gap, even with server-side tracking.
The consequence is doubly expensive. First, platform ROAS looks worse than it is. Second, the Meta and Google algorithms learn with fewer signals and find buyers less well. Server-side tracking closes the technical gaps 1 to 4, not the legal gap 5.
Consent remains mandatory
Whether you are allowed to track does not depend on the transmission route, but on what you do. As of November 2026, not legal advice:
- Access to the device: cookies and comparable storage that are not technically necessary require consent in Austria under § 165(3) of the Telecommunications Act 2021 (the national implementation of the EU ePrivacy rules). That applies even if the server forwards the data later.
- Personal data: passing data to Meta or Google for advertising purposes requires a legal basis under the GDPR, usually consent.
- Information: the privacy policy must state which data goes to whom.
- Data minimisation: only send what you need. Email addresses and phone numbers are hashed before transmission, meaning converted into a check value that cannot be directly reversed. They remain personal data all the same, so you still need consent.
Consent Mode is the technical bridge between banner and Google tags. Your consent banner reports whether someone has consented to analytics and advertising cookies, and the Google tags adapt their behaviour. For advertisers with audiences in the EEA, the current version is a prerequisite for certain personalisation and measurement features in Google Ads. Check the current conditions in Google's help pages. The details of the setup are in the article Consent Mode v2.
Our principle at ad.boutique: consent before any tracking, on our own website as with clients. What this looks like in Switzerland under the revFADP is described in the article Marketing tracking in Switzerland.
Meta Conversions API and Google
Meta Conversions API
The Conversions API is the interface through which your server sends events to Meta. Important for quality:
- Event ID identical in pixel and server, so Meta removes duplicates.
- Hashed customer data sent along, as far as consented, so Meta can attribute a person's purchase.
- Purchase with value and currency, so that value optimisation and ROAS work.
- Check Event Match Quality in Events Manager; Meta shows there how well events are matched.
At Google, there are two routes that are often combined: server-side tagging via your own Tag Manager server and Enhanced Conversions, in which hashed customer data improves the attribution of purchases. On top of that comes the product feed in Merchant Center, which is the basis for Shopping and Performance Max.
Leads instead of purchases
For lead businesses such as real estate, recruiting or SaaS, the next step is to send back not just the form but the quality of the lead: qualified, appointment, deal. This is described in the article Sending lead data back to Meta and Google.
Implementation in steps
This is how a setup runs with us:
- Inventory: which tags, pixels and apps are running? What does the shop count, what do Meta, Google and analytics count?
- Event plan: which events do we really need? Usually product view, add to basket, checkout start, purchase. Consistent names.
- Check consent: banner, Consent Mode and the logic of which tags fire when.
- Set up the server channel: official shop app, shop integration or your own tracking server, depending on system and requirements.
- Resolve duplicates: shared event IDs for browser and server.
- Test: test purchases, event preview, Event Match Quality.
- Set up matching: platform purchases against shop orders, weekly in the dashboard.
For Shopify, Shopware or WooCommerce, there are official Meta and Google integrations that already include server-side transmission. Whether they are enough or your own tracking server makes sense is decided by the matching in the last step.
Control: shop revenue against platform figures
Tracking is only finished once the numbers have been checked against each other. The simple control:
| Comparison | What you expect | Warning sign |
|---|---|---|
| Purchases in Meta against shop orders | Meta slightly below or above, depending on attribution | Strong deviation over weeks |
| Purchases in Google Ads against the shop | Similar, its own attribution | Sudden drop after an update |
| Revenue in analytics against the shop | Slightly below because of rejected consent | Purchases counted twice |
| Sum of all platforms against the shop | Usually above because of double attribution | Celebrated as success |
The most important number is sometimes the smallest. What a platform reports and what actually arrives often differ. We clarify such a difference before optimising. The same applies to shops: only when platform and till match is every optimisation real.
An example from a project in another industry: at CONDA Capital, the CRM, GA4 and the ad accounts did not count consistently at first. Only tracking through to the investment, aligned with the CRM, made it possible to optimise the campaigns for the actual conversion. How strong the creative lever is after that is shown in e-commerce by the manadental case.
Typical setup mistakes
We see these mistakes regularly in audits:
- Duplicate purchases: pixel and server send the same purchase without a shared event ID. Meta counts twice, and ROAS looks twice as good.
- The server sends without consent: the browser respects the refusal, but the server sends anyway. This is the legally riskiest mistake.
- No value with the purchase: events without revenue and currency make value optimisation impossible.
- Test events in live data: test purchases are not marked as tests and distort the first weeks.
- Too much data: fields are sent that nobody needs. Data minimisation is mandatory, not optional.
- No monitoring: after a shop update, an event drops out and nobody notices for weeks.
Against the last point, only the weekly matching from the previous section helps.
What server-side tracking cannot do
It does not bring back data from people who have rejected tracking, and it is not supposed to. It does not make wrong events right: if you send a purchase twice, you get it twice. And it does not replace an honest look at blended ROAS, see Increasing ROAS without more budget.
How we work at ad.boutique
At ad.boutique in Vienna and Zurich, tracking is the first building block of every engagement, before the first campaign. We set up consent, server-side tracking and feeds and show shop revenue and platform figures side by side in the live dashboard in the Agency Hub. More on this on the page Live dashboard with lead CRM, on the process on the page How we work and for shops on E-commerce marketing agency.
Frequently asked questions
What is server-side tracking?
Server-side tracking is a method in which events such as purchases are transmitted to advertising platforms and analytics tools not only from the browser but from a server. As a result, events arrive even when browser scripts are blocked or restricted.
Does server-side tracking replace the cookie banner?
No, server-side tracking does not replace the cookie banner. The obligation to obtain consent does not depend on whether data flows via the browser or the server, but on what happens to it. Tracking personal data without consent is not lawful on the server side either.
Is server-side tracking GDPR-compliant?
Server-side tracking can be GDPR-compliant if consent, information, data minimisation and contracts are in order. It even offers more control, because you decide on the server which data goes to whom. But it is not a free pass; the legal basis stays the same.
What is Google Consent Mode?
Google Consent Mode is an interface through which your consent banner tells Google tags whether a person has consented to analytics and advertising cookies. The tags adapt their behaviour accordingly. For advertisers in the EEA, it is a prerequisite for using certain personalisation and measurement features of Google Ads.
Do I need server-side tracking for Shopify?
For Shopify, you do not necessarily need your own tracking server, because the official Meta and Google apps can already transmit events server-side. Whether that is enough is shown by matching purchases in Meta and Google against the orders in the shop backend.
Sources
- Meta for Developers: Conversions API
- Google Tag Platform: Consent Mode
- Google Tag Platform: server-side tagging with Google Tag Manager
- Google Ads Help: about enhanced conversions
- Austrian Telecommunications Act 2021 (TKG 2021), section 165, current version in the RIS (in German)
- Regulation (EU) 2016/679 (GDPR), EUR-Lex
About the author

Martin Haslinger
E-commerce and Conversion Optimisation
Looks after e-commerce and conversion optimisation at ad.boutique: shops, funnels and tests that get more out of the traffic.
Your shop, 14 points, 5 working days.
Among other things, we check whether shop, Meta and Google count the same orders and whether consent is implemented cleanly. Plus load time, product pages and checkout. Results by email, reviewed by our team.
Step 1 of 7
A few questions about your setup, your contact details only at the end. You will receive the detailed report by email, usually within 5 working days.
Consent Mode v2: signals, modelling and what you need to check
Consent Mode v2 explained: the four consent signals, basic or advanced implementation, when Google models conversions and how to check your setup.
Martin Haslinger· 6 minFeeding leads back to Meta and Google: Conversions API and offline import
Why Meta and Google should know which leads became customers, and how: Meta Conversions API, Google offline conversions, CRM status and data protection.
Florian Hörmann· 7 minE-Commerce Marketing Strategy: A Guide to Profitable Online Shop Growth
E-commerce marketing that pays off: tracking, channels, creatives, conversion rate and seasonal peaks. With real figures from consumer brands.
Martin Haslinger· 13 min
Want this for your project?
30 minutes, one point of contact. Afterwards you will know whether a POC makes sense.