Every 30 minutes
Copy new Shopify customers to Google Sheets
New Shopify customers are added to a Customers tab with name, email, marketing consent, country, orders and amount spent.
- Runs
- Every 30 minutes
- Apps
- Google Sheets, Shopify
- AI
- Not needed
- Access
- read_customers; Google Sheets read+write
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, add new Shopify customers to the Customers tab of my sheet with created date, name, email, whether they accept email marketing, country, number of orders and total spent.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Shopify's customer list is fine inside the admin, but loyalty programmes, wholesale follow-ups, mailing lists in other tools and simple growth charts all tend to start from a spreadsheet.
This automation adds every new Shopify customer to a sheet within half an hour, with their email, marketing consent, country and what they have spent so far.
Small store owners, community and retention managers and bookkeepers use it to have one shared, sortable list of who is buying.
What you get out of it
New buyers in one list
Every new customer appears in the sheet without exports.
Consent beside each email
Filter to subscribed customers before any campaign.
Growth you can chart
Count new customers per week or country with a pivot table.
Share outside Shopify
Colleagues and partners can see customers without admin access.
No duplicates
The newest creation time is stored, so each customer is copied once.
How it works
What happens, step by step
Every 30 minutes ClickRuntime asks Shopify for customers created since the last check.
For each customer it reads name, email, email marketing consent, country, order count and amount spent.
Each customer becomes a row in your Customers tab, and the newest creation time is saved.
Before it runs live
- Connect your Google Sheets account and pick the spreadsheets it may use
- Connect Shopify
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Google Sheets and Shopify steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, report_fetched
STORE = "your-store.myshopify.com"
SHEET_ID = "your-spreadsheet-id"
QUERY = """query($q: String!) { customers(first: 100, query: $q, sortKey: CREATED_AT) { nodes {
createdAt displayName defaultEmailAddress { emailAddress marketingState } defaultAddress { country }
numberOfOrders amountSpent { amount currencyCode } } } }"""
def gql(query, variables=None):
resp = http.post(f"https://{STORE}/admin/api/2025-07/graphql.json", json={"query": query, "variables": variables or {}},
headers={"X-Shopify-Access-Token": credentials.connection("shopify", "store")})
resp.raise_for_status()
return resp.json()["data"]
@on_trigger
def run(event):
since = state.get("since") or "2026-01-01T00:00:00Z"
customers = gql(QUERY, {"q": f"created_at:>'{since}'"})["customers"]["nodes"]
report_fetched(len(customers))
if not customers:
return {"new": 0}
rows = []
for c in customers:
email = c.get("defaultEmailAddress") or {}
rows.append([c["createdAt"][:10], c["displayName"], email.get("emailAddress") or "",
(email.get("marketingState") or "").lower().replace("_", " "), (c.get("defaultAddress") or {}).get("country") or "",
int(c["numberOfOrders"]), c["amountSpent"]["amount"], c["amountSpent"]["currencyCode"]])
build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False) \
.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Customers!A:H", valueInputOption="USER_ENTERED",
body={"values": rows}).execute()
state.set("since", max(c["createdAt"] for c in customers))
return {"new": len(rows)}FAQ
Common questions
Why include marketing consent?
Are the order count and amount spent kept up to date?
Which Shopify access is needed?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Write product descriptions in a sheet and push approved ones to Shopify
New products in your sheet get AI-written descriptions with French and German translations, and rows you approve update the product in Shopify.
See how it worksPlan reorders from Shopify sales in a sheet
Each morning your Reorders sheet shows every product's stock, daily sales rate, days left and how many to reorder.
See how it worksLog late Shopify orders to a sheet
Every hour, paid orders that have missed your dispatch time are added to a sheet, and you get a Slack alert for each new one.
See how it worksKeep exploring
Set up “Copy new Shopify customers to Google Sheets” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.