Skip to the guide
Product Page Clarity Ask for a consultationConsultation

Guides

How to Check That Your Shop Counts Each Order Once

One test order shows whether Google Analytics counts each sale once, with the right value. What to check on Shopify and WooCommerce, and why reports differ.

If your analytics shows two sales for one order, or none at all, every decision you make from it is off: which ads work, which products sell, which pages lose people. The good news is that one test order tells you most of what you need to know. This guide is for shops using Google Analytics 4 on Shopify or WooCommerce.

1. Know what a correct purchase looks like

Google Analytics records a sale as a purchase event. Each one should carry the order number as its transaction ID, the order value, the currency and the items bought. The transaction ID matters most: Google uses it to recognise the same order sent twice and count it once.

Two rules follow from that. Every order needs its own transaction ID, normally the order number. And the same ID must never be reused for a different order, or real sales go missing from your reports.

2. Connect it the way your platform intends

Shopify: install the Google & YouTube sales channel and connect your Google Analytics property there. Purchases are then tracked for you, with no code to add.

WooCommerce: use the Google Analytics for WooCommerce extension with your measurement ID (it starts with G-). It records purchases when the buyer lands back on your order-received page after paying, so check that your payment provider sends buyers back there.

3. Look for a second tag

A sale is counted twice when two tags send it. On Shopify, Google says that after you move to the Google & YouTube app, old Google tags must be removed. Look in Settings, then Customer events (custom pixels), in the checkout’s additional scripts, and in your theme files. On WooCommerce, the extension itself warns that more than one tracking code on the same page can cause problems.

4. Place one test order

On Shopify, use the test payment gateway or Shopify Payments test mode: neither charges anything. On WooCommerce, place a small real order and refund it, or use your payment provider’s test mode.

Then open Google Analytics while the order is fresh. The Realtime report shows the last 30 minutes, including a purchase event as it arrives. For more detail, DebugView (under Admin, then Data display) shows every event from a browser in debug mode, for example with Google’s Tag Assistant.

5. Read the result

  • One purchase, right value, right currency: counting works. Note the date.
  • Two purchases for one order: look for the second tag from step 3.
  • No purchase: check that the order reached the thank-you page and that the tag is connected to the right property.
  • Wrong value: check whether tax and shipping are included the way you expect, and that the currency matches your shop.

Why your report will never match your order list

If your shop asks visitors for cookie consent, Google Analytics does not store data for those who decline. Google can estimate the gap only for sites with at least 1,000 consenting visitors a day, which rules out most small shops. So your shop’s own order list is the true record of sales; analytics shows where they came from. Expect the two to differ and watch the trend, not the exact number.

Questions shop owners ask

Can I test without paying?

On Shopify, yes: the test payment gateway and Shopify Payments test mode place orders without charging. On WooCommerce it depends on your payment provider’s test mode.

Does Google remove duplicate purchases by itself?

Only when both copies carry the same transaction ID. Two tags sending different IDs, or none, still count twice.

How often should I test?

After any change to your theme, checkout, apps or payment provider, and whenever the sales in your reports suddenly jump or drop.

Sources

Your shop set up to count each order once, tested, for US$127.