In this article:

How to Export Shopify Customer Creation Date [Step-by-Step]

May 8, 2024

When making a sales report from your Shopify sales data, you may realize that Shopify does not allow you to export the customer creation date, which is useful in analyzing the sales trends. The data exists, but you have to stare at a hard-to-read format by accessing this page, where you replace the word “mystore” with the name of your store.

If you already have hundreds of customers and orders, you'll probably need a way to pull the creation data data alongside your table. So, what are some of the workarounds here?

A Quick Introduction to APIs

Different services over the internet include application programming interfaces, or APIs, which allow communication between the platform and other software. Developers use APIs so that their own systems can communicate with the platform in a faster and easier way. The data that can be accessed through APIs are structured but not formatted for the use of the end user. The developers would have to develop their own code to process and format it. For example, several developers of apps that use Facebook take advantage of the Facebook API in order to use that platform. You can learn more from this HowtoGeek article.

APIs also allow access to data that the platform has. Shopify has their own API that can be accessed via browser, and the documentation is available here. APIs require authentication to prevent access to full data by non-authenticated end users. 

Access Selected Customer Data

The customer data stored at Shopify include the names, addresses, currencies used, and contact information. It also includes the date when the customer record was created. The data is stored in JSON format, which makes it structured but is tricky to read for the end user. To access the data, first log in to your Shopify store account, and ensure that you have admin access to it. Then, copy the following URL, replace <name_of_your_store></name_of_your_store> with the link to your store, and paste it to the address bar of your browser:


The code above will give you a structured file containing the name of the customers and the date their record was created. The Shopify documentation contains more information on the fields included in their data record.undefined

A Quick Code to Make the Data Readable

We can use Javascript to process and display the data we get from the previous step. We modify the sample code from W3Schools for our data (which contains Customer ID, First name, Last name, and Date created). Use the following code:

<!DOCTYPE html>
<p>Customer Names and Date Created</p>
<table border="1" id="demo"></table>

var myObj, i, j, x = "";
myObj = *insert_data_here*;
x += "<tr><th> Customer Name </th><th> Customer Creation Date </th><th> Customer ID</th></tr>"
for (i in myObj.customers) {
  x += "<tr><td>" + myObj.customers[i].last_name + " " + myObj.customers[i].first_name + "</td><td>" + myObj.customers[i].created_at + "</td><td>" + myObj.customers[i].id + "</td></tr>";
document.getElementById("demo").innerHTML = x;

Copy the code above and paste them in Notepad. Afterwards, copy the data you got from Shopify API and paste them in the part where *insert_data_here* is written. Then, save the file as customer.html in a chosen location in your computer. Finally, you can open it in your browser. A sample output is shown below:

Data chart with Customer Name, Customer Creation Date, and Customer ID
CSS formatting was not added since it is presumed here that you will further process the data in a spreadsheet, such as Google Sheets. 

The advantage of this method is having no third-party intermediary, but significant disadvantages are the several steps needed and that you may be prone to errors if not done correctly.

Or Maybe... An Alternative Method

If figuring out the code and pulling data is too difficult, you could try out Lido instead! We'd be remiss not to mention how Lido can automatically help you track customer creation dates and see the sales trends you need to make decisions for your business. 

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.
Get your copy of our free Google Sheets automation guide!
  • 27 pages of Google Sheets tips and tricks to save time
  • Covers pivot tables and other advanced topics
  • 100% free

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->