Cash-on-Delivery and Analytics: Measuring Confirmed Orders When Checkout Is Not the End
By Samarth Analytics · Published · Updated · E-commerce Analytics · 7 min read
Summary: For stores that offer cash on delivery, a completed checkout is a promise, not a sale. A meaningful share of COD orders are cancelled, refused at the door or returned to origin, and standard purchase tracking counts every one of them as revenue. This guide explains how to model the COD order lifecycle in analytics, what to send to GA4 and the ad platforms at each stage, how to report delivered revenue by channel, and how the same data helps reduce returns to origin.

Why cash on delivery breaks the purchase event
In most e-commerce tracking, the purchase event fires when the order is placed, and the order is treated as revenue. For prepaid orders that is close enough: the money has been taken, and the only later adjustments are refunds. For cash-on-delivery orders it is not. The customer has committed to nothing more than accepting a parcel. Orders are cancelled by phone, refused at the door, or returned to origin when the courier cannot deliver - and in many categories the share of COD orders that never turn into money is several times higher than for prepaid orders.
The tracking consequence is that every COD order looks identical to a paid order in GA4 and the ad platforms. Campaigns that attract impulsive COD orders appear efficient. Bidding algorithms learn to find more of the customers least likely to pay. For the many Indian stores where COD is still a large share of orders, this is often the biggest distortion in the whole analytics setup.
The lifecycle stages worth modelling
Start by agreeing the stages a COD order passes through, using the names your operations team already uses:
- Placed. The customer completes checkout with COD selected.
- Confirmed. The order is verified by phone, IVR or a WhatsApp message, and passed to fulfilment.
- Shipped. The parcel is handed to the courier.
- Delivered and paid. The customer accepts the parcel and pays.
- Cancelled, refused or returned to origin. The order ends without payment, at any point after placement.
Each stage happens in a different system - the storefront, the confirmation tool, the shipping aggregator, the courier - so the first job is making sure the order ID ties them together, along with the GA4 client ID and any ad click identifiers captured at checkout.
What to send to GA4
Keep the purchase event at placement, because that is when the customer's session happened and attribution needs it. Add a payment_type parameter, set to cod or prepaid, so every report can split the two.
Then send the outcome from the back end through the Measurement Protocol, using the stored client ID and the original transaction ID. When a COD order is cancelled, refused or returned to origin, send a full refund so GA4's net purchase revenue reflects reality, exactly as described for returns in returns and cancellations in GA4. Some teams also send a custom order_delivered event, which makes delivered orders countable directly; it is optional if refunds are reliable.
Note: Send the refund when the failed outcome is confirmed by the courier or the warehouse, not when a customer service agent marks a call as unanswered. Orders that are retried and delivered later should not be refunded and re-purchased.
What to send to the ad platforms
This is the harder decision, because the most accurate signal arrives last. There are three workable options:
- Optimise on placed orders, with predicted values. Send the purchase at checkout, but set the conversion value to the order value multiplied by the expected delivery rate for that order's segment - by pin code, product category or first-time versus returning customer. Bidding gets an immediate signal that already discounts likely failures.
- Optimise on confirmed orders. Send the conversion when the order passes confirmation, through a server-side event. It is a day or so later, but it removes the cancellations that happen before shipping.
- Optimise on delivered orders. Send the conversion server-side when the order is delivered and paid. It is the truest signal but can arrive many days after the click; check each platform's limits on how old an event can be when it is sent.
Many stores combine them: placed orders with predicted values as the primary signal, delivered orders as a secondary conversion for reporting, and a review every quarter of whether delivery-based bidding has become feasible. Whatever you send server-side alongside browser events needs consistent event IDs, as covered in conversion deduplication with match keys.
Building predicted values that are good enough
Predicted values sound sophisticated but can start simple. Take the last six months of COD orders and calculate the delivery rate - delivered and paid divided by placed - for a handful of segments the checkout knows about at the moment of purchase: pin code tier or state, product category, order value band, and whether the customer has a previous delivered order. Prepaid orders get a delivery rate close to one.
At checkout, look up the segment and multiply the order value by its delivery rate to get the value sent to the ad platforms. A first-time COD order of two thousand rupees in a segment that delivers sixty percent of the time is sent as twelve hundred; a repeat customer's prepaid order of the same size is sent at full value.
Refresh the table monthly, keep the segments coarse enough that each has a few hundred orders, and compare predicted against actual delivered revenue every month. If the predictions drift by more than a few percent, rebuild the table. Even this simple model moves bidding towards customers who actually pay, which is the whole point.
Reporting delivered revenue by channel
The report that changes decisions is delivered revenue by channel and campaign, with the return-to-origin rate next to it. Build it from the order system or the warehouse, joined to the original session's source through the transaction ID, and compare it with placed revenue. The channels whose ranking changes between the two are where budget should move.
Add a few segment cuts: COD share by channel, delivery rate by pin code tier, and delivery rate for first-time versus repeat customers. Prepaid share is worth treating as a KPI in its own right, because every point of prepaid share improves cash flow and margin as well as data quality. The reconciliation approach in ROAS that finance trusts applies directly.
Using the data to reduce returns to origin
Measuring COD outcomes is valuable on its own, but the same data makes the operational fixes measurable:
- Confirmation flows. Compare delivery rates for orders confirmed by WhatsApp, IVR and phone, and for unconfirmed orders.
- Prepaid incentives. Test a small prepaid discount or a COD fee, and measure the net effect on delivered revenue rather than on checkout conversion rate alone.
- Pin code rules. Restrict COD in pin codes with persistently low delivery rates, and watch whether total delivered revenue rises.
- Campaign targeting. Feed delivery-rate insights back into audiences and placements, excluding segments with poor outcomes.
Each of these lowers checkout conversion slightly and raises delivered revenue, which is exactly why they must be judged on delivered revenue.
Implementation checklist
- Order ID, GA4 client ID and click identifiers stored at checkout.
payment_typesent on every purchase.- Cancellations, refusals and returns to origin sent as refunds from the back end.
- A chosen ad platform signal - predicted values, confirmed orders or delivered orders - documented.
- Delivered revenue and delivery rate reported by channel, campaign and pin code tier.
- Server and browser events deduplicated with shared IDs.
- Monthly reconciliation of delivered revenue against the courier and finance records.
Final thoughts
With cash on delivery, checkout is the start of a sale, not the sale itself. Tracking only placed orders flatters the campaigns that bring the least reliable customers and trains bidding to find more of them. Model the lifecycle, send outcomes back to GA4 and the ad platforms, and report delivered revenue by channel, and both your reports and your return-to-origin rate will improve.
If COD is a large share of your orders, our e-commerce analytics team can help build this, and a free audit will estimate how far placed and delivered revenue diverge for your channels.
Topics: Meta CAPI, e-commerce growth, conversion tracking, GA4, eCommerce analytics
More articles on the Samarth Analytics blog · Markdown version of this article