Skip to main content
A QueryfulQL query is built from clauses. Every query needs two: 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:
From there you add clauses to filter, group, set a date range, sort and chart. They go in a fixed order, and the report page writes them in that order for you, so you rarely type a whole query by hand:

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.