How to Import WooCommerce Customers to Google Sheets
Mail Merge can copy the customers of your WooCommerce store into a Google Sheet, one customer per row, with the fields you pick as columns. You connect with a read-only API key, so the add-on can’t change anything in your store.
Create a read-only API key
Section titled “Create a read-only API key”-
In your WordPress dashboard, go to WooCommerce and choose Settings, open the Advanced tab and click REST API. Click Create an API key.

Create the key from the REST API section of the WooCommerce Advanced settings. -
Add a description, like Mail Merge, and set Permissions to Read.

Give the key Read permission only. -
Click Generate API key. Copy the Consumer key and Consumer secret and keep them somewhere safe.
Import the customers
Section titled “Import the customers”-
In your Google Sheet, go to Extensions > Mail Merge with Attachments > Import Contacts.

Open Import Contacts from the Extensions menu in Google Sheets. -
Under Import data from, choose WooCommerce. In WooCommerce Store URL, type your WordPress site’s address, like
https://example.com/. Paste the Consumer Key and Consumer Secret. -
Click Get Fields, then pick the fields you want as columns under Contact Fields, like email and first_name.
-
Under Import Location, choose Append to current sheet or Create a new sheet, then click Import data.

Paste the store URL and keys, pick the fields, then click Import data.
Use the imported columns
Section titled “Use the imported columns”Row 1 gets the WooCommerce field names, like first_name, and those become your merge fields: {{first_name}}. You can rename them to friendlier titles like First Name before you write your email. When you set up the merge, choose the email column in the Send to field under Recipients.
Things to know
Section titled “Things to know”- When you’re done importing, go back to the same REST API page and revoke the key. The customers you already imported stay in your sheet.
- Curious how it works? This tutorial shows how the WooCommerce API is used with Google Apps Script to export customers.
