How to check a GA4 purchase transaction ID in Chrome
A GA4 purchase request can contain a value and still be missing the order identifier. I checked this with two local PixelScope fixtures. The complete fixture exposed purchase, T9, 20 and EUR. The second fixture kept the
A GA4 purchase request can contain a value and still be missing the order identifier. I checked this with two local PixelScope fixtures. The complete fixture exposed purchase, T9, 20 and EUR. The second fixture kept the value at 20 and omitted both the currency and the transaction ID. PixelScope surfaced each missing field separately. The fixtures exercised the parser and checks without sending real orders to Analytics.
Check one order twice
- Open Chrome DevTools on a checkout you control. In Network, enable Preserve log and complete a test order.
- Filter for
g/collect. Find the request with event namepurchase, then check the measurement ID, transaction ID, value and currency. The fixture carries the ID asep.transaction_idand the numeric value asepn.value. Look at the request payload too if the fields are absent from the URL. - Reload the confirmation page if the test checkout allows it. If another purchase request appears, compare IDs with the first request. Then complete a different test order and confirm that order gets a different ID.
- Check the event in the intended GA4 property. Google's validation guide explains its handling of repeated ecommerce events with the same transaction ID. Google Analytics validation guide
An ID that changes on every reload usually means it was generated when the page opened. An ID shared by every order usually means the tag used a static value. In either case, start by checking the order ID variable as it enters the tag or data layer.
PixelScope is a free Chrome extension I build that displays these browser-side fields. It can help find the request; the GA4 property is where you verify collection.
Disclosure: AI generated this draft from the project fixtures and Google's documentation.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.