# WooCommerce Analytics not updating or showing zero

> WooCommerce Analytics showing zero sales, stale numbers or totals that do not match your orders? We find where the import broke and rebuild your reports.

## Why does this happen?

WooCommerce Analytics never reads your orders directly. For speed, it reads its own report tables, and a background import copies each order into them. When that import stops, falls behind or skips orders, the reports go stale or show zero while real orders keep arriving. Your sales are safe; only the summary copy is wrong.

The causes we find most often, in order:

- **The background import is stuck.** Analytics imports run as jobs in Action Scheduler, the queue WooCommerce uses for background work. If WP-Cron is not firing, or a failing job blocks the queue, imports wait and the reports freeze at the date the queue stopped.
- **Scheduled updates are doing what they should.** Since WooCommerce 10.5, Analytics can import in batches twice a day instead of after each order. New stores use this by default. Owners who expect live numbers see a gap and think it is broken.
- **A setting hides the orders.** Analytics, Settings has excluded statuses and a date type. If Processing or Completed got excluded, or your orders are unpaid and the reports count by date paid, real orders never appear.
- **A stale cache.** Analytics caches its results, and a persistent object cache on the server can keep serving old numbers after the data has changed.
- **Orders went somewhere the import does not look.** After switching to High-Performance Order Storage (HPOS), a migration, or with an extension that writes orders in an old way, some orders can be missing from the tables the import reads.
- **Old orders were never imported.** Orders brought in from another system, or placed while Analytics was off, need a historical import before they show.

If the Analytics page will not load at all and shows a TypeError, the problem is different: a script error in wp-admin, usually from a plugin conflict, an update or an optimisation setting that bundles admin scripts.

## Try this first

These checks are safe on a live store. They only look at settings or refresh report data, never your orders. Stop when the numbers come right.

1. **Check the update mode.** Go to Analytics, Settings and find the Updates setting. If it says Scheduled, a short delay is normal. Open any Analytics report and use Update now to run an import, then check again later.
2. **Check what Analytics leaves out.** On the same settings page, make sure Processing, On hold and Completed are not under Excluded statuses, and note the Date type. If your missing orders are unpaid, see our [orders stuck on pending payment fix](https://boltpress.co/fix-wordpress/woocommerce-orders-stuck-pending-payment/), because those are excluded by default.
3. **Clear the analytics cache.** Go to WooCommerce, Status, Tools and use Clear analytics cache. It only empties cached report results.
4. **Look at the background queue.** Go to WooCommerce, Status, Scheduled Actions, open the Pending list and search for `wc-admin`. A long list of past-due analytics jobs means the queue has stopped, which is a separate job: see the [Action Scheduler past-due actions fix](https://boltpress.co/fix-wordpress/action-scheduler-past-due-actions/). Do not cancel or bulk-run them.

If the queue looks healthy, re-import a short period: on Analytics, Settings, under Import historical data, choose a period that starts just before the missing dates, tick Skip previously imported customers and orders, and press Start. Do not use Delete previously imported data.

Hand it over if the import stalls or never finishes, if the Analytics page shows “There was an error getting your stats” or a critical error, if the store recently moved host or switched order storage, or if totals still disagree with the Orders screen. Do not toggle HPOS or compatibility mode under WooCommerce, Settings, Advanced, Features yourself; on a live store that can split orders between two storage systems.

## Why did Analytics break after moving host or updating?

A migration changes the things Analytics quietly depends on: the server cron, the object cache, the timezone and sometimes the order tables. An update can change how imports run or reset a setting. If the reports stopped right after an update, see [site broken after an update](https://boltpress.co/fix-wordpress/site-broken-after-update/) as well.

Seeing a different store problem? Browse every fix on the [Fix WordPress](https://boltpress.co/fix-wordpress/) page.
