GA4 ecommerce tracking records events such as view_item, add_to_cart, begin_checkout and purchase, so you can see where shoppers drop off. Google notes these events are not sent automatically; your platform or developer adds them. For cash on delivery stores, also record refused parcels with the refund event, so revenue figures stay honest.

Key Takeaways

  • Ecommerce events must be added to your store; GA4 does not collect them automatically.
  • The core funnel is view_item, add_to_cart, begin_checkout, add_payment_info and purchase.
  • Record payment method so you can compare cash on delivery with prepaid orders.
  • Use the refund event for refused or returned COD orders, otherwise revenue looks better than it is.
  • Watch a handful of numbers weekly rather than every report GA4 offers.

What Is GA4 Ecommerce Tracking?

Google Analytics 4 can show how shoppers move through your store, from viewing a product to paying, and where they give up. GA4 ecommerce tracking works by sending named events with product and order details. Google's Analytics Help states that ecommerce events are not sent automatically: they must be added to your website, app or Tag Manager set-up, although some platforms, including Shopify through its pixel, send some of them for you. Reports can take up to 24 hours to fill, and DebugView shows events in real time while testing.

Tracking matters most once the basics in our store start-up guide are in place.

Which Events Should a Store Track?

Google's developer documentation lists recommended ecommerce events. The ones most stores need:

EventWhen it firesWhat it tells you
view_item_listA category or search results page is shownWhich lists get attention
view_itemA product page is viewedProduct interest
add_to_cartA product is added to the cartWhich products convert interest to intent
begin_checkoutCheckout startsCart-to-checkout drop-off
add_shipping_infoDelivery details enteredWhether delivery costs stop people
add_payment_infoPayment method chosenCOD vs prepaid choice
purchaseOrder placedOrders and revenue
refundOrder refunded fully or partlyLost revenue from refusals and refunds

Each event carries an items array with product details. Google's example purchase event includes a transaction ID, value and currency, and it recommends setting currency whenever you send a value. Use PKR consistently.

How Should Cash on Delivery Orders Be Tracked?

In a COD store, a purchase event fires when the order is placed, but some parcels are refused at the door. If you do nothing, GA4 counts that revenue forever. Two practical steps help:

  1. Record the payment method (COD, card, wallet, bank transfer) as a parameter on add_payment_info and purchase, so reports can separate them.
  2. Send a refund event when a COD order is refused, cancelled or returned, with the same transaction ID and the items involved. Google's help page says each refunded item should be included in the items array, for full or partial refunds.

Sending refunds usually needs a small server-side integration or a manual import, because the refusal happens days later at the courier. Our COD guide covers reducing refusals in the first place.

Which Numbers Are Worth Watching?

NumberHow to read it
Sessions to purchase rateOverall store performance; compare month to month
Add-to-cart rate by productLow rates suggest price, photos or description problems
Checkout completion rateLow rates point to delivery costs or form problems
Revenue after refundsThe honest revenue figure
COD refusal rateShare of COD orders later refunded
Revenue by traffic sourceWhich channels bring buyers, not just visitors

Our abandoned cart guide explains what to do about checkout drop-off.

What Commonly Goes Wrong?

What About Privacy and Consent?

Never send names, phone numbers, emails or addresses to GA4; Google's policies prohibit personal information in Analytics. Use order IDs instead. If you have visitors from the UK or EU, cookie consent rules apply, and Google's consent mode can adjust tracking based on choices. Mention analytics in your privacy policy.

Getting It Set Up

Our stores, from Rs 157,500, include GA4 ecommerce events and payment-method tracking, tested in DebugView before launch. See e-commerce development.

See also Ecommerce SEO in Pakistan.

Frequently Asked Questions

Does GA4 track ecommerce automatically?
No. Google's Analytics Help says ecommerce events are not sent automatically and must be added to your site, app or Tag Manager set-up. Some platforms, including Shopify through its pixel, send some events for you. Test with DebugView, because reports can take up to 24 hours.
Which GA4 events does an online store need?
The core set is view_item_list, view_item, add_to_cart, begin_checkout, add_shipping_info, add_payment_info, purchase and refund. Together they show the path from browsing to buying and where shoppers drop off. Each event should include an items array with product details.
How do I track cash on delivery orders in GA4?
Record the payment method as a parameter on add_payment_info and purchase so reports can separate COD from prepaid orders. When a COD parcel is refused or returned, send a refund event with the same transaction ID and items, so revenue figures stay accurate.
Why does GA4 show more revenue than I actually received?
Common causes are refused COD parcels not recorded as refunds, purchase events firing twice when customers refresh the thank-you page, test orders in live data and duplicate events from apps. Fix each cause and compare GA4 revenue against your order system monthly.
Which ecommerce numbers should I check every week?
Sessions to purchase rate, add-to-cart rate by product, checkout completion rate, revenue after refunds, COD refusal rate and revenue by traffic source. These few numbers show whether the store is improving and where to act, without drowning in dozens of reports nobody reads.
Can I send customer phone numbers to GA4?
No. Google's policies prohibit sending personally identifiable information such as names, phone numbers, emails or addresses to Analytics. Use order IDs and product data instead. Mention analytics in your privacy policy and handle cookie consent for visitors from the UK or EU.
GA4 mein COD orders ka hisaab kaise rakhein?
Order lagne par purchase event jaata hai, lekin jo parcel wapas aa jaye uske liye refund event bhejna zaroori hai, warna sales zyada nazar aayengi. Payment ka tareeqa, COD ya card, bhi saath record karein. Customer ka naam ya phone number GA4 mein kabhi na bhejein.
  1. Google Analytics Help — Measure ecommerce
  2. Google Analytics developers — Measure ecommerce (GA4)
  3. Google Analytics Help — Best practices to avoid sending PII
  4. ICO — UK GDPR guidance and resources

How we researched this: Event names, the not-automatic note, Shopify pixel mention, 24-hour delay, DebugView, refund items rule and the currency recommendation come from Google Analytics Help and developer pages checked 30 October 2026. The KPI table and COD approach are editorial. Our prices come from the published list.

Not sure your sales data is right?

Message us on WhatsApp for a fixed quote, or see our published pricing first.