How preview works
When you click Preview from the overflow menu on a merchandising rule (during creation or editing), Layers:- Takes a snapshot of your current unsaved form state: pins, expressions, scheduling, and all other settings
- Creates a temporary, hidden copy of the rule that is only accessible via a special preview URL
- Opens your storefront collection page in a new browser tab with the preview applied
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.
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.