Skip to content
BonicBD
← All articles

Server-Side Tracking Isn't Losing Your Sales

By BonicBD Team · 2026-11-27 · 9 min read

Your server-side container is delivering events. The click ID died four hops earlier. Here is the five-link chain, where each link breaks, and how to find yours.

Server-Side Tracking Isn't Losing Your Sales

Two weeks after moving purchases into a server container, the reports look worse than they did before. Meta shows fewer purchases than the store shows. GA4 says paid sessions dropped. Someone in the standup says the migration broke attribution, and the migration becomes the suspect.

Most of the time the migration is fine. The event reaches the container, the container runs its tags, the tags call the destinations. What died earlier was the identifier that let a purchase be attached to an ad click. Forwarding the same identifier-less event through better infrastructure does not bring it back.

We run the collection side of this for Bangladeshi stores, so this is the chain we check first, in the order we check it.

In This Guide

  1. What browsers actually did, and didn't
  2. Five links in the identifier chain
  3. The expiry windows, in plain numbers
  4. Which link broke: a ten-minute check
  5. The order we would fix things in
  6. What the platform handles, and what it can't
  7. FAQ
  8. The short version

What browsers actually did, and didn't

If your plan is built around Chrome deleting third-party cookies, you are planning for a world that never arrived. Google announced in April 2025 that Chrome would keep its existing third-party cookie behavior and drop the standalone prompt it had proposed. The UK Competition and Markets Authority closed its Privacy Sandbox case in October 2025.

What did happen is less dramatic and more annoying. Safari blocks third-party cookies by default. Firefox does too. Every app on iOS that displays a web page runs WebKit's tracking prevention inside its webview, and that is where a large share of paid social traffic lands. Chrome users can block third-party cookies themselves, and Incognito does it for them.

So the accurate sentence is not "cookies are dead". It is "third-party cookies are unreliable", and unreliable is harder to work with than dead. A dead signal is obvious. A signal that works for some of your visitors, quietly, is one you keep trusting in a meeting where the numbers do not add up.

A purchase can only be tied back to an ad click if some identifier survives from the click to the moment the event fires. That means a chain of five links, and the chain is only as strong as its weakest one.

1. The click carries an identifier

Meta appends fbclid, Google appends gclid, TikTok appends ttclid. If auto-tagging is off, or a redirect somewhere in the chain drops the query string, there is nothing to carry forward. Nothing downstream can invent it.

2. Something reads it on the first page load

Query parameters live for one page view. They are not sticky. If no script reads fbclid during that first load, the value is gone for that session and for every session after it, and the visitor becomes unattributable no matter what you fix later. This is also why the read has to happen before any consent gate that defers your scripts by default.

You can see what a given landing URL actually carries with the click ID checker. It runs in your browser and shows which parameters were available to capture.

3. The visitor lands on the domain you sell from

A common setup is ad, then a landing page on a marketing domain, then the store on a different domain. The parameter does not cross that gap on its own. If the redirect or the button does not forward it, the click dies at the domain hop and the store never sees it. Agency landing pages and link-in-bio pages are where this shows up most.

4. The identifier reaches your order record

This is the link most teams never check. If the click ID lives only in browser storage, then a purchase fired from your backend has nothing to attach to it. A cash-on-delivery store that confirms orders by phone three days later is the clearest case: by then the browser copy has expired under Safari's caps, and the only copy that could have survived is the one your database wrote when the order was created.

Browser storage is not a backup plan. It is a short-lived cache. The order row is the record.

If Meta events arrive carrying a browser ID but no click ID, and match quality sits still no matter how many customer fields you add, this is the link to open first.

5. One event, one ID

The browser Pixel event and the server event only collapse into one conversion when they share both the event name and event_id. Derive that ID from something stable, like the order number. An ID minted from the clock at send time will differ on a retry, and Meta will count two purchases for one order. Our deduplication walkthrough covers the pairing in detail.

The expiry windows, in plain numbers

Safari's limits are the ones that break COD stores, because they are shorter than a typical delivery cycle.

Rule What it does
7-day cap on script storage Cookies set in JavaScript, plus localStorage, IndexedDB and sessionStorage, are cleared after 7 days without interaction with the site
24-hour cap after an ad click If the landing URL carried a click ID, cookies set by JavaScript on that page expire in 24 hours
CNAME and IP cloaking Cookies set in an HTTP response from a subdomain that resolves to a third party are capped at 7 days
Third-party cookies Blocked by default in Safari and Firefox

Read the second row again. The visitors Safari shortens to 24 hours are the ones who just clicked an ad. The people you most want to recognize are the ones the browser is most determined to forget.

The third row is worth understanding before you buy anything. Serving tracking from your own subdomain genuinely helps with delivery, because the request stops looking like the third-party request a blocklist matches on. It does not automatically buy a long cookie life in Safari, because a subdomain that points at someone else's server is still treated as someone else's. Delivery and persistence are two different problems, and most providers only answer the first one.

Work these in order. Jumping to the destination response while DNS is still broken is how a five-minute problem turns into an afternoon.

  1. dig +short track.yourdomain.com returns nothing. The CNAME has not propagated or points at the wrong target. Nothing downstream can work yet.
  2. curl -I https://track.yourdomain.com/healthz fails or returns 5xx. The container is not answering, or the certificate is wrong. That is provisioning, not tags.
  3. The realtime event log shows no hit. The snippet is missing, sitting too low in the page, or being blocked. Check the page source before touching tag logic.
  4. The hit arrives without fbp, fbc or a click ID. Capture is the failure. Look at links one through three above.
  5. The hit arrives with identifiers but the destination reports an error. That is the tag's credentials or payload mapping, and the destination's own response is the only evidence that matters. "Sent" is not "accepted".

The order we would fix things in

  1. Read the click ID on the first page load, before anything that defers scripts.
  2. Write it onto the order when the order is created, not when it is paid.
  3. Fire the purchase from the system that knows the sale happened, meaning the status change, not the thank-you template.
  4. Derive the deduplication ID from order data so both channels agree on it.
  5. Serve the collection request from your own hostname so it is not the request a blocklist is looking for.

Steps two and three do most of the work, and neither of them requires a new vendor.

What the platform handles, and what it can't

BonicBD's part is the operational half: a server-side GTM container on your own subdomain, the certificate, the collection endpoint, click-ID storage that outlives the browser copy where rules allow, consent state, bot filtering, and a conversion ledger that records what arrived so a missing event can be traced instead of guessed at. The Click ID Restorer guide explains the storage layer.

The tag logic and the platform credentials stay in your own Google Tag Manager container. That split is deliberate. Your Pixel ID and CAPI token belong in an account you control, and the deduplication key has to match what your browser tag sends, so it has to live somewhere you can see both sides at once.

What the platform cannot fix: a redirect chain that strips the parameter, a landing page on another domain that never forwards it, an event ID minted from a clock, or a storefront that never writes the identifier to the order. Those are all inside your own stack, and no amount of server-side routing reaches them.

The hop-by-hop walkthrough shows exactly where the platform sits in the chain, including the three checks that isolate one layer at a time.

FAQ

Does server-side tracking bypass ad blockers?

Partly. It changes the hostname the request comes from, so common blocklists are less likely to match it. It does not override a browser that has decided to block a request, and it does not recover a click that never carried an identifier.

Why does Events Manager show duplicate purchases?

Usually because the browser event and the server event carry different event_id values, so Meta cannot collapse them. Check the IDs before changing any tag. If both copies share an ID and one is marked Processed and the other Deduplicated, deduplication is already working and you are looking at one conversion, not two.

Is server-side tracking worth it if Safari caps cookies at seven days?

Yes, if the click ID ends up on your order record. Then the cap costs you browser-side session continuity, not the attribution of the sale. If the identifier never leaves the browser, you have paid for a container that forwards a poorer event slightly faster.

Do I need a custom subdomain to run server-side GTM?

For Meta CAPI alone, no. You can post events straight from your backend. A first-party subdomain matters when you want the browser side delivered first-party too, and it is the only part of the setup that needs access to DNS.

Can the browser Pixel and CAPI run at the same time?

You should run both. Deduplicated browser plus server events beat either one alone, as long as both carry the same event name and the same event_id.

The short version

Server-side tracking moves where the event is collected. It does not move where the identifier is captured, and that is the part that decides whether a purchase can be attributed at all.

Check the chain before you change the container. In most setups where the numbers dropped after a migration, the container is doing its job and one of the five links above was already broken.

Need help applying this article?

Compare the BonicBD feature set, review the setup guide, or contact the team if you want help with a live server-side GTM rollout.

Apply What You Just Read

Get a free tracking audit to see what your current setup is missing — or start a trial and test BonicBD on your own domain.