How to Export WooCommerce Customers to Google Sheets

If you run a WooCommerce store, your customer list is pure gold it’s not just names and emails, it’s the lifeblood of your marketing and sales efforts. But managing that data inside WordPress can be clunky. Exporting WooCommerce customers to Google Sheets gives you a flexible, shareable, and filter-friendly version of your data.

Whether you need a one-time export, a live sync, or even a custom script that runs automatically, we’ll cover it all.

Why Export WooCommerce Customers to Google Sheets?

A Google Sheet of your customers gives you:

  • Easy Sharing – Hand off a customer list to your team without giving full WordPress access.
  • Better Organization – Sort, filter, and analyze your customers with familiar spreadsheet tools.
  • Cloud Backup – Always have a safe, easily downloadable copy.
  • Custom Reporting – Combine WooCommerce data with other sources for deeper insights.

Method 1: One-Time Export Using a Plugin

If you just need an occasional export, a plugin is the simplest route.

Step 1: Install a Customer Export Plugin

Free options worth trying:

  • Export Users to CSV – Quick and lightweight.
  • Advanced Order Export for WooCommerce – More export fields and filters.

To install:

  1. Go to Plugins → Add New in WordPress.
  2. Search for your chosen plugin.
  3. Click Install Now, then Activate.

Step 2: Configure Export Settings

  1. Open the plugin’s settings (under Tools or WooCommerce).
  2. Select User Role → Customer.
  3. Choose the fields you want (Name, Email, Address, etc.).
  4. Click Export to download a CSV.

Step 3: Import into Google Sheets

  1. Open Google Sheets.
  2. Go to File → Import → Upload.
  3. Select your CSV file.
  4. Insert as a new sheet or replace existing data.

Speed things up by learning some Google Sheets Shortcuts.

Method 2: Live Sync with Google Sheets (Zapier or Make)

If you want WooCommerce customers to appear in Google Sheets automatically, automation tools like Zapier or Make (Integromat) are perfect.

Step 1: Create a Zap

  1. Sign up at zapier.com.
  2. Click Create Zap.

Step 2: Set WooCommerce as the Trigger

  1. Search for WooCommerce in the Trigger field.
  2. Choose New Customer as the event.
  3. Connect WooCommerce using your API keys (WooCommerce → Settings → Advanced → REST API).

Step 3: Set Google Sheets as the Action

  1. Search for Google Sheets.
  2. Choose Create Spreadsheet Row.
  3. Map WooCommerce fields to your columns.

Step 4: Test & Turn On

  1. Send test data from WooCommerce to Google Sheets.
  2. Check the results.
  3. Activate the Zap for ongoing sync.

Method 3: Using WooCommerce’s Built-in Export Tool

While this doesn’t directly export only customers, you can:

  1. Go to WooCommerce → Orders.
  2. Filter by date range.
  3. Click Export for a CSV.
  4. In Google Sheets, use Remove Duplicates to get a unique list of customers.

Method 4: Export with Google Apps Script (Auto-Sync Without Paid Tools)

Want a free, customizable way to pull customer data directly from WooCommerce into Google Sheets? This Google Apps Script method connects to the WooCommerce REST API and grabs Email, Name, and Address.

Step 1: Prepare Your Google Sheet

  1. Create a new Google Sheet.
  2. In the first row, add headers:

Email | First Name | Last Name | Full Name | Address 1 | Address 2 | City | State | Postcode | Country | ID

Step 2: Create the Script

  1. Go to Extensions → Apps Script.
  2. Paste the following code (replace storeUrl, consumerKey, and consumerSecret):

const CONFIG = {
storeUrl: ‘https://example.com’,
consumerKey: ‘ck_xxxxxxxxxxxxxxxxxxxxxxxx’,
consumerSecret: ‘cs_xxxxxxxxxxxxxxxxxxxxxxxx’,
sheetName: ‘Customers’,
perPage: 100,
maxPages: 50,
throttleMs: 250
};

function exportWooCustomersToSheet() {
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(CONFIG.sheetName) || SpreadsheetApp.getActiveSpreadsheet().insertSheet(CONFIG.sheetName);
const header = [‘Email’,’First Name’,’Last Name’,’Full Name’,’Address 1′,’Address 2′,’City’,’State’,’Postcode’,’Country’,’ID’];
sheet.getRange(1, 1, 1, header.length).setValues([header]);

let page = 1, rows = [];
while (page <= CONFIG.maxPages) {
const batch = fetchCustomersPage(page, CONFIG.perPage);
if (!batch.length) break;
batch.forEach(c => {
const b = c.billing || {};
rows.push([c.email || ”, c.first_name || b.first_name || ”, c.last_name || b.last_name || ”,
[c.first_name || b.first_name, c.last_name || b.last_name].filter(Boolean).join(‘ ‘),
b.address_1 || ”, b.address_2 || ”, b.city || ”, b.state || ”, b.postcode || ”, b.country || ”, c.id || ”
]);
});
if (batch.length < CONFIG.perPage) break;
page++;
Utilities.sleep(CONFIG.throttleMs);
}
sheet.getRange(2, 1, rows.length, header.length).setValues(rows);
}

function fetchCustomersPage(page, perPage) {
const url = `${CONFIG.storeUrl}/wp-json/wc/v3/customers?consumer_key=${CONFIG.consumerKey}&consumer_secret=${CONFIG.consumerSecret}&per_page=${perPage}&page=${page}`;
const res = UrlFetchApp.fetch(url);
return JSON.parse(res.getContentText());
}

function onOpen() {
SpreadsheetApp.getUi().createMenu(‘WooCommerce’).addItem(‘Export Customers Now’, ‘exportWooCustomersToSheet’).addToUi();
}

Step 3: Run and Authorize

  • Click Run → exportWooCustomersToSheet.
  • Approve the permissions.
  • Your Sheet will populate with customer data.

Step 4: Automate the Sync

  1. In Apps Script, open Triggers (clock icon).
  2. Set exportWooCustomersToSheet to run daily/weekly.

Why This Method Rocks

  • No subscription cost
  • Full control over which fields you fetch
  • Easy scheduling from inside Google Sheets

Pro Tips for Working with Your Data

  • Use Filters: Segment customers by country or order history.
  • Conditional Formatting: Highlight VIPs or inactive customers.
  • Remove Duplicates: Avoid double counting if importing from multiple sources.
  • Combine With Other Data: Merge with your email campaign results for deeper insights.

Final Thoughts

Whether you need a quick export, a live sync with a tool like Zapier, or a fully customized auto-sync via Apps Script, exporting WooCommerce customers to Google Sheets isn’t hard.

Once your data is in Sheets, managing and analyzing it becomes much easier. And if you really want to fly through that analysis, bookmark my Google Sheets Shortcuts guide you’ll thank yourself later.

READ NEXT:

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button