• Resolved alexqbox

    (@alexqbox)


    I have imported old orders from the years 2018-2022 into a blank new installation of WordPress with Woocommerce. That’s about 34000 orders. The aim is only to use the data for statistical evaluation, the store is not live.

    I imported all products and orders. This works wonderfully and without errors, I can see all products and orders in the backend.

    Now the following problem arises: the statistics are empty. I have tried to import the historical data under /admin.php?page=wc-admin&path=%2Fanalytics%2Fsettings. This also seems to work but without result. No data has been imported for 2 days. Status: Importing Orders is spinning endless.

    How can I get the Woocommerce Analytics to show me all data of orders from 2018-2022?

    Screenshot: https://paste.pics/T8D51

    • This topic was modified 1 year, 1 month ago by alexqbox.
    • This topic was modified 1 year, 1 month ago by Yui.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @alexqbox ,

    Thanks so much for reaching out.

    I hear you’re working on importing a large number of historical orders into a new WooCommerce setup. It’s great to hear you’ve already brought in around 34,000 orders from 2018 to 2022—that’s a big job! Now that the Analytics import process is stalling, let’s walk through a few steps that can help get things moving again.

    First up, try clearing the Analytics cache and rebuilding the reports:

    • Head over to WooCommerce → Status → Tools
    • Scroll down and click on “Clear analytics cache”

    Once that’s done, go to Analytics → Settings and try starting the “Import Historical Data” process again.

    Next, it’s worth checking for any stuck scheduled actions:

    • Go to WooCommerce → Status → Scheduled Actions
    • Filter the list to show Pending actions
    • Look for anything related to wc_admin_import_orders or similar

    If you spot any stuck actions, you can try running them manually. For a clearer view of what’s going on behind the scenes, I’d recommend installing the WP Crontrol plugin. It gives you more insight and control over scheduled tasks, which can really help with debugging Analytics import issues.

    If things are still stalling, importing in smaller batches can help:

    • In Analytics → Settings, set a more specific date range—for example, one year at a time
    • Make sure “Skip previously imported customers and orders” is checked so you’re not doubling up on data
    • Start the import and keep an eye on how it progresses

    Breaking it into smaller chunks can ease the load on your server and help avoid timeouts or memory issues.

    Give these steps a try and let us know how it goes!

    Thread Starter alexqbox

    (@alexqbox)

    Hi @jonayedhosen

    Thanks for your reply and help! I found the reason: i have an active password protection in the htaccess and that killed the action scheduler because no wp-cron was running anymore. i have now excluded wp-cron from the password protection and it is running now 🙂

    Hi @alexqbox,

    Thanks for the update! I’m glad to hear you found the cause and got it sorted.

    If you’ve been happy with the support, we’d really appreciate it if you could leave a review here: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/ – it helps us a lot.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Import historical data’ is closed to new replies.