Skip to main content
  • Label: Product interactions
  • Description: Product pairs that shoppers interact with together, such as products viewed in the same session or bought in the same order. Each row pairs an anchor product with a related product for one interaction type and rolling time window.
  • Default group key: related_product

How this dataset differs

Product interactions are rolling snapshots, not dated events, so a few rules apply:
  • Filter by anchor product. Every query must limit product with = or IN, and every OR branch must do the same. You can look up at most 20 anchor products per query.
  • Pick a window with time_window. Snapshots cover the last 30d or 90d. Not every interaction type has both windows. SINCE, UNTIL, and DURING don’t change the results.
  • No comparisons or trends. COMPARE TO and TIMESERIES are not supported.
  • No shared session dimensions. The personalization dimensions are not available on this dataset.

Metrics

  • interaction_count (events)
    • Observed interactions for the pair.
    • Example: SHOW interaction_count
  • confidence_score (rate)
    • Pair interactions divided by observations of the anchor product. Higher values mean shoppers who interact with the anchor more often interact with the related product too.
    • Example: SHOW confidence_score
  • lift_score
    • Conservative, prior-adjusted lift for the pair. Higher values mean the pairing is stronger than each product’s popularity alone would suggest.
    • Example: SHOW lift_score
  • anchor_count (events)
    • Observations of the anchor product.
    • Example: SHOW anchor_count

Dimensions

  • recipe
    • Interaction type: customers_also_viewed, frequently_bought_together, customers_also_added_to_cart, viewed_then_bought, viewed_then_viewed, or customers_also_bought.
  • preferred_recipe
    • Set to TRUE to include customers_also_bought only for anchors that have no frequently_bought_together rows in the same window. This matches the Also bought list in the dashboard.
  • time_window
    • Rolling window: 30d or 90d.
  • product
    • Anchor Shopify product ID.
  • related_product
    • Related Shopify product ID.
  • same_leaf_category
    • Whether the two products share the same product taxonomy category.
  • title, product_type, available
    • Title, product type, and availability of the related product.
  • product.<attribute>, related_product.<attribute>
    • Filter or group by a product attribute on either side of the pair, for example related_product.color.

Examples

Top products viewed alongside one product in the last 30 days:
What shoppers buy with either of two products, using the dashboard’s bought-together fallback:
Related products in a different color than the anchor:

Next steps