Connect Shopify to BigQuery

Orders, net payment and units ordered from Shopify, by order or product, in your own BigQuery dataset. Add Day or Week starting to a report and history builds up.

  • One table per report, named after it: fs_orders_by_day, for example.
  • Refreshes every day on Plus, every 6 hours on Pro and every hour on Max.
  • Up to 10,000 orders a report.

30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.

fs_orders_by_day
dayordersnet_payment
2026-10-20652447.74
2026-10-19642495.84
2026-10-18572278.10
2026-10-17562311.63
2026-10-16502092.00
Example, with made-up figures

How to connect Shopify to BigQuery

To move data from Shopify to BigQuery you need a Google Cloud project with a dataset in it, and a Shopify store you can create an app in.

  1. In your Shopify admin, create an app with the two order-reading permissions and install it. On the Sources page, choose Connect store and enter the store address, client ID and client secret, then choose Check and save.
  2. In Fresh Sheets, go to Destinations and choose Add a dataset. Enter the project ID and dataset ID.
  3. In Google Cloud, give the account Fresh Sheets shows you the BigQuery Data Editor role on your dataset, and add the label it shows.
  4. Back in Fresh Sheets, choose Check and add.
  5. Choose New report, pick Shopify and the account, then the report type, fields and date range.
  6. Under Destination, pick your dataset and name the table. Under Schedule, pick how often. Then Save and run.

Columns Shopify writes to BigQuery

Each report is one table: the columns you pick, plus _fs_written_at, the time the row landed. Money is in the account's own currency.

ColumnTypeFresh Sheets fieldAvailable at
dayDATEDayEvery level
weekDATEWeek startingEvery level
monthSTRINGMonthEvery level
order_nameSTRINGOrderOrders
sales_channelSTRINGSales channelOrders
financial_statusSTRINGPayment statusOrders
fulfillment_statusSTRINGFulfilment statusOrders
cancelledSTRINGCancelledOrders
currencySTRINGCurrencyEvery level
productSTRINGProductProducts sold
variantSTRINGVariantProducts sold
skuSTRINGSKUProducts sold
vendorSTRINGVendorProducts sold
ordersINT64OrdersOrders
subtotalNUMERICSubtotalOrders
discountsNUMERICDiscountsOrders
shippingNUMERICShippingOrders
taxNUMERICTaxOrders
totalNUMERICTotalOrders
refundedNUMERICRefundedOrders
net_paymentNUMERICNet paymentOrders
units_orderedINT64Units orderedProducts sold
units_keptINT64Units keptProducts sold
sales_before_discountsNUMERICSales before discountsProducts sold
line_discountsNUMERICLine discounts (excluding order discounts)Products sold

Test orders are left out. Amounts are in your store's currency, and days are in its time zone.

An example

A query for the report saved as Orders by day:

SELECT day, SUM(orders) AS orders, SUM(net_payment) AS net_payment FROM `your-project.your_dataset.fs_orders_by_day` WHERE day >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY) GROUP BY day ORDER BY day DESC, orders DESC;

Scheduling and refresh

Include Day or Week starting and each run replaces only its own dates, so history builds up. Leave it out and each run replaces the whole table.

Try it with your own Shopify data in BigQuery.

Other ways to do it

Google's BigQuery Data Transfer Service has a Shopify connector in preview, with no transfer charge while it's in preview.

Source: Google Cloud: Shopify transfers

This Shopify BigQuery connector sends the order reports you build, totalled the way you choose.

What this doesn't cover

Customer details, your product catalogue and inventory aren't included. This reads orders and the products sold in them.

Questions

How do I connect Shopify to BigQuery?

Create an app in your Shopify admin with the two order-reading permissions, then choose Connect store on the Sources page. Add your dataset under Destinations and build an orders or products sold report that sends to it.

Send your Shopify orders to BigQuery

BigQuery is included in your 30 days of Plus, then on every paid plan.

30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.

Paid plans from £15 a month, or £12 a month billed annually.