Black FridaySave up to $10,000 on setup, expert support & 1M events · Ends in 15d 00h 00mClaim offer →

What is server-side tracking and how do you set it up?

Adeel KhanGrowth Marketing Expert9 min read

If your ad platform, analytics tool and billing system all show a different number of sales, you’re not alone.

Ad blockers, browser privacy limits and consent choices stop many browser tags from firing. Server-side tracking fixes part of that. Instead of relying only on the browser, you send your most important events from your own server, where they’re confirmed. It’s a different route for event tracking, not a different kind of data.

This guide explains what server-side tracking is, how it compares to client-side tracking, what it costs, and how to set it up step by step.

Key takeaways

  • Server-side tracking sends events from your server, not only from the visitor’s browser, so you control what gets recorded and shared.
  • It’s most useful for confirmed events like payments, upgrades, demo bookings and refunds, which happen on your backend anyway.
  • Most teams use both. Client-side tags capture on-page behavior, and server-side events capture the outcomes that matter.
  • It doesn’t replace consent. Privacy rules still apply. Server-side tracking just gives you one place to enforce them.
  • Start small. Pick three to five key events, connect them to an identifier, test them, then expand.

What is server-side tracking?

Server-side tracking is a way of collecting data where events are sent from your server to your analytics and ad platforms, instead of straight from the visitor’s browser.

In a normal setup, the browser loads tags from each tool and sends data directly to them. With server-side tracking, the event goes to your server first. Your server can check it, add context you already have (like a user ID or plan), apply your rules and send a cleaner version on.

That small routing change gives you a lot of control. You can:

  • Decide which events get sent and which don’t
  • Keep event names and properties consistent across tools
  • Add backend context the browser doesn’t have, like plan, revenue or account ID
  • Record events where the action is actually confirmed
  • Reduce the impact of ad blockers and browser restrictions

A simple example

Say a user clicks “Upgrade” in your app. A browser tag can record the click. But the click isn’t the sale. The payment might fail, or the user might close the tab.

With server-side tracking, your billing system confirms the payment and your server sends a plan upgraded event with the plan name and revenue. That event reaches your analytics and your ad platforms even if the user runs an ad blocker.

Client-side vs. server-side tracking

Both approaches can capture the same actions. The difference is the route the data takes, and how much control you have before it lands in your tools.

Client-side trackingServer-side tracking
Where it runsIn the visitor’s browser, using JavaScript tags (pixels, analytics snippets)On a server you control, outside the browser
Data pathBrowser → each third-party toolBrowser or backend → your server → your tools
Ad blockers and browser limitsMore exposedLess exposed
Page speedEach extra tag adds scripts to the pageFewer third-party scripts in the browser
Control over shared dataLow: vendor tags decide what they collectHigh: you filter, hash or remove fields first
Backend events (payments, refunds)Hard to capture reliablyCaptured where they’re confirmed
Setup effortLow: paste a tagHigher: needs a server, API or tool that handles it
Best forPageviews, clicks, scroll and on-page behaviorConversions, revenue and lifecycle events

Do you need both?

Usually, yes. The browser still sees things your server doesn’t, like which page someone viewed, what they clicked and where they came from. Your server sees what actually happened, like a confirmed payment. Together, they give you the full picture.

Ad platforms recommend this hybrid approach too. Meta, for example, suggests running its pixel and Conversions API side by side. You send the same event from both with a matching event name and event ID, and Meta removes the duplicate.

How does server-side tracking work?

Think of it as a three-step relay. The action happens, your server does the prep work, and your tools get the final version.

Client-side vs server-side tracking: in client-side tracking a visitor acts, browser tags fire and some events are blocked or lost, leaving partial data. In server-side tracking the action is confirmed, sent to your server, filtered and enriched, then forwarded to analytics and ad platforms.

1. A user action happens

A visitor views a page, submits a form, starts a trial or completes a purchase. That action creates an event you want to record.

Some events start in the browser and are passed to your server. Others start on the backend itself, like a payment confirmed by Stripe or a deal closed in your CRM.

2. Your server collects and processes the event

Once your server has the event, you decide what happens next, before anything leaves your stack. Common steps include:

  • Filtering out duplicate, test or bot events
  • Hashing or removing personal data you don’t want to share
  • Adding context like plan, revenue or CRM fields
  • Checking consent before sending anything to ad platforms

This is also where validation happens. For example, you count a purchase only after the payment is confirmed, not when someone clicks a button.

Testing pays off here. When you validate tracking like any other system behavior, you catch broken events before they skew your dashboards. Our guide on tracking and test automation shows how.

3. Your server forwards it to your tools

After processing, your server sends the event to other services through secure API requests. Typical destinations are:

  • Analytics platforms, for traffic, conversion and revenue reporting
  • Ad platforms like Google Ads and Meta, for conversion tracking and bidding
  • CRM systems, for follow-ups and sales workflows

You end up with the same events in your stack, but your server controls how they’re captured, cleaned and shared.

Benefits of server-side tracking

Here are the main reasons teams make the switch. For a deeper look, see our full list of benefits of server-side tracking.

More complete, more accurate data

Browser tags can fail to load, get blocked or fire before a page closes. Each of those gaps means a missing event. Server-side tracking records key events on your server, so fewer conversions go missing. That gives you cleaner inputs for reporting and marketing attribution.

Less impact from ad blockers and tracking prevention

Many ad blockers work by blocking requests to known tracking domains. Events sent from your server don’t depend on those browser requests. They’re much less likely to be filtered out, though no setup catches every visit.

More control over what data you share

With browser tags, data goes straight from the visitor to each vendor. There’s no checkpoint. Server-side tracking adds one. You can:

  • Remove fields you don’t want leaving your stack
  • Hash or anonymize personal data before sending it
  • Keep event names and properties the same in every tool

Laws like GDPR and CCPA push teams to be more careful about what they track and share. When events pass through your server, you can apply consent rules in one place. If someone opts out, you stop sending their data to marketing tools centrally.

It also helps if you’re moving toward cookieless tracking. Your key events don’t depend on browser cookies to be counted.

Better cross-device and cross-channel reporting

People switch devices and channels all the time. Server-side events can carry identifiers your backend already knows, like a user ID or email. That makes it easier to follow a customer journey that starts on mobile and ends on desktop.

As a result, your touchpoints line up better across channels, and cross-channel marketing attribution is easier to trust.

Captures backend events the browser can’t confirm

Some of your most important events never happen in the browser. Payment confirmations. Subscription upgrades. Refunds. Cancellations.

Server-side tracking records them where they’re confirmed, on the backend. That’s a big deal if you want conversion tracking that matches your real numbers. It also makes tracking user behavior more honest, because it reflects what your product actually did.

Lighter pages

Every browser tag adds scripts to your pages. Moving some of that work to your server means fewer third-party scripts, which can help page speed as you add more tools.

Unlock insights that drive growth

Limits and trade-offs to know first

Server-side tracking is powerful, but it isn’t magic. Here’s what to plan for.

Trade-offWhat it means for you
CostYou pay for the server or a hosted service. Small setups are cheap, but costs grow with traffic.
Setup effortYou need a developer, a server-side tag manager or a tool that handles it for you.
Consent still appliesSending data from a server doesn’t remove the need for consent where the law requires it.
IdentityA backend event needs an identifier (user ID, email or anonymous ID) to connect it to a visit or campaign.
DuplicatesIf the browser and server both send an event, you need an event ID so platforms can remove the copy.
Bad events stay badIf your event plan is messy, a server just sends messy data faster. Fix naming first.

On cost, here’s a real reference point. Google’s Cloud Run setup guide for server-side Google Tag Manager estimates about $45 per server per month and recommends running at least two servers to avoid data loss. Busy sites need more.

What server-side tracking changes about cookies

Server-side tracking doesn’t get rid of cookies. It changes how much you rely on them, and who sets them.

The browser landscape is mixed. Safari and Firefox block third-party tracking cookies by default. Chrome still allows them, after Google dropped its plan to remove them and decided in 2025 not to add a separate cookie prompt.

Safari also limits some first-party cookies. Its Intelligent Tracking Prevention caps cookies set by JavaScript at seven days. It can apply the same cap to cookies set by a server that looks like a third party, so your tracking server should sit on your own domain.

A few practical points:

  • You can still use cookies for normal site features, like logins, preferences and carts.
  • Data can be processed on your server before it’s stored or shared. That’s where data anonymization and strong data governance best practices come in.
  • First-party cookies set from your own domain hold up better than third-party ones. That means fewer sessions drop out, and fewer data discrepancies between tools.

So the shift isn’t “no cookies.” It’s more control over how cookies are used, and less dependence on third-party tracking.

When server-side tracking is worth it

Server-side tracking pays off when an event has real business value and you want it to show up the same way in every tool. Common use cases:

  • Paid ads conversion tracking. Send conversions to ad networks after your system confirms them, like a paid signup or a booked demo. Ad platforms bid better with clean conversion signals.
  • SaaS lifecycle reporting. Trial starts, trial-to-paid, upgrades, renewals and cancellations live in billing and product systems. Track them there, not from a thank-you page.
  • Richer events. Add details the browser doesn’t have, like plan, account tier, coupon used or lead status. Segmenting and reporting get much easier.
  • Ecommerce orders that match reality. Count an order when payment is confirmed, then send refunds and renewals too. That keeps ROAS and LTV reporting honest. Ecommerce platforms like Shopify are a common use case, because order status lives on the backend.
  • Better ad audiences. Build retargeting lists from strong signals, like started checkout or became a customer, instead of pageviews alone.
  • Cross-channel reporting. A journey might start with an ad, continue through organic search and end with an email. When you run cross-channel marketing like that, consistent conversion events make channels easier to compare.
  • One place for consent and naming rules. A server-side layer lets you standardize events and enforce privacy rules before anything reaches third parties.

Quick note: if you run an online store and want to compare reporting options, Shopify analytics vs. Usermaven breaks down how the two dashboards compare.

Server-side tracking options and tools

There’s no single “server-side tracking tool.” There are a few ways to do it, and many teams combine them.

OptionHow it worksGood fit for
Your own backend (API or SDK)Your app sends events straight to your analytics tool’s server API when something happensSaaS teams with developers and clear key events
Server-side tag managerA server container (like server-side Google Tag Manager) receives browser data and forwards it to your toolsTeams already using a tag manager that want to move tags off the page
Ad platform APIsMeta Conversions API, Google Ads enhanced conversions and the GA4 Measurement Protocol accept events from serversImproving ad conversion signals and bidding
Webhooks from your billing or CRM toolsStripe, Paddle or your CRM sends an event when a payment or deal happensRevenue, subscription and offline conversions
An analytics platform that handles it for youThe tool collects server events, ties them to visits and syncs conversions to ad platformsTeams that want server-side benefits without running servers

A few details worth knowing. Google Ads enhanced conversions hash first-party data like email addresses with SHA-256 before sending it to Google. The GA4 Measurement Protocol is designed to add to your normal GA4 tagging, not replace it.

How to set up server-side tracking step by step

You don’t need a perfect setup on day one. You need a clean first version that’s easy to check, then you improve from there.

Seven steps to set up server-side tracking: pick three to five key events, find where each is confirmed, choose a route, add identifiers like user IDs and click IDs, set consent rules, remove duplicates with a shared event ID, then test and monitor after every release.

1. Choose the events that matter

Start with three to five events tied to revenue or pipeline. For example: signed up, demo booked, trial started, purchase completed and refund issued. Everything else can wait.

2. Decide where each event is confirmed

For each event, ask where it’s actually confirmed. A pageview is confirmed in the browser. A payment is confirmed by your billing system. A closed deal is confirmed in your CRM. Track each event from that source.

3. Pick your route

Pick the option from the table above that fits your team. If you have developers, a server API or SDK is direct. If you live in a tag manager, a server container may be faster. If you want neither, use a tool that does it for you.

4. Connect events to people and campaigns

Send an identifier with every server event: a user ID, email or anonymous ID. Pass ad click IDs and UTM data where you have them. Without them, you’ll see the outcome but not who did it or which campaign drove it. This is where clean first-party data matters most.

Treat privacy as part of setup, not a follow-up task. Connect your consent banner or consent management platform to your server logic, so opt-outs are respected before data reaches ad platforms.

6. Remove duplicates

If the browser and server both send the same event, give both copies the same event ID and event name. Platforms like Meta use those to keep one and drop the other.

7. Test, then monitor

Once it’s live, check that key events arrive where they should. Then watch for gaps between tools, especially after releases or campaign changes. Keep in mind that some tools need time to process data. GA4’s data delays, for example, can make same-day counts look low.

Server-side tracking checklist

☐ Three to five key events chosen and named consistently

☐ Each event tracked from the system that confirms it

☐ Tracking server or endpoint on your own domain

☐ User ID, email or anonymous ID sent with every event

☐ Click IDs and UTM data passed where available

☐ Consent checked before data reaches ad platforms

☐ Event IDs set to remove browser and server duplicates

☐ Counts compared across tools after every release

How to do server-side tracking with Usermaven

Usermaven gives you the benefits of server-side tracking without running your own tracking servers. You can combine it with the regular website script, so on-site behavior and confirmed outcomes land in one place.

  • Send events from your backend. Use the Node.js or Python SDK, or send events through the HTTP endpoint with your API key and server token.
  • Capture conversions your website can’t see. Event Sources bring in Stripe and Paddle payments through signed webhooks, plus events from Zapier, custom webhooks and CSV imports. They count toward goals, funnels and attribution like any other event.
  • Sync conversions to ad platforms. Conversion syncs send your first-party conversion events server-to-server to Google Ads and Meta. For Meta, it’s a complete Conversions API setup with no code.
  • Keep the browser script first-party. Pixel white-labeling serves the Usermaven script from your own subdomain, which makes it less likely to be blocked.
  • Choose your cookie mode. Run cookie-based tracking or a cookie-less mode that doesn’t store personal data in the browser.

Once events are in, you can use them in funnels, journeys and attribution reports, and see which channels drive confirmed revenue, not just clicks.

Grow smarter with privacy-first analytics

Wrapping up

Server-side tracking keeps your analytics tied to confirmed events. The ones your business actually runs on: a successful payment, a new account, a plan change, a cancellation.

When those events are solid, everything downstream gets sharper. Funnels stop drifting. Customer journeys make more sense. Attribution becomes something you can stand behind.

Usermaven is marketing attribution software built for that kind of clarity. It brings server-side events and on-site behavior into one view, so you can see what drives conversions without stitching together half a story.

Want to see it with your own data? Book a demo for a closer look.

FAQs about server-side tracking

1. Does server-side tracking replace client-side tracking?

Not really. Most teams use both. Client-side tags capture on-page behavior like pageviews and clicks. Server-side tracking is best for confirmed events such as payments, upgrades and cancellations.

2. Can server-side tracking work if a user blocks cookies?

Yes, for backend events. Your server can still record a payment or signup. But without an identifier, like a user ID or email, you may not be able to connect it to a visit or campaign. You’ll see the outcome, but where it came from can be limited.

3. Do you need Google Tag Manager Server-Side to do server-side tracking?

No. It’s one option. You can also send events through an analytics tool’s server API or SDK, use ad platform APIs like Meta’s Conversions API, or forward events from webhooks such as Stripe.

4. What’s the best way to use server-side tracking without drowning in complexity?

Keep it small. Start with three to five confirmed events, send an identifier with each one, test them end to end, and only add more once your reports stay consistent week to week.

5. Is GTM considered server-side tracking?

Standard Google Tag Manager runs in the browser, so it’s client-side. Server-side GTM is different. It sends data to a server container first, where you control what gets forwarded to your tools.

6. What is SSR, and how does it work?

SSR (server-side rendering) means your server builds the page and sends it to the browser ready to display. It’s about loading pages, not collecting data, so it’s a different thing from server-side tracking.

7. What is GA4 server-side tracking?

It means sending events to GA4 from a server, either through server-side Google Tag Manager or the GA4 Measurement Protocol. Google designed the Measurement Protocol to add to your normal GA4 tagging, not replace it.

8. What is Facebook server-side tracking?

It’s sending conversion events to Meta from your server through the Conversions API, alongside the browser pixel. Meta recommends using both and giving matching events the same event name and event ID, so it can remove duplicates.

9. What’s the best way to analyze server-side events once they’re captured?

Use a tool that combines server-side events with on-site behavior. Usermaven, for example, lets you use them in funnels, journeys and attribution, and sync conversions to Google Ads and Meta, without pulling reports from five places.

10. How much does server-side tracking cost?

It depends on the route. Self-hosting server-side Google Tag Manager on Google Cloud Run costs about $45 per server per month, and Google recommends at least two servers. Hosted services and analytics tools with built-in server-side collection charge their own plan prices instead.

11. Is server-side tracking GDPR compliant?

It can be, but it isn’t automatically. Moving tracking to a server doesn’t remove the need for consent where the law requires it. What it does give you is one place to enforce consent and strip personal data before anything reaches third parties.

Find out more about:

Updated