Skip to main content
You can preview a merchandising rule on your live storefront before saving or publishing it. The preview shows exactly how your pins, expressions, and settings will look to shoppers, without affecting production traffic.

How preview works

When you click Preview from the overflow menu on a merchandising rule (during creation or editing), Layers:
  1. Takes a snapshot of your current unsaved form state: pins, expressions, scheduling, and all other settings
  2. Creates a temporary, hidden copy of the rule that is only accessible via a special preview URL
  3. Opens your storefront collection page in a new browser tab with the preview applied
The preview URL includes a preview_id parameter that tells the Browse API to load the temporary rule instead of any active production rule. Only someone with the preview URL can see the previewed merchandising. All other visitors continue to see your live merchandising.

Preview duration

Preview rules expire one hour after creation. After that, the preview URL stops working and the temporary rule is automatically cleaned up. If you need to preview again, click Preview to generate a fresh preview.

What to know about preview

  • No save required. Preview captures your current form state, including unsaved changes. You don’t need to save first.
  • No impact on live traffic. Preview rules are hidden from production. Other visitors see your existing merchandising.
  • Analytics are not recorded. Browse requests made through a preview URL are excluded from analytics and reporting.
  • Contextual conditions are bypassed. The preview always shows the rule regardless of any contextual conditions you’ve configured, so you can verify the merchandising layout from any location or device.
  • One preview per date. Creating a new preview of the same rule, collection, and sort order replaces the previous one. Previews as of different banner start dates are kept separately, so you can open them side by side.
  • A preview bar marks the page. While a preview is active, a branded bar sits at the bottom of the storefront showing “Previewing” and the rule’s name, so you always know you’re looking at preview merchandising rather than production. Click Exit preview to clear the preview parameters and return to your live merchandising. Other visitors never see the bar.

Preview scheduled banners as of a start date

If any banner on the rule has a schedule start date, clicking Preview opens a Preview as of dialog before the preview is created. Choose when to preview the scheduled banners:
  • Now shows each banner as it would serve at the moment you create the preview.
  • A scheduled start shows the banners as they will serve once that start date arrives. Each option lists the date and time and the banners that start then. If several banners share a start, they appear as one option.
Click Generate preview to open the storefront with your choice applied. Banners with a schedule are shown only if their schedule window includes the chosen moment, so a banner that ends before that start date is hidden and one that starts then is shown. Banners without a schedule follow their usual enabled setting. You can only pick Now or one of the scheduled start dates, not any date and time. The chosen date applies to banners only. Pins, expressions, and the rule’s own schedule are previewed as they are in your current draft. A dated preview is a fixed snapshot: the banners it shows don’t change while the preview link is open, even if a scheduled start or end passes during the hour. If you change a banner’s schedule so the start date you chose no longer exists, Layers rejects the preview with Preview a banner schedule start. Open Preview again and choose from the updated list.

When to use preview

  • Before publishing a new rule — Confirm your pins and expressions look right on the actual storefront before going live.
  • While editing an existing rule — Test changes to pins or expressions without disrupting the current live merchandising.
  • Validating expression logic — Check that automated groupings produce the product order you expect.
  • Stakeholder review — Share the preview URL with team members so they can review merchandising changes before you publish.
The preview URL is shareable. Anyone with the link can see the previewed merchandising within the one-hour window, but the preview has no effect on other visitors browsing the same collection.

See also