Skip to main content
  • Label: Products
  • Description: Catalog and performance metrics for products.
  • Default group key: product

Metrics

Sales

  • total_sales (USD)
    • Gross sales from orders traced back to a Layers-served result, credited in full to that result. Shown in the dashboard as Attributed Sales. Measures line-item price after line-item discounts, in the store’s own currency: before tax and shipping, and not reduced by refunds or cancellations.
    • Example: SUM(total_sales)
  • revenue (USD)
    • Gross sales credited by blended attribution, which splits one order fractionally across every surface that contributed to it. This is a share of an order, not the whole order, so it is smaller than total_sales for the same period. Shown in the dashboard as Attributed Revenue (blended). Uses the same price boundaries as total_sales.
    • Example: SUM(revenue)
  • quantity_purchased (items)
    • Number of items purchased.
    • Example: SUM(quantity_purchased)
  • buyers (customers)
    • Distinct customers who purchased the product.
  • average_selling_price (USD)
    • Total sales divided by quantity purchased.
  • units_per_order (items)
    • Quantity purchased per attributed product order.
  • units_per_buyer (items)
    • Quantity purchased per distinct buyer.

Sessions and funnel

  • sessions (sessions)
    • Distinct sessions that touched the product.
  • view_sessions (sessions)
    • Distinct sessions in which the product was viewed. Counts sessions, not views: one session that views the product five times counts once. Shown in the dashboard as Viewing Sessions.
    • Example: COUNT_DISTINCT(view_sessions)
  • click_sessions (sessions)
    • Distinct sessions where the product was clicked.
  • cart_sessions (sessions)
    • Sessions where the product was added to cart.
  • purchase_sessions (sessions)
    • Sessions where the product was purchased. Pair with view_sessions for a true conversion rate.
  • quantity_added_to_cart (items)
    • Items added to cart from online store sessions.
  • view_to_cart_rate (rate)
    • Cart sessions per view session.
  • cart_to_purchase_rate (rate)
    • Purchase sessions per cart session.
  • cart_abandonment_rate (rate)
    • One minus the cart-to-purchase rate.
  • session_conversion_rate (rate)
    • Purchase sessions per view session.
  • revenue_per_session (USD)
    • Total sales per view session.

Tile engagement

  • product_impressions (events)
    • Tracked product_impression events captured when a product tile enters the shopper’s viewport.
    • Example: SHOW product_impressions
  • product_hovers (events)
    • Tracked product_hover events captured when a shopper hovers over a product tile on desktop.
  • product_touches (events)
    • Tracked product_touch events captured when a shopper taps or long-presses a product tile on mobile.
  • hover_rate (rate)
    • Product hovers divided by product impressions. Useful for measuring tile-level interest on desktop.
  • touch_rate (rate)
    • Product touches divided by product impressions. Useful for measuring tile-level interest on mobile.
  • product_ctr (rate)
    • Attributed clicks per product impression.
  • product_atc_rate (rate)
    • Attributed add-to-carts per product impression.
  • avg_click_position (position)
    • Average position of attributed clicks in the result set.

Result exposure

Exposure metrics count requests where the product appeared in the returned result set, whether or not the tile was actually rendered. Pair them with impression or click metrics to separate ranking reach from on-screen visibility.
  • result_appearances (requests)
    • Distinct requests whose results contained the product.
  • first_page_appearances (requests)
    • Distinct first-page requests whose results contained the product.
  • render_rate (rate)
    • Product impressions divided by result appearances. Low values point to products that rank into the result set but rarely get scrolled into view.
  • appearance_ctr (rate)
    • Attributed clicks divided by result appearances.

Attribution transparency

Every attribution metric on this dataset is blended. The attribution transparency metrics below break blended revenue down by attribution source.
  • deterministic_revenue (USD)
    • Revenue from hard-attributed (deterministic) purchases.
  • modeled_revenue (USD)
    • Revenue from modeled attribution.
  • deterministic_revenue_pct (rate)
    • Deterministic revenue as a share of total attributed revenue.
  • deterministic_clicks (clicks)
    • Clicks from hard-attributed (deterministic) events.
Engagement metrics depend on product_impression, product_hover, and product_touch events. The Storefront Pixel emits these automatically. Custom integrations must send them through the Tracking API.

Dimensions

  • product_family: Canonical product family the product belongs to. Products without an active canonical family fall back to their own product ID, so every row has a value. Use in GROUP BY to roll performance up across a family (for example, all colors of the same style); auto-includes product_family_name in results. You cannot filter on product_family in WHERE, and TIMESERIES is not supported when it is the only grouping key.
  • geo_country: Two-letter country code.
  • geo_state: Up to three-letter province code.
  • geo_city: City name as captured.
  • marketing_source: UTM source.
  • marketing_medium: UTM medium.
  • marketing_campaign: UTM campaign.
  • device_type: Device category.
  • product: Shopify product ID. This is the default group key. The older name product_id still works but is deprecated, and the editor flags it with a suggestion to use product.
  • variant: Shopify variant ID. The older name variant_id is deprecated in favor of variant.
  • variant_sale_status: Each variant’s current sale status, on_sale or full_price. A variant is on_sale when its compare-at price is higher than its price at your store’s base catalog price. Market-specific prices aren’t considered. This is the variant’s status today, not when the activity happened: once a variant goes on sale, its earlier full-price activity also counts as on_sale. Layers refreshes the status nightly and whenever you save a metric that uses it. Variants of products that aren’t published to your online store, and rows with no variant, count as full_price. Only metrics that record a variant can use this dimension. See Sale status.
  • shopping_channel: The shopping channel (web, app, or retail). Resolves to retail whenever the row has a retail_location_id; otherwise reports the raw channel from the request.
  • retail_location_id: Retail location ID for the purchase. NULL on non-retail orders. Use retail_location_id IS NULL to exclude retail activity, or filter by a specific ID to scope to one store.
  • locale: Storefront locale code active for the request (e.g., en, fr, pt-br).
  • currency: ISO 4217 currency code applied to the request (e.g., USD, EUR).
  • session_returning: Session type — new or returning.
  • customer_state: Whether the shopper is authenticated — signed_in or guest.
  • customer_returning: Customer type — new or returning, based on prior order count.
  • b2b_company: Shopify B2B company location identifier for the signed-in company account.

Product attributes (dynamic)

  • Usage: Use product_attributes.* to filter, group, or segment by dynamic product attributes defined in your catalog.
  • Examples:
  • Filtering: WHERE keeps products whose attribute matches. Compare true/false attributes with true or false, and use IS NULL to find products that have no value for the attribute.
  • Grouping: On this dataset, results stay at one row per product. Each row includes the product’s attribute value, or NULL when the product has no value. To get one row per attribute value instead, query the Sales dataset.
  • First use of an attribute: The first time a query uses an attribute, Layers starts loading its values into analytics and the query fails with a message asking you to retry. Retrying right away won’t help; run the same query again in a few minutes.
  • Unknown attributes: A query that names an attribute your store doesn’t have fails with an error that lists the unknown attribute.

Examples

Sales by product (last 7 days)
Views by campaign (this month)
Sales of red products (past 30 days)
Sales by product family (last 30 days)
Revenue for a specific retail location (last 7 days)
Online sales only, excluding retail (last 7 days)
Top products by impressions (last 30 days)
Hover rate trend (last 30 days)
Top click-through products with a volume floor (last 30 days)
Render rate by product family, filtered to families with meaningful exposure

Next steps