Check a partial refund in GA4

Match the returned item and quantity to the original transaction.

Performance creative2 min read

Order T-104 contains two mugs at $20 each and one tray at $15. The customer returns one mug. A refund for the whole $55 order would overstate this return. Compare the refund event with the actual returned item and amount.

Trace the refund to its purchase

Find the original purchase and the corresponding refund event in the data sent to GA4. The refund should use the original transaction_id, T-104. For item-level refund reporting, Google recommends sending item details in items. Google's ecommerce guide.

  • Purchase: transaction_id is T-104; two mugs and one tray total $55.
  • Partial refund: the same transaction_id is T-104; one mug totals $20.

For this example, the refund item has the mug's item_id, price: 20 and quantity: 1. Set event-level value to the refunded items' price multiplied by quantity, so 20 × 1 = 20, and send currency: "USD". Google specifies that value excludes tax and shipping. The tray and other mug stay out of the refund's items array. Google's event reference.

For a gtag.js implementation, this example shows the event parameters. Use the actual order and item values from your integration:

JavaScript
gtag("event", "refund", {
  transaction_id: "T-104",
  value: 20,
  currency: "USD",
  items: [{ item_id: "mug", price: 20, quantity: 1 }]
});

Verify the event

Trigger a test partial refund in a test environment and inspect refund in DebugView. Expand its event parameters and the items tab, then compare the transaction ID, item ID, quantity, value and currency with the refund record. Check that the tray is absent and the mug quantity is one. DebugView confirms the parameters received for that event; check processed reports after data is available. Google's ecommerce validation guide.

If the purchase itself has an empty transaction ID, fix the purchase mapping first.

Marketing workflow
All guides
Check a partial refund in GA4 | Formatry Media — Formatry