Skip to main content
  • Label: Sales by Layers Surface
  • Description: Imported sales, with every line of each order assigned to the earliest retained Layers request credited for that order.
  • Default group key: order_surface
Use this dataset when you need revenue figures that add up. Each order belongs to exactly one surface, so grouping by order_surface splits your total store sales without counting an order twice. The Revenue by surface card on the Overview dashboard is built on this dataset.

Metrics

  • revenue (USD)
    • Line-item sales after line-item discounts, in the store’s own currency: before taxes and shipping, and not reduced by refunds or cancellations.
    • Example: SHOW revenue
  • orders (orders)
    • Distinct orders, each assigned to one surface.
    • Example: SHOW orders

Dimensions

  • order_surface: The surface credited with the order. One of:
    • Search: the earliest credited request was a search.
    • Collections: the earliest credited request was a collection page.
    • Blocks & recommendations: the earliest credited request was a recommendation block.
    • No retained Layers attribution: the order has no Layers credit, or its credit is no longer retained.
  • transaction_id: Shopify order ID.
This dataset doesn’t expose the shared personalization dimensions. To segment sales by shopper context, use the Sales dataset.

How orders are assigned

When more than one Layers request is credited for an order, the order goes to the request that happened first. The whole order, including lines the shopper found another way, counts toward that surface. Because of this, the Search revenue here can differ from attributed revenue in the Search (text) dataset, which credits individual line items. Attribution for this dataset becomes available on the same schedule as other attributed metrics. See Data freshness.

Examples

Total sales by surface (last 30 days)
Daily revenue credited to search
Revenue with retained Layers attribution, across all surfaces