Measurement and data, built by developers

GA4 server-side tracking
without data loss

Browser-based measurement sees less every year: because of cookie rejection and ad blockers, some conversions never even reach GA4. With server-side tracking, events pass through your own server first, so your ad accounts receive more accurate data.

sGTM on your own VPS·Consent Mode v2·Enhanced Conversions·Meta CAPI
Request a tracking audit→

What does
server-side measurement solve?

Three things. An event sent from the server replaces measurement that's blocked or interrupted in the browser, so the purchase is recorded even if Google's script doesn't run. A cookie served from your own subdomain lasts longer, so a returning visitor stays a returning visitor. And the Consent Mode v2 state carries through every point of the measurement chain.

Server-side tracking respects consent: if someone hasn't consented to measurement, their data doesn't pass on in an identifiable form. The gain comes from the data of consenting users arriving complete.

3–4 weeksfrom audit to going live
5%or less discrepancy between orders and GA4
Freetracking audit
Server-side Google Tag Manager: the web container's event reaches GA4 via the server container
Web container → server container → GA4

What does an implementation with us include?

Six items, fitted to your webshop's actual data model. On handover, you also receive an event map, a test report and the complete configuration in writing.

  • 01

    A collection point on your own infrastructure

    An sGTM container or our own measurement layer on your server, with your own subdomain and certificate.

  • 02

    GA4 e-commerce event chain

    Product list, add to basket, checkout steps and purchase, the entire chain connected.

  • 03

    Consent Mode v2

    Default state, updates and forwarding to the server, tied to the actual events of your cookie banner.

  • 04

    Enhanced Conversions

    More accurate Google Ads conversion tracking from your order data, pre-processed according to Google's requirements.

  • 05

    Meta Conversions API

    Events sent from the server for Facebook adverts, paired with the browser pixel without duplication.

  • 06

    Order-based conversion tracking

    In the case of cancellation, returns or later approval, we measure against the final order status.

What is server-side tracking?

The big webshops and businesses already know. Don't get left behind.

TemueMAGAlzaTelekomMediaMarktiPonBestByte

These webshops already use server-side tracking, which is why their adverts perform better. Because of new privacy rules, the iPhone and private browsers, traditional browser-based measurement no longer sees purchases well enough. Your adverts learn less, and costs rise.

Larger businesses rent a server from Google and set it up with big marketing agencies, which takes a long time and costs a lot. We also offer another way: our own direct server-side measurement without a separate tracking server, for WordPress, Magento and custom PHP sites too.

With your own hosting and a one-off cost, you can compete with the big players.

This is what the data's journey looks like
Visitor's browser YOUR SERVER measurement layer or sGTM container based on consent GA4 Analytics Google Ads Enhanced Conversions Meta CAPI Conversions API

The raw event stream stops at your server first. From there, you decide what goes on, and in what form.

There are two ways to do this:an sGTM container.your own measurement layer.

1. sGTM container on your own VPS

Google’s standard server-side Tag Manager container runs on your own Ubuntu VPS, on its own subdomain. A familiar GTM interface, plenty of ready-made templates, and easy to hand over to another developer.

  • Best forMultiple ad platformsWhen you need to connect several platforms, or it matters that anyone can take over the setup.
  • MaintenanceA separate container runsThe container needs updating and monitoring, which we provide as part of server management.
  • CostOne-off setup + serverOn your own server, the monthly cost doesn’t depend on request volume.

2. Custom-built measurement layer

Direct server-side tracking straight from your webshop’s code, with no separate tracking container. We build it for WordPress, Magento 2, our own WShop platform and custom PHP systems alike.

  • Best forTracking that grows with your webshopWhen you don’t need to serve a dozen external systems, just GA4, Google Ads and Meta.
  • AccuracyFinal order statusTracking follows what actually happens to the order: cancellations, returns, cash-on-delivery collection.
  • CostFewer moving partsThere’s no separate container, so running costs are lower.

A container running on a hosted service is billed monthly and grows with request volume, whereas with your own server, after the one-off setup, essentially only the server cost remains. The price of implementation depends on the number of events to track, the platform and the number of ad platforms to connect; after an assessment, we provide a written, fixed-price quote.

Why has this become so critical?

Big companies already know exactly what they're doing. It's no accident that their adverts are so effective: they use server-side tracking, so their campaigns learn and optimise based on real data.

Over the past while, some marketing agencies have also started using server-side tracking with a Google Tag server container. However, this typically only pays off for larger companies, since it requires a separate server, infrastructure and ongoing operation, which comes with a significant cost.

Our way

We've developed a direct, server-side injection solution that runs from your existing web server, whether it's WordPress, Magento or a custom PHP-based website. No separate tracking server, no extra infrastructure, yet the same data quality arrives.

We're among the first in Hungary to apply this technology. Currently, only a few development teams in the country have managed to develop and deploy server-side tracking that genuinely works in a live environment. This isn't a template solution or a plugin, but a system that requires real development expertise, one that few understand and even fewer use effectively.

The new GDPR and data protection regulations, private browsers, and the strict privacy of the iPhone and Safari have fundamentally changed the measurement landscape. Classic, browser-side tracking no longer sees a significant share of purchases today.

The consequences of this

No feedback Ad platforms don't receive the purchase signal, so they don't know which click drove the result.
Campaigns don't learn The algorithm optimises from incomplete data, so it increasingly targets the wrong audience.
Declining returns Fewer buyers, more expensive adverts, declining returns. The gap grows month by month.

Server-side tracking bridges this gap: the purchase still reaches the ad platforms even if the tracking code didn't run in the browser.

How does it work?

Understanding adverts in 2026

Tracking is usually based on a JavaScript code that, once loaded on the page, records visitor and buyer data. But not everyone likes being tracked. Unnecessary scripts slow the page down and spoil the browsing experience, so more and more people use ad blockers, private browsers or an iPhone. On these devices, tracking codes often don't load at all, or only load partially.

Picture the situation: a customer clicks the advert, places the order, but Google knows nothing about it. The system gets no feedback, so it can't learn and refine the target audience. The result is that the adverts get shown to more and more people who aren't actually interested in the product, while the cost just keeps rising.

Server-side tracking bridges this problem. Purchase data reaches the ad platforms directly from the server, regardless of the browser, ad blockers or the device.

Where the data gets lost
CLIENT-SIDE MEASUREMENT ad blockers, ITP, cookie rejection Purchase on the site GA4, Ads, Meta incomplete data SERVER-SIDE MEASUREMENT Purchase on the site Your server first-party, your own domain GA4, Ads, Meta complete data consenting visitors' data arrives complete
Faster website
→
Real data
→
More accurate learning
→
More effective adverts
→
Lower costs

How much does missing measurement cost you?

Set your own figures and see how much is at stake. The sliders are only an illustration; the actual shortfall is revealed by the measurement audit.

Your figures
203 000
€250€25,000
5%55%
What this means
This many purchases the ad account does not see each month 90 orders
This much ad spend optimises on incomplete data each month €900
The same over a year €10,800
What the ad account sees210 orders
What actually happened300 orders

This is an illustration, not a promise. The actual shortfall can only be established by measuring: the order count seen in GA4 has to be compared with the order data of the webshop itself. We do this free of charge in the measurement audit, before you decide.

How does the rollout work?

Five stages, from the measurement audit to supervised live operation. The stated timeframes apply to an average webshop; a custom platform or many integrations can take longer.

0101Audit

Measurement audit and event map

We go through what is being tracked now and what isn’t: your current GA4 setup, the cookie banner, the ad tags and the webshop’s data layer. This produces the event map: which event and which parameters belong to each user step. This document later also forms the basis of the acceptance test.

3–5 days · event map · data layer review
0202Server

Server environment and container

Installing the server-side container on your own VPS: your own subdomain, a certificate, resources sized for the load, monitoring and logging. If you choose a hosted service instead, an endpoint on your own subdomain is still set up here, because without it some of the benefits are lost.

2–4 days · own subdomain · certificate · monitoring
0303Integration

Connecting events and consent management

Connecting the GA4 e-commerce event chain, Enhanced Conversions and the Meta Conversions API, with deduplicated event IDs. Consent Mode v2 is built in at the same time: the default state, its updates and passing consent through to the server-side container. Most errors occur at this point, so this is where the work is most thorough.

1–2 weeks · e-commerce event chain · Meta CAPI · Consent Mode v2
0404Verification

Verification and comparison

Running in parallel with the old measurement, then comparing it with the webshop’s actual order data, the only meaningful reference. We check the discrepancy in order count, revenue and the breakdown by source, and keep tuning until the discrepancy stays explainable.

3–5 days · parallel running · order data
0505Operation

Handover and monitoring

At handover, you receive the event map, the test protocol and the container configuration in writing. After that comes monitoring: the container’s uptime, the rate of faulty events and the platforms’ API changes are kept under watch, because these change several times a year.

ongoing · uptime · error rate · API changes

Frequently asked questions about server-side tracking

23 questions in five topics, with honest answers, including when the answer is that it is not worth it yet.

Ask us a question

Basics and data loss

What is server-side tracking and how does it differ from browser-based measurement?

With traditional measurement, the visitor's browser sends data directly to Google and the other systems. Plenty of things can break this chain: ad blockers, browser protection, short-lived cookies, slow-loading scripts.

With server-side tracking, the browser only sends data to your own server, and from there it moves on, in a controlled form, to the measurement and advertising systems. This way less data is lost, and you decide which fields leave the system.

How much data is my webshop losing with its current measurement?

This can't be guessed in general, because it depends heavily on your audience, the device mix and the wording of your cookie banner. It's easy to establish, though: compare the order count and revenue shown in GA4 with the webshop's own order data for the same period. The gap is the real data loss. We work this out free of charge in the tracking audit, before you decide on anything.

What happens if a visitor uses an ad blocker?

Blockers use a blocklist to block typical measurement and advertising addresses, so the request from the browser simply never goes out. For Hungarian webshops this affects a sizeable share of visitors, and it's highest among technical and younger audiences.

When measurement is served from your own subdomain, the request goes to your domain, so it typically gets through. This isn't a way around the visitor's decision: if someone hasn't consented to tracking, their data still doesn't go anywhere.

Does a small webshop need server-side tracking?

In most cases, not straight away. If your webshop is at a few dozen orders a month and there's no meaningful ad spend, more accurate measurement won't bring in as much as it costs. The line is where measurement already drives ad spend decisions: if the algorithm learns from bad data, part of the ad spend is certainly wasted. In that case, the setup typically pays for itself quickly.

What is the difference between the old Google Analytics and GA4?

The old Google Analytics (Universal Analytics) thought in sessions and pageviews, and was shut down in summer 2023. GA4 is event-based: every interaction (scroll, add to cart, purchase) is a standalone event with parameters. This makes it more flexible, but setting it up needs more planning.

Server-side tracking builds on GA4's event model: it sends the same events, just through your own server. According to Keyword Planner, the term “google analytics” gets 8,100 searches a month in Hungary and “ga4” gets 480, so the topic clearly keeps a lot of webshop owners busy.

Privacy and compliance

Does server-side measurement bypass cookie consent?

No, and it shouldn't. Without consent, a user's data can't be transmitted in identifiable form, whether it travels from the browser or from a server. Anyone who promises otherwise is selling you risk. The advantage of the server-side approach is that consenting users' data arrives in full, and you decide which fields leave the system.

What is the difference between Consent Mode v2 and a cookie banner?

The cookie banner is the interface where the visitor makes their choice. Consent Mode is the mechanism that passes this choice on to Google's systems, so they can act on it. The two are often wired up so that the banner appears nicely, but the decision never actually gets through. In that case, the webshop is just as legally exposed, and loses data on top of it. During setup, we always tie the state change to the actual banner events.

Is Consent Mode v2 enough for GDPR compliance?

Not on its own. Consent Mode is a technical tool, not legal compliance. You also need a proper privacy notice, a genuine choice, a way to withdraw consent and a log of consents given. We handle and document the technical side; for the legal wording you need a solicitor, we don't give legal advice.

What happens to my existing GA4 data?

Nothing, your existing data stays as it is, and measurement keeps arriving in the same GA4 property. What changes is the completeness of the data, so the numbers typically go up after the switch. It's worth noting the switch date in your reports, otherwise it can look like new growth later on, when it's actually just measurement accuracy.

Technical implementation

Should I run this on my own server or on a hosted service?

For smaller traffic, a hosted service gets you started faster and needs less attention. For larger traffic, your own VPS is typically cheaper, because hosted solutions scale in price with request volume while a server doesn't. The other factor is data: on your own server the raw event stream stays with you, and you decide how much of it goes on to third parties. Since we already include server management as standard, going the own-server route doesn't mean an extra supplier.

Do I need my own subdomain? What does first-party serving mean?

Yes, the measurement endpoint runs on your own domain, typically on a subdomain, for example data.yourdomain.com, with its own certificate. This is first-party serving: as far as the browser is concerned, the request doesn't go to an external provider, but to the site's own system.

This has two benefits: cookies keep a longer lifetime, and blockers filter out the request less often. We take care of the DNS setup and the certificate.

What is deduplicated event tracking and why does it matter?

If the same purchase is sent from both the browser and the server, it can be counted twice, and your ad return on spend appears to double. To avoid this, every event gets a unique ID that both paths carry along, and the receiving system uses it to merge them. This is one of the most common mistakes in poorly implemented server-side tracking setups.

Does tracking slow the site down?

A server-side solution typically speeds things up: the browser has fewer scripts to download and run, because the server takes on the heavy lifting. The difference is most visible on mobile and on weaker devices, which is also where your Core Web Vitals scores are decided.

Server-side processing is invisible to the visitor, because it doesn't sit in the way of the page load. Part of the tracking audit is checking how many unnecessary tracking scripts are currently running on your site.

What is Google Tag Manager and what is a server-side container?

Google Tag Manager (GTM) is a tag management system: it lets you control, from one place, which measurement and advertising codes run on the site, without developer involvement. The traditional web container runs in the visitor's browser.

A server-side container (sGTM) is the same logic on a server: the browser sends a single request to your own subdomain, and the container distributes the event from there to GA4, Google Ads and Meta. The web container still stays in place, it just runs a lot less code.

Platforms and events

Does it work with Shoprenter, UNAS or Shopify?

Where the platform allows its own scripts and data layer, yes, but hosted platforms always have limits on which events and parameters can be extracted, especially at the checkout steps. On a custom or self-hosted system (Magento 2, WooCommerce, bespoke development) the measurement is complete, and we can even track back to the order's final status. In the assessment we always tell you what won't work on your particular platform.

Can cancelled or returned orders be measured?

Yes, and it's worth doing. Measurement based on the thank-you page captures the moment the order is placed, even though the real revenue is only decided later. Where the system allows it, we measure against the final order status or send a later correction, so the advertising algorithm doesn't end up optimising for cancelled orders. This matters especially for webshops with cash-on-delivery.

What do Enhanced Conversions and the Meta Conversions API mean?

Both exist to make sure the conversion reaches the advertising system even if the browser-side path breaks. Google Enhanced Conversions sends an encrypted version of the email address given with consent, while the Meta Conversions API sends the purchase event from the server.

Used together, the two give the most accurate picture, and both respect the consent status. In WebPot's systems, the Meta CAPI integration is built in, not a separate development.

How can I check that the measurement is actually accurate?

We compare three independent sources for a given period: the webshop's own order list, the GA4 data and the ad accounts' conversions. If these are within 5% of each other, the measurement is in good shape.

At handover you get this comparison in writing as well, and we show you how to run it yourself at any time. So you don't have to just take our word that it works, you can check it.

What is the data layer (dataLayer) and why does measurement depend on it?

The data layer is the structured data package that the webshop hands to the measurement system: product ID, name, price, quantity, order number, total. GA4's e-commerce reports, Enhanced Conversions and dynamic remarketing all work from this.

If the data layer is incomplete or inaccurate, even the best server-side setup will pass on faulty data. That's why the first step of the setup is putting the data layer right in the webshop's code, which we do ourselves as developers.

Price, timeline, maintenance

How much does it cost and what's the ongoing cost?

The cost of the setup depends on the number of events to be measured, the platform and the number of advertising systems to connect, so we give you a written quote after an assessment, with a fixed price rather than an hourly rate. The ongoing cost on your own server is typically just the cost of the server itself; on a hosted service it's the provider's monthly fee, which grows with traffic.

How long does it take to set up?

For an average webshop it's three to four weeks from the tracking audit to going live, most of which goes into wiring up the events and checking them. It takes longer for a custom platform or with a lot of integrations. The old measurement keeps working the whole time, so there's no blind spot.

Who has access to the system after handover?

You do. The container, the server and the measurement accounts stay in your ownership, we only get access to do the work. At handover you also get the full configuration in writing, so any developer can pick it up later. We don't build in dependency.

What happens if Google or Meta changes their API?

This happens several times a year, and poorly maintained tracking quietly breaks when it does: the report keeps showing numbers, they just aren't the real ones any more. That's why it's worth keeping it monitored: we watch the rate of failed events and platform changes, and make adjustments when something changes, before any data is lost.

Glossary what’s worth understanding before you request a quote

These terms come up in every quote and with every provider. It’s worth understanding them, if only so you can compare quotes.

Server-side tracking
A tracking method in which website events don’t reach the measurement and advertising systems directly from the visitor’s browser, but through an intermediate server under your own control. This lets you control which data leaves the system, and tracking becomes less dependent on browser restrictions.
sGTM (server-side Google Tag Manager)
The version of Google Tag Manager that runs on a server rather than in the browser. Website events arrive here, then continue on to the target systems: filtered, enriched or transformed.
Consent Mode v2
Google’s consent management mechanism, which passes the visitor’s cookie decision to Google’s systems so they can adapt accordingly. It doesn’t replace the cookie banner, and on its own it doesn’t constitute legal compliance.
Enhanced Conversions
A Google Ads feature that attaches pre-processed, identifiable data to the conversion event, so ad attribution is more accurate even where browser-side identification doesn’t work.
Conversions API (CAPI)
Meta’s server-to-server connection, through which purchase and other events can be sent bypassing the browser. It should be used together with the browser-side pixel, paired with deduplication.
Measurement Protocol
Google Analytics’ interface for sending tracking events directly from a server. A typical use is feeding back events that happen later, such as an order status change or a subsequent approval.
Data layer (dataLayer)
The standard data-handoff interface between the website and the tracking system. Its quality determines what can be tracked at all: if the product price, quantity or order ID doesn’t go into it, tracking won’t see it either.
Deduplicated event identification (event deduplication)
A method in which the same event arrives via both paths (browser and server) with a unique ID, so the receiving system recognises it and counts it once. Without this, conversion counts and ROI end up overstated.
First-party data
Data collected by your own system on your own domain. The whole point of server-side tracking is that the event stream arrives here first and only continues onward from here, not the other way round.
ITP (Intelligent Tracking Prevention)
Browser-side protection that limits the lifespan and use of tracking-capable cookies. One consequence is that a returning visitor may show up as a new user in the statistics.

Related services

Tracking is only worth anything if the system behind it is in order too. Here’s what else we work on:

Take the first step towards a successful business!

WebPot DEV brings 15 years of experience to Magento, WordPress, e-commerce, custom web system and mobile app development.

Beyond the web, we also build Android and Windows apps, run and maintain servers, integrate AI, and install Loxone smart home systems and robotic lawnmowers.

Tell us about your idea or your problem, and we will work out together how to make it happen.

Phone: +36 30 199 1620 WebPot DEV on LinkedIn GitHub WebPot DEV on Facebook WhatsApp

WebPot DEV logo

From design to implementation: WebPot DEV

Free consultation

Book a 30-minute consultation

We review your goals and your current website, and at the end of the call you get an estimated price range and timeline.

2026. Oct 26. – 30. 44. WEEK
  
MON26 0 free
TUE27 0 free
WED28 0 free
THU29 0 free
FRI30 0 free
08:00
09:00
10:00
11:00
LUNCH BREAK 12:00–13:00
13:00
14:00
15:00
16:00
available booked selected · Europe/Budapest · 30 min
TIMEPick a free slot in the calendar




CONFIRMATION BY E-MAIL · CALENDAR ENTRY
CANCEL WITH ONE CLICK FROM THE E-MAIL
Back to topShare page