Skip to main content
A query always starts with a dataset in its FROM clause. Each dataset covers one area of your store and groups the metrics and dimensions that belong together, so a query only uses the fields its dataset defines. Metrics are the numbers a dataset lets you measure, like net_sales or orders. You return them with SHOW. Dimensions are what you break those metrics down by, like product_title, sales_channel or billing_country. Group by them with GROUP BY, chart them over time with TIMESERIES, or filter on them with WHERE. Many datasets also reach linked records (the order, its customer, the product), whose fields you write with a dot, like order.customer.country. See Linked records.

Sales

Discounts and checkouts

Customers

Products and subscriptions

Inventory

Fulfillment and shipping

Finance and payments

Online store

Marketing