Tracking

Seven server-side tracking myths, checked

Server-side tracking does not replace the pixel, skip consent or fix attribution on its own. Seven common myths for webshops, checked against the facts.

·7 min read·By the ROASaurus team

Key takeaways
  • Server-side tracking adds to the browser pixel; it does not replace it, because the browser still collects clicks, cookies and consent.
  • Consent rules apply to data sent from a server exactly as they do to data sent from a browser.
  • Platforms only remove duplicates when the browser and server events carry the same event id (Meta, TikTok) or transaction id (GA4).
  • A server event is only as good as what it carries: missing click ids or customer details make it hard to match.
  • Google Ads does take server-side purchases, but as uploaded click conversions, not as a pixel-style stream.

Server-side tracking sends conversion events from your store's server to ad and analytics platforms, next to the browser pixel. It recovers purchases that ad blockers, cookie limits and broken checkout scripts would hide. It does not replace the pixel, it does not get around consent, and it does not fix attribution on its own.

Those three misunderstandings, and four more, lead to setups that count orders twice, break the law or give false confidence in the numbers. Here is each myth, what is actually true, and what to check in your own setup.

What server-side tracking is, in short

Most stores track with scripts in the shopper's browser, such as the Meta Pixel, the GA4 tag or the TikTok Pixel. The script collects an event and sends it to the platform. That is client-side (browser) tracking.

Server-side tracking sends the event from your store's backend, or a server you control, straight to the platform's API: Meta's Conversions API, TikTok's Events API, GA4's Measurement Protocol, and so on. Ad blockers and browser privacy settings cannot stop a request between two servers. But the server only knows what the browser and the order told it, which is why most of the myths below come down to the same point: the two sides have to work together.

What the browser is good at
  • Click ids and UTM tags from the landing page
  • Platform cookies such as _fbp and the GA4 client id
  • The consent choice
  • Behaviour: page views, scrolls, add to cart
What the server is good at
  • Purchases from the order itself, even when scripts fail
  • The final value after discounts and refunds
  • Hashed customer details from the order
  • Events that happen later, such as refunds
A sound setup uses both sides and ties them together with one event id.

Myth 1: "Server-side tracking replaces the pixel"

What is true: it complements the pixel. The browser is where the shopper lands, so it is where click ids (fbclid, gclid, ttclid), UTM tags, referrers, platform cookies and the consent choice are collected. Behaviour such as page views and add to cart also happens there. Turn the pixel off and the server event loses most of what links it to an ad.

That is why Meta, Google and TikTok all describe a combined setup: the browser handles context and early funnel events, the server makes sure the events that matter most, above all the purchase, arrive.

What is true: data protection law such as the GDPR applies to personal data however it travels. A server request with a hashed email, an IP address or a click id is still personal data. Moving the sending from the browser to a server changes where you check consent, not whether you need it.

In practice: Meta, TikTok and other non-Google platforms expect marketing consent before you send identifiable data to their APIs. Google's platforms use Consent Mode, where an event can be sent with a flag that says consent was denied, so Google can use it only in limited ways, such as modelling, and not for remarketing. Your server has to read the same consent signal as your cookie banner and act on it.

Myth 3: "Meta and GA4 remove duplicate events by themselves"

What is true: they only do it when you give them something to match on.

PlatformMatches browser and server events onIf it is missing
MetaThe same event name and event_id in the Pixel and the Conversions APIThe purchase can be counted twice
TikTokThe same event and event_id in the Pixel and the Events APIThe purchase can be counted twice
GA4The same transaction_id on both purchase eventsTwo purchases in reports
Google AdsThe same transaction id (order id) on tag and uploadTwo conversions for one order
Deduplication rules from each platform's documentation. None of them guesses that two events are the same order.

There is no automatic fallback. If the ids are missing or differ, you get inflated numbers, and when your setup tries to fix that by dropping one side, you may lose conversions instead. Our guide to duplicate purchase events shows how to find and fix this.

Myth 4: "You can send everything server-side, including GA4 sessions"

What is true: GA4 builds sessions from the browser. Its client id and session id are created by the GA4 tag in the browser, and a Measurement Protocol event without them cannot be tied to a visit, a traffic source or a conversion path. Behaviour such as scrolling and viewing a product list happens in the browser and cannot be reconstructed on a server.

So the server is best for events that must not get lost, such as purchases and refunds, while browsing behaviour stays client-side. A server event to GA4 should carry the client id and session id captured in the browser, or it will show up as a purchase without a source.

Myth 5: "Server-side data is clean by default"

What is true: a server event is only as good as what it carries. Platforms need specific identifiers and fields to accept and attribute an event. If they are missing or wrongly formatted, the event can be rejected, matched to the wrong person, or accepted but left out of attribution. Typical problems:

  • A purchase without a transaction id, so GA4 cannot deduplicate it.
  • Email or phone missing, or hashed without normalising first (lower case, no spaces, phone with country code), which lowers Meta's Event Match Quality.
  • Click ids and UTM tags that never travel from the landing page to the order, so the purchase arrives without a link to an ad.

Check the response the platform sends back for each event, not just that a request went out.

Myth 6: "Google Ads takes server events the way Meta does"

What is true: Google Ads does accept server-side purchases, but in a different shape. Meta's Conversions API takes a stream of events in real time. Google Ads takes conversions that are uploaded against a click: the purchase is sent with the Google click id (gclid, or gbraid and wbraid for some iOS traffic) and, if consent allows, hashed customer details, to a conversion action set up to import clicks. Clicks older than 90 days are not accepted.

A second route is to send purchases to GA4 server-side and import GA4 conversions into Google Ads. Both work; what does not work is expecting Google Ads to read a Measurement Protocol event meant for GA4. Our guide to Google Ads enhanced conversions covers the matching side.

Myth 7: "Server-side tracking fixes attribution"

What is true: it recovers conversions that would otherwise be lost, for example when an ad blocker stops the pixel, a checkout script does not fire, or a browser shortens cookie lifetimes. It cannot fix problems that start earlier:

  • Links without UTM tags, or tags that are inconsistent between campaigns.
  • Visitors who declined consent, whose clicks may not be stored at all.
  • Journeys across devices that no identifier connects.
  • Each platform's own attribution window and view-through rules, which still decide what it credits to itself.

Server-side tracking gives the platforms more complete purchases. Deciding which channel deserves the credit is a separate step: attribution models applied to your own data, ideally checked against store revenue.

How ROASaurus handles each point

ROASaurus runs the browser and server side as one setup. The tracking script captures click ids and UTM tags first-party and writes a visitor id to the cart, so it arrives with the order. About 20 seconds after payment, the server sends the purchase with the same event id as the browser event (order- plus the order id), which is what lets Meta, TikTok and the others remove the duplicate.

fbclid → /products/serumThe visitor lands from a Meta ad; the click id is stored first-party
Purchase · event_id order-1042The browser pixel fires on the thank-you page
Purchase · event_id order-1042About 20 seconds later the server sends the same purchase with hashed customer details
Meta: 1 purchaseSame event name and id, so Meta keeps one
Example order in a fictional store: two events for one purchase, counted once.

Consent is read from Shopify's customer privacy settings or your consent tool, and each store chooses how it is applied. When a store respects the visitor's choice, a visitor who declined gets no visitor id, no stored click id and no browser events to ad platforms. Google Ads purchases go out as click conversions through Google's Data Manager API, with the order id as transaction id.

The ROASaurus Mac app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
Data quality › Overview in the public demo (ROASaurus Demo Store, a fictional store): for each destination, how many purchases were expected, accepted and missed, and how many carried an email or click id.

Every delivery is listed in Data quality › Deliveries with its status (queued, sent, skipped or failed), the reason and the platform's response, so a rejected or skipped event is visible instead of silently missing.

Next step

Sources

  1. Meta for Developers: Handling duplicate Pixel and Conversions API events
  2. Google Analytics: Measurement Protocol (GA4)
  3. Google Data Manager API: Send offline conversions to Google Ads
  4. TikTok for Business: Event deduplication
  5. Google: Consent mode overview

In ROASaurus

Keep reading

AttributionAttribution models for ecommerce, and one order's journeyAttribution models for ecommerce compared on one customer journey: last click, first click, linear, data-driven and survey-based, and how to read an order.TrackingDuplicate purchase events: check pixel and server count onceHow Meta and other platforms decide two purchase events are one, what a matching pair looks like, and how to check pixel and server count each order once.TrackingGoogle Ads enhanced conversions on Shopify: setup and fixesHow Google Ads enhanced conversions work on Shopify, how to set them up, how to fix "needs attention", and how ROASaurus sends the customer data.

FAQ

Questions, answered

More answers in the FAQ and the help center.

Does server-side tracking replace the Meta Pixel?

No. The pixel collects click ids, cookies, consent and browsing events in the browser. The server adds reliable purchases. Meta recommends using both, with the same event id so duplicates are removed.

Is server-side tracking GDPR compliant by default?

No. The GDPR applies to personal data however it is sent. A server must respect the same consent choice as the browser and leave out identifiers for visitors who declined.

Why are my purchases counted twice in Meta?

Usually because the browser and server events do not share the same event name and event_id. Without a matching id Meta cannot tell they are one purchase.

Can GA4 run fully server-side?

Not without losing sessions and traffic sources. GA4 builds sessions from the client id and session id created in the browser. Send purchases server-side with those ids, and keep browsing events in the browser.

Does Google Ads accept server-side conversions?

Yes, as uploaded click conversions with the gclid, gbraid or wbraid and hashed customer data, or by importing conversions from GA4. It does not read events meant for GA4 directly.

Will server-side tracking fix my attribution?

It recovers lost purchases, but it cannot add missing UTM tags, link devices nothing connects, or change how each platform credits itself. Attribution is a separate step.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.