GA4 Refund Tracking: Send the Refund Event and Adjust Refunded Conversions in Google Ads
For store owners and agencies whose GA4 and Google Ads revenue ignores returns: how the GA4 refund event works, the transaction ID rule that makes it match, how to send it from a refund webhook, and how to retract or restate Google Ads conversions.
In short
GA4 only knows about a refund if you send a refund event carrying the same transaction_id as the original purchase. Refunds happen in your store admin, not in the shopper's browser, so no tag fires: the event has to come from your server through the Measurement Protocol. Google Ads needs a separate conversion adjustment.
GA4 refund tracking means sending GA4 a refund event every time you give money back, with the same transaction_id as the purchase it reverses. Out of the box, nothing does this for you. A refund happens in your store admin or payment provider, not in the shopper's browser, so no tag fires and GA4 keeps counting the full sale. The event has to come from your server. Google Ads needs its own fix, a conversion adjustment that retracts or restates the original conversion. This guide covers both, and what you can and cannot correct in Meta and TikTok.
Why refunds never reach GA4 on their own
Analytics tags run in the browser while someone is on your site: they see product views, checkouts and the order confirmation page. A refund happens days or weeks later, when you or your support team clicks Refund in the store admin or in a payment dashboard. No shopper loads a page, so gtag, Google Tag Manager and any plugin that only adds browser code have nothing to react to. Shopify makes the gap visible: its Web Pixels API has 15 standard customer events, including page_viewed and checkout_completed, and none of them is a refund.
The result is that GA4 revenue is overstated by exactly the money you returned, and so is the return on ad spend you work out from it. It is one of the definitional gaps covered in our guide to why Shopify and GA4 revenue differ.
The GA4 refund event, parameter by parameter
refund is one of Google's recommended ecommerce events. Its parameters mirror the purchase event, with one field doing the real work.
| Parameter | Required? | What to send |
|---|---|---|
| transaction_id | Yes | Exactly the ID sent on the purchase event for this order |
| value | Needed for revenue reporting | The refunded amount: price times quantity of the refunded items, without shipping or tax |
| currency | Yes, whenever value is set | A three-letter ISO 4217 code such as GBP, the same as the purchase |
| items | No, but recommended | Each refunded item with item_id (or item_name) and quantity, so item-level refund metrics work |
| shipping, tax, coupon | No | Only if you want refunded shipping or tax recorded separately |
For a full refund, send the whole order value and every item. For a partial refund, send only the items that came back and only their value. Google recommends including items in refund events so that item-level refund metrics work: without them GA4 can reduce order revenue but cannot say which product was returned.
Worked example: one jacket comes back
Order 1042 contains two jackets at £60 (item_id JKT-01) and a hat at £20 (item_id HAT-07), so the purchase event had value 140 and currency GBP. The customer returns one jacket. The refund event carries transaction_id 1042, value 60, currency GBP and one item: item_id JKT-01, quantity 1. GA4 defines Purchase revenue as revenue from purchases minus any refunds, so the order now counts as £80 there. Gross purchase revenue, which ignores refunds, still shows £140, and Refund amount shows £60.
The matching rule: decide on one transaction ID
GA4 ties a refund to its sale through transaction_id, and Google Ads matches adjustments on transaction ID plus conversion action name. If the purchase was sent with one identifier and the refund with another, nothing lines up: the refund cannot be traced to the order it belongs to, and Google Ads rejects the adjustment as a conversion it cannot find.
The trap is that most stores have two identifiers per order. Shopify has a long internal order ID and an order name such as #1042 that customers see, and its refunds/create webhook gives you the internal order_id. If your purchase tag sends the order name, your refund code must look it up first. Before writing any code, open Explore in GA4, build a free-form exploration with the dimension Transaction ID and the metric Purchase revenue, and look at which format your purchases actually arrive in. Google's own rules for the ID still apply: unique per order, never empty, and free of personal information. If purchases arrive without revenue at all, fix that first with our guide to missing GA4 purchase revenue.
How to send refunds to GA4 from your server
Because no browser is involved, the refund goes through the GA4 Measurement Protocol, Google's server-to-server API for sending events with a measurement ID and an API secret. Our Measurement Protocol guide covers creating the secret and the request format. For refunds, the work is in these steps.
- 1Save the GA4 client_id with each order at checkout. A web stream request needs one, and reusing the shopper's own value keeps the refund attached to the same user. A made-up client_id makes GA4 treat the refund as coming from a different user.
- 2Subscribe to your platform's refund notification (see the table below), so your server is told about every refund, full or partial.
- 3Build the event from the notification: look up the transaction ID you used on the purchase, add the refunded items and their value, and set the currency.
- 4Send it straight away. The Measurement Protocol accepts timestamps up to 72 hours in the past, so a batch job that runs weekly would lose the real refund dates.
- 5Log every request and response, so a failed send can be retried rather than silently missing.
| Platform | Refund notification | What to know |
|---|---|---|
| Shopify | The refunds/create webhook | The payload includes order_id and refund_line_items with line_item_id, quantity and subtotal for each item |
| WooCommerce | A webhook with a custom topic, for example action.woocommerce_order_refunded, set up under WooCommerce > Settings > Advanced > Webhooks | The core order topics are only order.created, order.updated and order.deleted. A custom action topic sends only the hook's first argument, here the order ID, so your code fetches the refund details itself |
| Stripe | The charge.refunded or refund.created event | Stripe says charge.refunded fires for partial refunds too. You must map the Stripe payment back to your order's transaction ID |
Some plugins and connectors offer refund tracking. Before relying on one, check that it sends refunds from the server, because a plugin that only adds browser code has the same blind spot as a tag. The WooCommerce server-side tracking guide and our Stripe Checkout tracking guide show how those setups fit together.
How to test a refund and find it in GA4
- Place a real, low-value order with two different items and note its transaction ID.
- Refund one item from the store admin, then check the webhook delivery log and your server log for a successful request.
- A day later, in Explore, build a free-form exploration with the dimension Transaction ID and the metrics Gross purchase revenue, Refund amount, Refunds and Purchase revenue.
- Filter to your test order: gross revenue should be the full order, Refund amount the refunded part, and Purchase revenue the difference.
- Swap the dimension to Item ID and add Item refund amount to confirm the right product was refunded.
Once refunds arrive, Purchase revenue and Item revenue are net of refunds, while Gross purchase revenue and Gross item revenue are not.
Google Ads: retract or restate the conversion
A GA4 refund does not change conversions recorded by the Google Ads tag. For those, Google Ads has conversion adjustments, which come in two types.
| Adjustment | What it does | Columns that change | Bidding affected |
|---|---|---|---|
| Retract | Removes the conversion and sets its value to 0 | Conv., Conv. value, All conv. value | CPA and ROAS bidding |
| Restate | Changes the value and keeps the conversion | Conv. value, All conv. value | ROAS bidding only |
For order 1042 you would restate the conversion to 80. A full refund is a retraction. The rules that catch people out:
- Online conversions can be adjusted only if a transaction ID was sent with them.
- A retracted conversion, or one restated to 0, cannot be adjusted again. Later uploads are ignored without an error.
- Google says adjustments can be made within 54 days, count for automated bidding for up to 7 days after the conversion is first recorded, and work best uploaded at least 24 hours after the conversion.
- To upload, go to Goals, then Conversions, then Uploads, click the plus button, choose View templates and download the Conversions adjustments template. Its columns are Order ID, Conversion Name, Adjustment Time, Adjustment Type (RETRACT or RESTATE), Adjusted Value and Adjusted Value Currency.
- New conversions and adjustments cannot share a file. Use scheduled uploads if refunds are frequent.
- Google's API documentation lists only website, uploaded-click and Salesforce conversion actions as adjustable, so a purchase conversion imported from GA4 cannot be corrected this way.
The upload works like an offline import, explained in our guide to Google Ads offline conversion import.
Meta and TikTok: judge refunds outside the ad platform
Meta's Pixel reference lists 17 standard events, including Purchase, Lead and AddToCart, and none of them is a refund. Neither that reference nor Meta's Conversions API event parameters describe retracting a Purchase once it has been sent. We could not confirm whether TikTok offers a correction method, so check TikTok's Events API documentation before assuming either way. Unless you find a documented method, assume the revenue both platforms report stays gross. The workable answer is to judge Meta and TikTok campaigns on net revenue outside the ad platform, using your store's order and refund data matched to the campaign recorded on each order, such as its UTM campaign. GA4 is less reliable here: Google says Measurement Protocol events that arrive more than 48 hours after the related browser activity may not be processed as expected for attribution, so a late refund may not sit under the campaign of the original sale.
When refund tracking is worth the effort
- Probably not yet: refunds are rare, bidding is manual or based on conversion count, and a monthly net revenue check catches anything unusual.
- Worth doing: you sell in high-return categories such as clothing and shoes, where gross revenue flatters every channel and some campaigns far more than others.
- Essential: you use value-based bidding such as Target ROAS. Uncorrected values teach Smart Bidding that refunded orders were worth their full price, and in Google Ads only adjustments correct that.
- Essential: clients or finance compare your ad reports with what actually stayed in the bank account.
Frequently asked questions
If a customer is refunded a month later, does GA4 change the original purchase date?
No. The refund is a separate event with its own timestamp, and the Measurement Protocol only accepts timestamps up to 72 hours in the past. A refund sent weeks after the sale reduces Purchase revenue in the period it arrives, while the original month still shows the full sale. Compare periods with that in mind, or report on Gross purchase revenue alongside Refund amount.
Can I fire the refund event from Google Tag Manager instead of a server?
Only in a fragile way. A web container runs when someone loads a page that contains it, so you would need staff to open a special page for every refund, and those visits would create sessions of their own. Refunds also happen in places no tag can reach, such as a payment provider dashboard or an automated return flow. A server listening for refund notifications is the reliable route.
My Google Ads purchase conversions were recorded without a transaction ID. Can I still adjust them?
Not the ones already recorded. Google states that online conversions can only be adjusted if a transaction ID was sent with them, because the adjustment is matched on transaction ID plus conversion action name. Add the order ID to your Google Ads purchase tag now, using the same value GA4 receives, and every conversion from then on becomes adjustable.
Should a cancelled order be sent to GA4 as a refund?
Yes, if a purchase event was already sent for it and the money is returned. To GA4 a cancellation after payment is the same as a full refund: send the refund event with the original transaction_id and the full value. If an order was cancelled before any purchase event fired, there is nothing to reverse, so send nothing.
Sources
- 1.Measure ecommerce - Google Analytics - Google for Developers
- 2.Analytics dimensions and metrics - Analytics Help
- 3.Send Measurement Protocol events to Google Analytics - Google for Developers
- 4.About conversion adjustments - Google Ads Help
- 5.How to adjust your conversions - Google Ads Help
- 6.Standard Events - Shopify Web Pixels API
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required