Full order data sent to GA4 straight from the server — no more missing conversions

  • AI
  • Automation
  • Growth

Key facts about the project

The shopper placed an order, paid and closed the tab on the payment provider's page. The store accepted the order, but Google Analytics 4 might not have recorded it at all. Why? The purchase was measured only once the shopper came back to the thank-you page.

At Aurora Creation we restored sending the data directly from the store's server. Now placing the order is enough to send its value, product list and transaction ID to GA4.

  • When it is sent

    The order is placed in the online store

  • Data sent

    Cart value and contents, with the transaction ID

  • How it was verified

    The store's order list matched against the server's send log by order number

Scope of work

  • We restored the server-side purchase event after the store moved to the Hyvä theme.
  • We aligned the transaction ID and the way the purchase value is calculated across both data sources.
  • We added a marker that tells server-side events apart from those sent by the browser.
  • We checked the sending on the store's side, and the agency running the campaigns confirmed the server-side purchases were visible in GA4.

Why did the store have an order that marketing could not see?

Before the theme change, the store's server reported the purchase to GA4. An analytics module handled it, and that module was retired during the migration. After the change, only the browser tag was left. It could fire if the shopper had consented to analytics and opened the thank-you page.

For the people running the store, the return from the payment gateway mattered little. The order was already in the admin panel. For the marketing team, that same step decided whether the purchase showed up in the report. It mattered for advertising too: the agency settled the campaigns on GA4 data and imported conversions from there into Google Ads.

Project timeline

  1. 01Before the migrationThe store sent data to GA4 from the server the moment the order was placed.
  2. 02After the theme changeThe measurement depended on the tag firing on the thank-you page.
  3. 03After the rolloutThe server reports the purchase again the moment the order is saved, and the browser tag still covers shoppers returning to the store.

How does one order get from the store to GA4?

Step by step

  1. 01The shopper places the order.The store saves it and gives it a number. That moment triggers the send, even while the shopper is only moving on to payment.
  2. 02The server prepares the purchase data.The purchase event carries the transaction ID, currency, order value, product list, tax, shipping cost and the discount code used. The server calculates the amounts the same way the thank-you page does.
  3. 03The store sends the purchase to GA4.If the shopper has consented to analytics and the identifiers of their visit are available, the event also carries the data that ties the purchase to the session and the traffic source.
  4. 04A return to the store may trigger a second signal.When the browser reports the purchase too, both events share the same transaction_id. This lets GA4 recognise the same transaction. We also marked the server-side event with the parameter event_source = server.
Discover store growth with AURORA EVOLUTION
Illustration only: a fictitious Order A and its data.

The same purchase before and after the rollout

The same move by the shopper. The order of events makes the difference.
The same purchase before and after the rollout
What does the shopper do?Before the rolloutAfter the rollout
Pays online and closes the tab at the payment provider.The thank-you page does not open. The tag does not report the purchase.The server sent the event the moment the order was placed.
Returns to the store and has consented to analytics.The tag on the thank-you page may report the purchase.The server reports the purchase. The browser tag may pass on the same transaction ID.
Places the order but does not complete the payment.Saving the order in the store does not by itself trigger a send from the browser.The server reports the placed order. The team checks in the store whether it was paid.

Pays online and closes the tab at the payment provider.

Before the rollout

The thank-you page does not open. The tag does not report the purchase.

After the rollout

The server sent the event the moment the order was placed.

Returns to the store and has consented to analytics.

Before the rollout

The tag on the thank-you page may report the purchase.

After the rollout

The server reports the purchase. The browser tag may pass on the same transaction ID.

Places the order but does not complete the payment.

Before the rollout

Saving the order in the store does not by itself trigger a send from the browser.

After the rollout

The server reports the placed order. The team checks in the store whether it was paid.

What did the first days of operation show?

After the integration went live, the server was receiving an HTTP 204 response, but the agency running the campaigns still could not see purchases from this source in GA4. We checked the configuration and corrected the access key used in the store. From then on the agency confirmed that transactions sent from the server were visible.

We then checked the result in two places:

  • On the store's side we compared the list of online orders with the send log. Over the period checked, every order placed had exactly one matching entry in the server's log.
  • On the GA4 side the agency recorded a day on which the number of transactions logged exceeded the number of thank-you page views. So purchases were visible beyond the path the browser had measured before.

For the e‑commerce team, what changed above all was the moment of measurement. The shopper may end the visit at the payment provider, and the store has already passed on the information about the placed order. Marketing gets a fuller picture of purchases this way, even when some of them cannot be attributed to a specific campaign.

Every order checked had one entry in the send log

GA4The agency confirmed the server-side purchases were visible

Common questions about measuring orders from the server

Let's talk about measuring orders in your store

In this store the purchase event means that an order was placed on the website. The server sends it before the payment is confirmed. Later cancellations and refunds do not automatically correct the value in GA4, so the team checks settled sales in the store system.

Tying a purchase to a visit requires the right identifiers. When the shopper has consented to analytics and the store has that data, GA4 can link the purchase to the session. Without a session identifier the order may be visible without any campaign information.

The mechanism fires when a shopper places an order on the website. Orders created by staff in the admin panel stay outside this measurement.

Is your store taking more orders than you see in GA4?

If you see discrepancies after changing the theme, the analytics module or the payments, it is worth starting from one specific order. We will check when the store saved it, what triggered the send and whether the same transaction ID can be found in GA4.

Małgorzata Gudalewska, Head of Sales at Aurora Creation

Małgorzata Gudalewska

Head of Sales

+48 664 531 867m.gudalewska@auroracreation.com
biuro@auroracreation.plul. Jana Henryka Dąbrowskiego 28, 15-872 Białystok, Poland
See AI and automation services
No files chosen

This form is protected by reCAPTCHA — the Google Privacy Policy and Terms of Service apply.

Enquiry sent

Thank you, we'll get back to you within 1 business day.

The enquiry has not been sent

We have marked the fields that need filling in or correcting.

Cookie settings

Each category can be switched on separately. We keep your choice in this browser and ask again after a year (after three months if you refused them all), or when what we use cookies for changes.

Necessary

Always on

These keep the site running: bot protection, content delivery and the contact chat. The site does not answer without them, so they cannot be switched off.

These remember your settings, a chosen language for instance. We use no such file today — the category exists so that we need not ask you again once one appears.

These show us which pages are read and where visitors stop — including as a recording of the visit, with form fields masked. Collected in aggregate, to improve the site.

These let us measure how our advertising performs and show it to people who have been here before.