Home / WordPress / WooCommerce Analytics: Importing Historical Data

WooCommerce Analytics: Importing Historical Data

Published On: March 19th, 2020|Categories: WordPress|Tags: , , |3 min read|

When you install or upgrade to WooCommerce 4.0 you’ll see the new WooCommerce Analytics. In order get data in Report pages, you need to process the historical data – prevoius orders and customers. This is not done automatically as large stores with lots of data will likely want to schedule the import during off-peak hours. You’ll also will be prompted to import historical data.

Starting the Import of Historical Data in WooCommerce Analytics

To start a historical data import, use the prompt above or go to Analytics > Settings, and scroll down to Import Historical Data.

If you want to see only report data from a certain date onward, choose a date period, otherwise all data will be imported.

The “skip previously imported customers and orders” allows for overlapping date ranges to be imported without unnecessary data processing.

The Customer and Order counts will be updated in real-time to reflect changes made to the import settings. Press “start” when you’re ready for the import to begin. Once you’ve started an import, progress will be periodically updated on the Analytics > Settings screen. Navigating away from this page will not affect the import, and you can return to it at any time to monitor progress.

Once the import is complete, the status will reflect it:

You’ll be given the option to run another import or to delete previously imported data. Please note that deletion is for all analytics data.

How the of Historical Data in WooCommerce Analytics Works

Initial Data Import

The historical data import uses Action Scheduler to queue jobs that process the existing data on your store, building tables of aggregate data to be used in Reports.

Before version 3.0.0, Action Scheduler used custom post types to manage queue data. To avoid problems queuing large numbers of items, the import jobs are queued and processed in batches to reduce the likelihood of execution time limits on servers/hosts with limited resources.

Subsequent Data Updates

All Customers and Orders that get created after WooCommerce 4.0 (or the WooCommerce Admin plugin) is installed are automatically queued for processing. Only historical data requires manual intervention to process.

Action Scheduler at Scale

For extremely large or high volume stores, we recommend following the Action Scheduler documentation for Background Processing at Scale.

If you’re using WooCommerce 3.9 or earlier, the bundled version of Action Scheduler uses a custom post type to manage queues. This can cause performance issues for high volume stores. We recommend installing the Action Scheduler plugin at version 3.0.0 or later. Action Scheduler 3.0.0+ uses custom database tables for queue handling and is significantly faster than previous versions.

Full documentation for WooCommerce Analytics can be found here.

If you’re not satisfied with the new WooCommerce Analytics and WooCommerce Admin, you can completely disable them. Learn how.




Related Articles

If you enjoyed reading this, then please explore our other articles below:

More Articles

If you enjoyed reading this, then please explore our other articles below: