← Back to Changelog

Sales by Layers Surface in LayersQL

A LayersQL query showing a highlighted new FROM order_surface_sales line marked NEW, then SHOW revenue, orders, GROUP BY order_surface, and SINCE -30d

Want to know how your sales split between Search, Collections and recommendation blocks? The new order_surface_sales dataset assigns each order to exactly one surface, so grouping by order_surface adds up to your total store sales.

Each order goes to the earliest Layers request credited for it, and orders with no Layers credit get their own bucket. The whole order counts toward that surface, so Search revenue here can differ from search_text, which credits individual line items.

Learn more