Your ad platform saw the click. Your store saw the order. Somewhere in between, an ad blocker or Safari's cookie rules cut the thread, and the ad platform never learned that the ad worked.
Server-side tracking fixes that by recording your sales, leads and sign-ups on a server you control, then sending them to ad platforms like Meta and Google. Because it sends from your own domain, far fewer conversions get lost on the way, and the platforms learn from more of your real buyers. You can set it up three ways: a Google Tag Manager server container, a gateway for one platform, or a managed tag like Zernio's tracking tag that needs no server.
![]()
What is server-side tracking?
Server-side tracking is a way of sending conversion events to ad and analytics platforms from a server instead of from the visitor's browser. The browser still records what happened, but it sends one event to an address on your own domain, and a server forwards it to each platform's API.
Here's where it matters. Someone clicks your Meta ad on Monday in the Facebook app, leaves, and buys on Thursday in Safari. The Meta pixel never reports the sale, so Meta never learns that this ad, and this kind of person, converts.
With server-side tracking, the sale still reaches Meta. It arrives from a server with the original click id attached, so Meta credits the right ad.
Server-side tracking, server-side tagging and Conversions API: what's the difference?
These three terms get mixed up constantly. They describe different layers of the same idea.
| Term | What it means |
|---|---|
| Server-side tracking | The practice: sending conversions to platforms from a server, not only the browser |
| Server-side tagging | Google's name for running Google Tag Manager in a server container |
| Conversions API (CAPI) | Meta's server endpoint for receiving web, app and offline events. Other ad platforms have their own server endpoints |
So server-side tagging is one way to do server-side tracking, and a platform's server endpoint, such as Meta's Conversions API, is where the events land.
How does server-side tracking work?
Server-side tracking works in four steps. The first happens in the browser and the rest happen on a server.
- The visitor arrives from an ad. The platform adds a click id to your link, such as
fbclidfor Meta orgclidfor Google. That id is the proof the visit came from that ad. - An event is recorded. A tag on your site notes the page view, the add to cart or the purchase, and keeps the click id.
- The event goes to your server, not the ad platform. The browser sends it to an address on your own domain, like
t.yourdomain.com. The server filters out bots, applies the visitor's consent choice and adds the click id back. - The server forwards it to each platform's API. Meta, Google, TikTok and the rest receive the conversion and match it to the original click.
![]()
Why does your own domain matter?
Ad blockers work from public filter lists. EasyPrivacy, one of the most widely used, blocks the Meta pixel's script (fbevents.js) by name. A request to t.yourdomain.com or a path on your own site isn't on those lists.
Your domain also changes how long the click id lives. According to WebKit, Safari deletes cookies created by JavaScript after 7 days without a visit to the site, and caps them at 24 hours when it detects click ids in the link the visitor arrived from. A buyer who comes back on day 10 can no longer be tied to the ad.
Cookies set by your own server last longer, but how you serve them matters. Safari also caps cookies at 7 days when they come from a subdomain that points to another company's server through a CNAME record. Forwarding a path of your own site, like yourdomain.com/zt, avoids that cap.
Server-side vs client-side tracking: what's the difference?
Client-side tracking runs in the visitor's browser, and server-side tracking runs on a server you control. The table shows what that changes in practice.
| Client-side (browser pixel) | Server-side | |
|---|---|---|
| Where it runs | The visitor's browser, one script per platform | Your server or a managed collector, one tag for all platforms |
| What blocks it | Ad blockers, privacy browsers, closed tabs | Far less, since requests go to your own domain |
| Click id lifetime | Browser cookies, as short as 24 hours to 7 days in Safari | Kept on your domain, so it survives longer |
| Sales after the visit | Can't send them (renewals, phone orders, CRM deals) | Can send them from your backend, store or CRM |
| Data control | Each platform's script decides what it collects | You decide what each platform receives |
| Setup effort | Paste a snippet | Depends on the method, from one click to a hosted server |
| Cost | Free | Free tiers, then hosting or per-event pricing |
Do you still need the browser pixel?
Usually, yes. Meta recommends running its Conversions API alongside the Meta pixel, a "redundant setup". The platform then receives each conversion twice.
To count it once, both copies carry the same event id and event name, and Meta deduplicates them. The server copy fills in what the pixel missed.
Why do you need server-side tracking?
You need it because your ad platform sees the click but often misses the sale. How many conversions you lose depends on your audience: the more Safari users and ad blockers, the bigger the gap. The free leak report below shows it for your own site.
Four things stop a browser pixel:
- Ad blockers. Filter lists block the pixel's script or its requests, so the report never leaves the browser.
- Safari's tracking prevention. Script cookies are deleted after 7 days without a visit, or capped at 24 hours, so a returning buyer can't be tied to the ad that brought them.
- Closed tabs. A visitor who leaves before the thank-you page loads is never reported.
- Sales that happen later. A renewal, a phone order or a deal closed in your CRM never touches the browser at all.
What does a missed conversion actually cost?
Missed conversions cost you twice. First, your reports undercount the campaigns that work, so you may cut a winner.
Second, and more expensive, the platform optimizes on a partial list of buyers. Platforms use your conversion reports to find more people like your buyers, so if they only see some of them, they target from an incomplete picture.
Is server-side tracking legal, and does it still need consent?
Server-side tracking changes where events are sent from, not what you need permission for. It isn't a way around your cookie banner: the visitor's consent choice has to travel with every event, to every platform.
Google Consent Mode is Google's standard for this. It lets tags adjust their behavior to each visitor's choice, and its v2 signals include ad_user_data and ad_personalization. Zernio's tag reads your banner, sends nothing a visitor refused, and loads your ad pixels only after consent.
How do you set up server-side tracking? (3 ways)
There are three ways to set up server-side tracking: run a Google Tag Manager server container, use a gateway built for one platform, or install a managed tag that needs no server. They differ mostly in what you host and how many platforms you reach.
| GTM server container | Meta Conversions API Gateway | Managed tag (Zernio) | |
|---|---|---|---|
| What you host | A tagging server, on Google Cloud or a host like Stape | A gateway instance on AWS or Google Cloud | Nothing |
| Platforms | Any, one tag per platform that you configure | Meta only | Every connected destination |
| Setup | Complicated setup, you build and configure each tag | Under 30 minutes, says Meta | One click on a connected store or Tag Manager container |
| Running cost | About $45 per server a month on Cloud Run, 2 servers recommended, or a host's plan | Cloud fees from $30 a month | First 100,000 website events a month free, then $10 per million |
Option 1: a Google Tag Manager server container
This is the classic route. A server container uses the same tags, triggers and variables as a web container, but runs on a server you control.
- Create a server container in Google Tag Manager.
- Host it on Google Cloud Run, or with a managed host such as Stape or Addingwell.
- Point a subdomain of your site, like
sgtm.yourdomain.com, at the server. - Send your website's events to the server container.
- Add and configure a tag for each platform you want to reach.
- Set up deduplication so each platform counts the pixel and server copies once.
It's flexible, but every platform is a tag you configure and maintain.
Option 2: a gateway for one platform
Meta offers the Conversions API Gateway, a codeless setup you pick in Events Manager. It runs on Amazon Web Services or Google Cloud and deduplicates browser and server events automatically.
Meta says installation takes under 30 minutes, and cloud fees start at USD 30 a month. The catch is that it covers one platform, so a second ad network means a second setup.
Option 3: a managed tag that needs no server
A managed tag loads from your own domain and sends events from the vendor's servers, so there's nothing for you to host. With Zernio's tracking tag, setup takes three steps:
- Connect your ad accounts, and your store if you have one. Zernio's Ads API covers 10+ ad platforms, including Meta, Google, LinkedIn, TikTok, Reddit, X and OpenAI, so connecting each ad account takes one call or click.
- Turn on tracking for your website. On Shopify, WooCommerce, Wix or Webflow it's one click on the store; on any site with Google Tag Manager, one click on the container (via Zernio's integration with GTM); anywhere else, one line in the page.
- Check the ticks. Each ad account shows a tick once it's linked.
![]()
The tag keeps the visitor's ad click ids for 400 days, renewed on each visit, and restores them when Safari deletes them, as long as it loads from a path of your own site.
Zernio's tracking tag follows your banner's consent and can pass it to Google Consent Mode v2, and it keeps known crawlers, AI agents and headless browsers out of what it forwards. And since Zernio hosts the collector, there's no tag server to run.
Sales that never touch the browser can still reach your ad platforms. Connected Stripe, HubSpot, Salesforce and HighLevel accounts send them once a sale can be tied to its campaign, and your backend can send them through POST /v1/events.
A coding agent connected to the Zernio MCP server can also run the setup itself: scan the site, install the tag, verify and rescan.
What are the best server-side tracking tools?
The best server-side tracking tool depends on who will maintain it. If you have a GTM specialist and time to set it up and maintain, a hosted container can be a choice. If you don't, a managed tag like Zernio gets you there without one.
| Tool | Type | Best for | Entry pricing |
|---|---|---|---|
| Stape | GTM server container hosting | Teams already deep in Google Tag Manager | Free up to 10,000 requests a month. Pro $17 a month billed annually ($20 monthly) for up to 500,000 requests |
| Addingwell | GTM server container hosting | GTM teams who want a managed European host | Starts with 100,000 requests, then from €90 a month for 2 million requests |
| TAGGRS | GTM server container hosting | GTM teams on a budget | Free up to 10,000 requests a month. Basic €22 a month billed annually for 750,000 requests |
| Google Cloud Run (self-hosted) | GTM server container | Engineering teams who want to own the infrastructure | About $45 per server a month, 2 servers recommended |
| Meta Conversions API Gateway | Single-platform gateway | Advertisers who run Meta | Cloud fees from $30 a month |
| Zernio | Managed tag and Conversions API | Teams that want every ad platform without a tag server, and builders adding tracking for their own users | First 100,000 website events a month free, then $10 per million |
Comparing Zernio and Stape directly? See Zernio vs Stape.
How do you know server-side tracking is working?
You know it's working when each platform receives your conversions from the server, counts each one once, and matches them to people. Check these four things in the first week:
- Events arrive. In Meta Events Manager, your pixel's Overview shows events received from the server.
- Each sale counts once. The pixel and server copies share an event id and event name, so the platform deduplicates them.
- Match quality is healthy. Meta scores each server event from 0 to 10 on how well its customer information matches Meta accounts, and sending more customer information parameters can raise it.
- Platforms accept your sales. Compare what each platform accepted with the orders in your store.
In Zernio, the accuracy endpoint shows, for each destination, what was sent, accepted and failed. Under 95% of sales accepted means something to fix, and a destination that falls below 95% sends an alert, at most once a day.
![]()
Not sure how much you're losing today? Ask your AI agent of choice to run the free Conversion Leak Report on your site. It shows which ad pixels fire, which wait for consent, which keep sending after Reject, and how long Safari keeps their cookies.
Switching from another setup? Plan for Google's 14-day trial period
If you're replacing Stape, a GTM server container or another tool, don't switch the old one off on day one. In Google Ads' multi-source conversions, an additional data source connected to a biddable conversion action enters a 14-day trial period. During it, its data is used for reporting and diagnostics but not for bidding, and after 14 days it becomes biddable automatically.
So run both setups side by side for 14 days, watch the diagnostic alerts, then turn the old one off.
FAQ
Does server-side tracking still need consent?
Yes. It changes where events are sent from, not what you need permission for, so it must follow your cookie banner and send nothing for visitors who refused.
Does server-side tracking use cookies?
Yes, first-party cookies set from your own domain. Zernio's, for example, hold a visitor id and the ad click ids for 400 days, and your consent banner covers them.
Is Google Tag Manager server-side tracking?
Google Tag Manager can do server-side tracking through a server container, which Google calls server-side tagging. A standard web container runs in the visitor's browser.
Do I still need the Meta pixel?
Meta recommends keeping it and running the Conversions API alongside it, with both copies of each event deduplicated by event id and event name.
Does server-side tracking work with Shopify and WooCommerce?
With Zernio, yes: Shopify, WooCommerce, Wix and Webflow install in one click on the connected store, and Shopify purchases are captured for you.
Can an AI agent set up server-side tracking?
Yes. A coding agent connected to the Zernio MCP server can scan the site, install the tag, verify that events arrive and scan again.
Find the conversions your ad platforms were missing
Run the free conversion leak report on your site to see what your pixel misses today. Then turn on server-side tracking in Zernio: one click on a connected store.