FROM, which chooses the dataset, and SHOW, which lists the metrics to return. Every other clause is optional and shapes the result.
QueryfulQL follows ShopifyQL, so a query written for Shopify’s analytics usually runs here unchanged.
Anatomy of a query
The smallest useful query is a dataset and a metric:Clauses
Without
VISUALIZE the report is a table. Fields of related records, like the customer behind an order, are written with a dot: see Linked records.
Writing it
- Keywords can be upper or lower case. Field names are lower case, with underscores.
- Text values go in single quotes:
'Online Store'. - Each clause usually starts a new line, but doesn’t have to.
- Every dataset’s page lists the metrics, dimensions and filters it has. Start at Datasets.

