GA4 server-side tracking, Measurement Protocol
GA4 revenue that adds up to what your store sold.
GA4 server-side tracking through the Measurement Protocol: AxiTrace sends each purchase from your server to your GA4 property, with the client id and the session id your GA4 tag uses. GA4 files the sale under the visit it belongs to and counts it once. There is no Tag Manager container to build.
- All 9 platforms on every plan
- Free up to 10,000 visits a month
- No credit card
- Event purchase a recommended GA4 event
- Order number transaction_id one purchase per order
- Order value value, currency from the order in your store
- Products bought items ids, quantities and prices
- Shipping and tax shipping, tax
- GA client id client_id from the _ga cookie
- Session id session_id from the GA4 session cookie
- Visitor id user_id
- Time of the order timestamp_micros
- Page view page_view
- Product view view_item
- Add to cart add_to_cart
- Checkout started begin_checkout
- Order paid purchase
- Refund refund
GA4 gets the sale from your server as its own purchase event, with the order value, the products, shipping and tax.
The same client id and session id as your GA4 tag. The purchase joins the visit GA4 already recorded, with its source and campaign, and does not open a new one.
The steps before the purchase can go to GA4 as well, under its recommended event names. Leave them off when your GA4 tag already sends them.
What the GA4 tag misses
GA4 counts only the purchases its tag managed to send.
gtag.js runs in your buyer's browser and reports the purchase from the page after checkout. That is why GA4 shows fewer orders and less revenue than your store does.
-
up to 30%
of orders never reach the GA4 tag
Every conversion rate, every channel report and every ROAS figure in GA4 is worked out from the purchases that arrived.
-
1 in 3
shoppers uses an ad blocker
The pixel never loads. For Meta and Google that visit, and the order it ends with, never happened.
-
1 page
decides whether the purchase is reported
The thank-you page. A buyer who pays on the bank's or PayPal's site and closes the tab never opens it, so the pixel never fires.
How it works with GA4
From your server, into the visit GA4 already has.
AxiTrace takes each order your store recorded and sends it to your GA4 property through the Measurement Protocol, Google's server-to-server API for GA4. It reads the client id and the session id from the cookies your GA4 tag set, so the server event lands on the same user and the same visit.
- One purchase per order The order number goes out as transaction_id. GA4 keeps one purchase per transaction id, so tag and server never add up to two.
- Purchases first, the funnel if you want it Page views, product views and carts can be sent too. Next to a running GA4 tag, leave them off: GA4 deduplicates purchases only.
- Nothing to build No Tag Manager, no server container and no tag to write. Your events are mapped to GA4's recommended event names for you.
- GA4 tag Blocked by an ad blocker
- Server event purchase sent by AxiTrace
- Order number transaction_id
- GA4 counts One purchase
- GA4 tag purchase same transaction id
- Server event purchase same transaction id
- Order number transaction_id
- GA4 counts One purchase
The tag never reported this order. The server event is the only copy GA4 gets, so the revenue is in your reports after all.
Both copies carry the order number as transaction_id, so GA4 keeps one purchase. It does this for purchases only, not for page views or carts.
What changes
Fewer orders missing in GA4. Revenue you can check.
GA4 can only report what it received. With every purchase sent from your server, its numbers move towards the ones in your store.
-
Revenue
The purchases GA4 was missing
Orders the tag never reported now arrive with value, tax, shipping and products. Compare a day in GA4 with the same day in your store.
-
Channels
Sales land on the visit they belong to
The server event carries the client id and session id of your tag, so GA4 reports the purchase with that visit, not as a stray one.
-
Refunds
Returns lower GA4 revenue too
A refund your store records is sent as GA4's refund event with the same transaction id, so revenue in GA4 falls when yours does.
Setup
A Measurement ID and an API secret. Nothing to tag.
-
Install the app or plugin
Shopify, WooCommerce, PrestaShop, Shopware or Magento. Any other store uses one 11 KB script or a GTM tag.
-
Paste your Measurement ID and API secret
Both come from your web data stream in GA4 Admin, under Data Streams: the Measurement ID that starts with G- and a Measurement Protocol API secret you create there. Test connection checks them with GA4.
-
Choose the events to send
Purchases and refunds are the recommended set when your GA4 tag is running. A property with EU data residency gets Google's EU endpoint with one switch.
-
Watch the Event feed
The first events appear as soon as visits and orders come in, each with its platform and its status, so you can check the data before you trust it.
The facts
GA4 through the Measurement Protocol, in short.
- Plan
-
All 9 platforms on every plan, Free included. A plan is sized by visits, not by events or by platforms.
See pricing - Events sent
-
Purchases and refunds, and the rest of the funnel when you switch it on, all under GA4's recommended event names. Search, leads and sign-ups are sent where your store has them.
- page_view
- view_item
- add_to_cart
- begin_checkout
- add_payment_info
- purchase
- refund
- Matched on
-
The GA client id from the _ga cookie and the session id from the GA4 session cookie, so the event joins the user and the visit your tag recorded.
- client_id
- session_id
- user_id
- Deduplication
-
By transaction id, and for purchases only. GA4 keeps one purchase per order number. Any other event sent by both the tag and the server is counted twice.
- Consent
-
With the consent gate on, an event from a visitor who refused is not sent to GA4.
- Limits
-
A buyer whose browser blocked the GA4 tag has no _ga cookie. The purchase is still sent, under a client id AxiTrace builds, so GA4 counts the revenue but has no visit of its own to put it on.
- Tag Manager
-
Not needed. There is no container, no trigger and no variable to set up, on the web or on a server.
- Your data
-
Stored in the EU, on Google Cloud in Warsaw, under a data processing agreement.
Frequently asked questions
Something else on your mind? Ask us directly
How does AxiTrace send events to GA4 server-side?
Through the GA4 Measurement Protocol, Google's server-to-server API for GA4. AxiTrace takes the order from your store and sends it to your property as a purchase event, with the transaction id, value, currency and products, and with the client id and session id your GA4 tag set in the browser. Because the event leaves from a server, an ad blocker or a closed tab cannot stop it.
Why are my GA4 purchases lower than my store reports?
The GA4 tag reports a purchase from the buyer's browser, on the page after checkout. Ad blockers stop the tag, and a buyer who pays on the bank's site and closes the tab never opens that page. Together such losses hide up to 30% of orders. Your store has every one of them, and AxiTrace sends them to GA4 from there.
Does AxiTrace deduplicate GA4 events?
Purchases, yes. Every purchase goes out with your order number as its transaction id, and GA4 keeps one purchase per transaction id, so a sale reported by the tag and by the server is counted once. GA4 does this for purchases only. That is why purchases and refunds are the recommended set when your GA4 tag is running: a page view or a cart sent from both sides would be counted twice.
Do I keep gtag.js or my Tag Manager setup?
Yes. Your tag keeps recording visits, traffic sources and what people do on the page, which a server cannot see. AxiTrace adds the purchases the tag missed, with the same client id and session id, so they join the visits your tag recorded. When the tag already sends page views and carts, leave those switched off in AxiTrace.
What happens to an order when the GA4 tag was blocked?
It is still sent, so the revenue is in GA4. A browser that blocked the tag has no _ga cookie, so AxiTrace builds a client id from its own visitor id, and GA4 counts the purchase without a visit of its own behind it. In AxiTrace the same order keeps its full path, with every visit and ad click before it.
What do I need from GA4 to connect it?
Two values from GA4 Admin, under Data Streams, in your web data stream: the Measurement ID, which starts with G-, and a Measurement Protocol API secret you create on the same screen. Paste both into AxiTrace and press Test connection. If your property keeps its data in the EU, switch on the EU endpoint.
Which plan do I need?
All 9 destinations are on every plan, including the Free plan with 10,000 visits a month and no credit card. Each eligible AxiTrace session counts as one visit, however many events or platform deliveries it generates, so the plan you need depends on your traffic, not on how many platforms you connect.
Send GA4 the orders its tag is missing.
Free up to 10,000 visits a month. Pro and Business are free for 14 days, with no card and no automatic charge.
An agency, or more than 3M visits a month? Talk to us
- Data stored in the EU
- GDPR, with a DPA
- On the Shopify App Store
- Plugin on WordPress.org
- In ChatGPT and Claude