Guide
Server-side tracking: what it fixes and what it doesn't
Moving tracking to a server recovers lost conversions and makes your data yours. It doesn't fix bad data, skip consent, or see sales that happen off the website.
By Mike Usry · Updated
What it is
Traditional tracking puts a script from each vendor in the visitor’s browser: the Google tag, the Meta pixel, TikTok, and so on. Each one sends data straight from the browser to the vendor.
Server-side tracking routes events through a server you control first. The browser sends one event to your domain. Your server decides what to forward, cleans it up, adds what it knows, and sends it on.
What it fixes
- Ad blockers. Requests to your own domain are blocked far less often than requests to known tracking domains.
- Cookie lifetime. Identifiers set by your server on your own domain generally last longer than cookies set by third-party JavaScript.
- Data control. You decide what leaves your server. Strip IP addresses, hash emails, drop fields a vendor doesn’t need.
- Page speed. Fewer third-party scripts in the browser.
- Enrichment. Your server can attach things the browser doesn’t know, like whether this is a returning customer.
The Safari caveat
Since Safari 16.4, even cookies set by a server are capped at 7 days when that server’s IP address doesn’t match your website’s. A tagging server on a subdomain but hosted somewhere else can get the same short cookie lifetime you were trying to escape. Where your tracking endpoint runs matters.
What it doesn’t fix
- Consent. A declined cookie banner means declined. Server-side doesn’t change the law.
- Bad events. If your site fires “Lead” on every page view, the server faithfully forwards garbage.
- Offline revenue. Phone orders, booked jobs, and paid invoices never touch your website. They need a CRM bridge. See offline conversion tracking.
The options
| Approach | Good for |
|---|---|
| Server-side Google Tag Manager | Teams already deep in GTM who want a familiar interface |
| Direct API calls from a worker or backend | Small sites that want a few reliable events, cheaply |
| A first-party pixel on your own infrastructure | Owning raw event data for your own analysis and audiences |
The APIs on the other end are the same either way: Meta’s Conversions API, the GA4 Measurement Protocol, and Google’s conversion uploads.
What we run
This website runs our own first-party pixel on a Cloudflare Worker. Events go to our domain, land in our own storage, and get forwarded from there. It’s the same setup we build for clients, and it’s cheap to run at small-business volume.
Where to start
- Pick the three to five events that actually matter (lead, booking, purchase).
- Give each one an event ID so browser and server copies deduplicate.
- Send them server-side with hashed customer data.
- Then connect your CRM so the outcomes after those events flow back too.
Questions we get
- What is server-side tracking?
- Sending analytics and ad events from a server you control instead of only from scripts in the visitor's browser. The browser talks to your server; your server talks to Google, Meta, and the rest.
- Do I need server-side Google Tag Manager?
- Not always. Server-side GTM is one way to do it. A lightweight worker that calls the Conversions API, GA4 Measurement Protocol, and Google's conversion APIs directly can be simpler and cheaper for a small business.
- Does server-side tracking get around consent requirements?
- No. If a visitor declines tracking, a server doesn't change that. Server-side tracking improves reliability and control; it doesn't change what you're allowed to collect.
- Does server-side tracking capture phone sales and offline revenue?
- No. It only sees what happens on your website. Sales in your CRM, store, or field-service software need a separate bridge that sends those outcomes to the ad platforms.
Keep going
Shopify to Google Ads and Meta, with the orders Shopify never sees.
Shopify's built-in apps send online purchases. Your ads also need the phone orders, the refunds, the margin, and which customers come back.
See the integration → GuideMeta Conversions API, explained for small businesses
The Meta pixel only sees the browser. The Conversions API lets you tell Meta who actually bought — including sales that happen on the phone or in your CRM.
Read the guide → GuideFirst-party data for a small business
You already own the data that makes ads work: who bought, what they paid, and when. It's just stuck in software your marketing never touches.
Read the guide → GuideClick IDs explained: gclid, gbraid, wbraid, fbclid, msclkid
That random string on the end of your ad URLs is the key to sending sales back to the ad platform. Most businesses throw it away.
Read the guide →Want this wired up for your business?
Tell us what system your customers live in and where you advertise. We'll tell you what's possible.