Server-side e-commerce tracking

Server-side e-commerce tracking sends every order through your own tagging server, so ad blockers and lost confirmation pages stop costing you purchases in GA4. 6 articles

Every revenue number in GA4 comes from one event with a strict shape: purchase, with a unique transaction_id, a value, a currency and an items array. E-commerce tracking in GA4 with Google Tag Manager builds it step by step, with the funnel events, the test order and the five mistakes that break revenue. Start there.

Through a server container, nothing in that setup changes, but ad blockers no longer remove the purchase hit. On a typical Dutch shop, 10 to 20 percent of orders are invisible to browser-only GA4. The shop's backend can also send the order itself once payment is confirmed, deduplicated against the browser copy with a shared event ID. The plugins for WooCommerce and Shopware do this, and Profit Tracking adds the profit of each order so campaigns can bid on margin.

Start here: E-commerce tracking in GA4 with Google Tag Manager

Server-side e-commerce tracking

Frequently asked questions

How do I track e-commerce in GA4?

Push the GA4 e-commerce events into the data layer, starting with purchase on the order confirmation page, and send each one with a GA4 event tag in Tag Manager with Send Ecommerce data ticked. Place a test order, check it in DebugView, and compare the Monetization reports with your shop the next day. The GA4 e-commerce guide has every step.

Why does server-side tracking matter for a webshop?

A purchase hit that goes through your own server container is not removed by ad blockers, and the GA4 cookie lasts longer on Safari, so the order is credited to the campaign instead of to direct. A server-side purchase from the shop's backend also catches orders whose confirmation page never loaded, such as a closed tab or a payment page that never returned.

Will GA4 count an order twice with a browser and a server copy?

Not when both copies share an event ID. The WordPress and Shopware plugins send the server-side purchase with the order number as the deduplication key, so GA4 counts the order once. Double orders do come from a confirmation page opened again in another browser or from a bookmark, or from two separate purchase events, such as a plugin and a custom script.

Put it into practice

Start free, no credit card required.

Start free