Documentation Index
Fetch the complete documentation index at: https://docs.uselayers.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Blocks provide a flexible system for displaying product recommendations across your storefront. Unlike static product lists, blocks dynamically generate recommendations based on context, customer behavior, and configurable rules. Key capabilities:- Multiple anchor types - Display recommendations on product pages, collection pages, in the cart, or globally
- Flexible strategies - Choose from interaction-based, similarity-based, or manual curation
- Conditional rules - Modify block behavior based on customer context and product attributes
- Safeguards - Ensure blocks always display appropriately with minimum/maximum constraints and control personalization strength
- Fallback chains and trees - Automatically use alternative blocks — or different chains for different audiences — when primary blocks don’t return enough products
- Inline performance metrics - See 7-day impressions, clicks, CTR, add-to-carts, and purchases for each block directly in the dashboard list
- Live preview - Test a block’s configuration against real catalog data and shopper context before saving
Anchor types
Anchor types determine where a block appears on your storefront and what context it uses to generate recommendations.Product anchor
Display recommendations on product pages. The block uses the current product as the anchor to find related products. Common use cases:- “Frequently Bought Together” on product pages
- “Customers Also Viewed” recommendations
- “Similar Products” suggestions
- “Complete the Look” cross-sells
Collection anchor
Display recommendations on collection pages. The collection is determined dynamically from theanchor_id parameter in the API request, which can be either a collection ID or handle.
How it works:
- The collection is resolved at request time using the
anchor_idparameter - No collection selection is required in the dashboard
- Supports both collection IDs (numeric) and handles (string)
- “Browsed Then Bought” — products purchased by shoppers who browsed the collection
- “Trending in Collection” — products trending within the collection
- Similar products based on the collection’s catalog
- Featured products within a collection
- “Editor’s Picks” for specific collections
- Collection-specific promotions
Cart anchor
Display recommendations in the cart. The block uses products currently in the cart to find complementary items. Common use cases:- “Complete the Look” in cart
- “Frequently Bought Together” based on cart contents
- Cross-sell recommendations before checkout
None anchor
Global blocks that can appear anywhere on your storefront. These blocks don’t require any anchor context. Common use cases:- “Best Sellers” on homepage
- “New Arrivals” on homepage
- “Featured Products” on static pages
- “Trending Now” global widget
Block preview
The block editor includes a Preview panel that runs the block’s current configuration against your live catalog without saving. Use it to:- Sanity-check anchor selection by entering a real product or collection ID
- Simulate visitor context (geography, marketing channel, device, identity) to verify rule branches
- Compare different strategy and safeguard combinations before publishing
Inline performance metrics
The blocks list shows a 7-day rolling performance summary for each block, refreshed every four hours:- Impressions — number of times the block was rendered (block requests)
- Clicks — distinct product views attributed to the block
- CTR — clicks ÷ impressions
- Add to cart — distinct add-to-cart events attributed to the block
- Purchases — distinct purchases attributed to the block
Metrics rely on the attribution token returned by the Blocks API and forwarded to the Beacon API. Make sure your storefront forwards click, add-to-cart, and purchase events with the block’s
attributionToken for these counts to populate.Performance details
Click any row’s performance summary on the Recommendation Blocks list to open the Performance sheet for that block. The sheet provides a deeper view of how a block is converting and which products are driving its results. The sheet has four sections:- KPI cards — Impressions, CTR, add-to-cart rate, purchase rate, revenue, and revenue per impression (RPI). Each card shows the absolute value and the percent change versus the prior period of the same length.
- Trend — A combined line/bar chart showing impressions, clicks, add-to-carts, and purchases across the selected timeframe. Use it to spot day-of-week patterns or campaign spikes.
- Position — A breakdown of how the block performs by slot position, helping you understand whether top-positioned products carry the conversion or if engagement spreads evenly across the carousel.
- Top products — The products that drove the most impressions, clicks, and revenue for the block. Each row shows the product title alongside its individual performance metrics.
attributionToken and modeled events from the same browsing session that happened within ten minutes of the block being shown. The KPI cards expose the deterministic-versus-modeled split so you can see how much of each metric came from each signal. See Metrics: Blended attribution for the full breakdown.
The performance sheet uses the same attribution data as the inline metrics. If your storefront isn’t forwarding the
attributionToken to the Beacon API, the sheet will show empty results.Bulk actions
The Recommendation Blocks list supports multi-select for fast cleanup, audits, and seasonal launches:- Click Select in the actions column header to enter selection mode.
- Tick the checkbox on each block you want to act on. Hold Shift and click another checkbox to select every row in between.
- Open the Actions dropdown and choose one of the bulk actions:
- Publish — Activate every selected draft block at once.
- Unpublish — Move every selected active block back to draft so it stops returning results, without losing your configuration.
- Duplicate — Create a draft copy of each selected block named
<title> (Copy). Duplicates always start as drafts so they never accidentally go live. - Delete — Permanently remove the selected blocks. A confirmation dialog appears before the deletion runs.
See also
- Strategies - Strategy types and availability by anchor type
- Rules & Safeguards - Conditional rules, safeguards, and fallback chains
- Fallback Chains - Simple chains and conditional fallback trees
- Priority & Status - Block evaluation order and lifecycle
- Manage blocks in bulk - Publish, duplicate, or delete several blocks at once
- View block performance - Open the performance sheet for a block
- Blocks API Reference - API documentation for retrieving block products