Why send conversions to Google Ads, Meta and other ad platforms server-to-server
Pixels lose leads and sales to blockers, consent banners and offline payments. How server-to-server conversions work on every major ad platform, cookie-free.
Published 11 min read
- Tracking
- Conversions
- S2S tracking & conversions
On this page
- What a browser pixel misses
- How server-to-server conversions work
- A worked example
- What Google Ads needs
- What Meta needs
- LinkedIn, TikTok, Microsoft and ChatGPT Ads
- Duplicates, event ids and order ids
- Consent, time zones and currency
- Without cookies and without personal data
- How it is set up in Loomark
- How to check that it works
- Common mistakes
- Questions we get a lot
Ad platforms optimise bidding on the conversions they see. When a conversion never reaches them, the campaign that produced it looks worse than it is — and the algorithm moves budget away from it. Browser pixels are the usual way to report conversions, and they miss more and more of them.
This article explains what server-to-server (S2S) conversions are, what each major ad platform needs to accept them, and how to check that the setup really works. It is written for in-house marketers who run several brands and want the platforms to learn from real leads and real sales, not from whatever a browser script managed to report.
What a browser pixel misses
- Blocked scripts. Content blockers and browser privacy features stop third-party tags from loading or from sending requests.
- Declined consent. If the visitor refuses tracking in the consent banner, the pixel should not fire — and the conversion is lost to the ad platform.
- Conversions that happen elsewhere. A paid order confirmed by the payment provider, a lead qualified by sales, a deal won in the CRM days later — none of these happen on a page where a pixel runs.
- Refunds. A pixel can report a purchase, but nothing tells the platform that the order was returned.
The result is a feedback loop that rewards the campaigns whose buyers happen to keep the pixel working, rather than the campaigns that bring revenue.
There is a quieter problem too. A pixel usually fires on a “thank you” page. That page tells you a form was sent or a checkout was completed — not that the payment went through, that the lead was a real person, or that the order was not cancelled an hour later. So even the conversions a pixel does catch are often the wrong ones to bid on.
How server-to-server conversions work
Instead of the browser telling the platform about a conversion, your server does it. The only thing that has to survive from the ad click to the conversion is an identifier of the click.
01
Ad click
The click gets an id
02
Website
The id travels in the landing page address
03
Order or lead
Your site or CRM stores the id with it
04
Event
Sent from the server with the id
05
Ad platform
Receives the conversion by click id
Because the event is sent from a server, it does not depend on scripts in the visitor’s browser, and it can be sent at the moment the money actually arrives — after payment, after qualification, or when a refund is issued.
Two ids are involved, and it helps to keep them apart. The platform click id (gclid, fbclid, ttclid and so on) is what the ad platform uses to find the click. The tracker’s own click id — in Loomark it is mk_cid — is what your website and CRM keep with the order. When the conversion happens, the tracker looks up its click by mk_cid and finds the platform click id that came with it. Your developers only ever handle one id, whatever the traffic source.
A worked example
A made-up example to show the moving parts. A furniture brand runs a Google Ads search campaign and a Meta campaign. Each order is paid online, and some are returned within two weeks.
- Step 1On Monday a person clicks a Google ad. The click arrives with
gclid, the tracker records it and gives it its ownmk_cid(22 letters and digits). - Step 2The person browses, leaves, comes back the same day and places an order. The website stored
mk_cidin the session and saves it with order 1001. - Step 3The payment provider confirms the payment on Tuesday. The website server sends a
purchaseevent:event_id“order-1001”,order_id“1001”, value 640, currency EUR,mk_cid. - Step 4The tracker finds the click, sees
gclidand uploads a click conversion to Google Ads with the conversion time, value, currency, order id and consent signals. - Step 5Ten days later the order is returned. The website sends a
refundevent for order 1001. The tracker retracts the purchase in Google Ads by its order id.
The browser was never involved after the landing page. If the visitor had an ad blocker or declined the banner, nothing changes: the order still carries mk_cid, and that is enough.
What Google Ads needs
- A click id from the ad:
gclid, orgbraid/wbraidfor some iOS traffic. Turn on auto-tagging so links carry it. - A conversion action of the type Import → “Track conversions from clicks”. Create separate actions for leads and purchases; make micro-events such as cart or checkout secondary so they do not skew bidding.
- The conversion time and value, and the click within 90 days.
- Consent signals for users in regions that require them:
ad_user_dataandad_personalization.
A refund can be reported too: Loomark retracts the purchase conversion by its order number, so Google stops counting revenue that was returned.
A few details cause most upload errors. Google accepts exactly one click identifier per conversion, so if a click has a gclid, that is the one to send; gbraid and wbraid are used only when there is no gclid. The conversion time must include a time zone offset — Loomark always sends it in UTC, so the account time zone does not matter. Send an order id with purchases: a later retraction is matched to it. The rules are in Google’s guides to uploading click conversions and conversion adjustments.
What Meta needs
- The Conversions API: a dataset (pixel) ID and an access token generated in Events Manager.
- The click id
fbclidfrom the ad link, sent as thefbcparameter. Without it Meta cannot link the event to an ad. - Events no older than 7 days.
- If the pixel stays on the website, the same
event_idfor the browser event and the server event. Meta merges them and counts the conversion once.
fbc has a fixed format: fb.1. + the click time in milliseconds + . + the fbclid value. Loomark builds it from the recorded click, so the website does not need to read Meta’s cookie. Events from the website go with the action source “website” and the page address; events from a CRM or a postback go as “system_generated”. How Meta merges browser and server events is described in its guide to deduplicating pixel and server events.
LinkedIn, TikTok, Microsoft and ChatGPT Ads
The other platforms follow the same idea — a click id from the ad link plus a server call — with their own ids and time limits:
| Platform | Click id | API | Accepts |
|---|---|---|---|
li_fat_id | Conversions API, conversion rules with the Conversions API method | 90 days after the event | |
| TikTok | ttclid | Events API: pixel code and an Events API token | 7 days after the event |
| Microsoft Advertising | msclkid | Offline conversion goals | 90 days after the click |
| ChatGPT Ads | oppref | Conversions API: Pixel ID and a Conversions API key | 7 days after the event |
In practice the differences are small. Microsoft needs offline conversion goals created in the account before the first upload — at least two hours before. ChatGPT Ads adds oppref to the link by itself, and Loomark stores it from the landing page address. LinkedIn has no test mode, so send one test event and check the delivery log before you rely on it.
Duplicates, event ids and order ids
Most double counting comes from the same conversion arriving twice: from the pixel and the server, from a resent request, or from a CRM automation that fires on every save. Three habits prevent it.
- Give every event a stable
event_idthat comes from your own data, such as “order-1001” or “lead-58213”. Loomark counts the same event with the sameevent_idonce, so a resent request does not create a second purchase. - If a pixel also runs on the website, send the server event with the same
event_idthe pixel used. Meta and TikTok use it to keep one copy. - Send
order_idwith every purchase. It is the key for retracting that purchase in Google Ads later.
Consent, time zones and currency
- Consent. If your website asks for consent, pass the answer with the event as
consent.ad_user_dataandconsent.ad_personalization(“granted” or “denied”). Loomark forwards them to Google Ads. An event without consent data is sent as “unspecified”, so do not leave it out for users in regions where consent is required. - Time. Send
occurred_atas an ISO date with a time zone, for the moment the conversion really happened — the payment, not the minute your script ran. If it is missing, Loomark uses the time it received the event. - Currency. Send the currency code of the order (
EUR,USD,PLN). The platforms convert values to the account currency themselves. Loomark’s own reports convert spend at the ECB rate of the day.
Without cookies and without personal data
Server-side conversions are often sold together with hashed emails and phone numbers. That is not required to make click-based attribution work. In Loomark the click id travels in the landing page address as mk_cid, and your website or CRM keeps it with the order:
- No cookie is set by default; a first-party cookie can be switched on per tracking domain if you decide so with your lawyer.
- The IP address and the User-Agent of a click are not stored. Unique clicks are counted with a salted hash, and the daily salt is deleted after two days.
- Email, phone, name and address fields are dropped from incoming events.
The trade-off is honest: a conversion without a platform click id cannot be matched by the platform. Platforms also offer matching by hashed contact details, such as Google’s enhanced conversions for leads. Loomark does not send personal data, so those conversions stay in your own reports instead of going to the platform.
How it is set up in Loomark
- Step 1Connect a tracking domain — a subdomain of your website such as
go.example.com— and create a tracking campaign for each ad campaign. - Step 2Add an event source: your website server sends HMAC-signed events, or your CRM calls a postback link on status change.
- Step 3Add destinations under Tracking → Send to ad platforms: Google Ads, Meta, LinkedIn, TikTok, Microsoft Advertising, ChatGPT Ads or your own postback URL. With a connected account the wizard does most of the work: it creates “Loomark — Lead” and “Loomark — Purchase” conversions in Google Ads and LinkedIn, and lists the Meta pixels to pick from — sending then uses the connected access, without a token.
- Step 4Check the destination in test mode where the platform has one: Google and ChatGPT Ads only validate the request, Meta and TikTok show it under Test events, Microsoft uses its sandbox. Then switch test mode off.
- Step 5Watch the delivery log. If a platform does not answer, Loomark retries after 5 minutes, 30 minutes, 2, 12 and 24 hours; deliveries that cannot be sent — no
gclid, the platform window expired — are listed with the reason.
Each destination has an event map: what happened on the left, the conversion it becomes in the ad account on the right. Rows you leave empty are not sent. That is where you decide that a cart is not worth sending to Google, or that a refund should retract the purchase. Destinations belong to a brand, so each brand sends only its own events to its own ad accounts.
Details of every setting are in Conversions to ad platforms. The module itself is described on the S2S tracking & conversions page.
How to check that it works
- Step 1Click your own ad and find the click on the Clicks tab with its
mk_cidand platform click id. - Step 2Place a test order or send a test event with
"test": true. It appears on the Events tab marked “test”, and it goes only to destinations in test mode. - Step 3Open the delivery log. For each event and destination you see the status, the number of attempts, the platform’s answer and “What was sent”.
- Step 4In the ad platform, look for the event under Test events (Meta and TikTok). For Google, test mode only validates the request, so check the platform’s answer in the log.
- Step 5Switch test mode off and follow one real order through to the ad account.
Common mistakes
- Auto-tagging is off in Google Ads or Microsoft Advertising, so clicks never carry
gclidormsclkid. The delivery log then shows the delivery as skipped: the click has nogclid. - The website keeps
mk_cidin the session but does not save it with the order, so the payment event arrives without it. - The purchase event is sent when the order is created, not when it is paid. The platform learns from unpaid orders.
- Lead and purchase go to the same conversion action, so bidding cannot tell them apart.
- The pixel and the server send the same purchase with different
event_idvalues, and Meta counts it twice. - Test mode is left on after the launch, and nothing reaches the live account.
Questions we get a lot
- Do I have to remove the pixel?
- No. Many teams keep it for audiences and page events. Send server events with the same
event_idas the pixel, and Meta or TikTok keep one copy. - What if a conversion has no click id?
- It is not sent to that platform. The delivery log lists it as skipped with the reason, and the conversion still counts in your Loomark reports.
- Does this work without cookies?
- Yes. The click id travels in the landing page address, and your website or CRM keeps it with the order. A first-party cookie is optional and off by default.
- How quickly does a conversion reach the platform?
- Loomark sends it as soon as the event arrives. If the platform does not answer, retries run after 5 minutes, 30 minutes, 2, 12 and 24 hours.
- Can I send conversions for several brands?
- Yes. Destinations belong to a brand, so each brand sends to its own ad accounts and only its own events go there.
- What about refunds?
- A refund event retracts the purchase in Google Ads by its order id. Other platforms have no simple undo; there you can send a separate event instead.