Skip to content

Template tests

Show each group a different theme template on the same pages, for example a new product page layout against your current one. Same page, no preview bar.

On this page

A template test shows each group a different theme template on the same pages. Use it when the change is a whole layout you built in the theme editor: a redesigned product page, a new home page, a different collection layout.

Shoppers stay on the same page. Variant groups see their template through Shopify's ?view= parameter (their address bar shows ?view=<template> after the page address), so there's no theme switch and no Shopify preview bar. It works like a split URL test without a different page or a preview bar.

Set it up

  1. Go to A/B tests, click New test and pick Template.
  2. Where does this test run? Pick the page type: product pages, home page, collection pages, content pages, blog posts, blogs, collection list, cart page or search results. Every group stays on that kind of page.
    • One sentence under the tiles says exactly where the test runs, with a count, for example Runs on all 3 collection pages that use your current collection page template. Hover the template's name to see its file name. Click See which collection pages to list them.
    • The test runs on all of them unless you narrow it (step 4).
    • Some pages use another template? Click Some … use another template? Test those instead and pick that template: it becomes the original.
  3. Pick a template for each version. Pick a Variant template for each variant. The Original template is shown read-only (it's what shoppers see today, and editing it would change your live store). Only templates of that page type in your live theme are listed.
    • Each group shows a live screenshot of the same example page on its template. The line above the screenshots says which page that is (Preview: …); click Show another page to look at a different one. This only changes the screenshots, never where the test runs. Switch between Desktop and Phone, and use Edit in theme editor (variants) or Preview.
    • No variant template yet? Click Create in theme editor on the variant. Where Shopify lets Crovio copy theme files, one click copies the control template into a new one and picks it for the group. Otherwise Shopify's theme editor opens: choose Create template, base it on the control, and name it with the suggested name Crovio shows (for example crovio-variant-a, with a Copy button). While you do, the button reads Open theme editor and Crovio watches for the new template: it's picked for the group as soon as it exists, no refresh needed. Then use Edit in theme editor to make your changes.
    • Page builder templates (for example product.gp-template-….liquid) are listed like any other.
  4. Optional: Only want some product pages? Narrow it down. Pick:

    • Only these product pages, for example one product when one template is used for every product.
    • All except these product pages.

    Click Use all product pages to go back. On collection pages they read Only these collection pages and so on.

    Type a handle (my-product), a path (/products/my-product) or paste a full URL. Crovio checks each page and marks it Found, or warns you when it uses another template, because those pages are never in the test. Market and language versions (like /fr/products/my-product) match too.

  5. Optional, per group under Extra changes for each version: the Crovio cart drawer, test-only widgets, and visual or code changes on top of the template.
  6. Set Goals, check QA & preview and launch.

How it behaves on your store

  • Only pages Shopify assigns the control template are in the test. A product with its own template keeps it.
  • Variant visitors who click through to more pages of the same type go straight to the variant template, without a second redirect.
  • Links stay clean for search engines, and search engine crawlers always see your normal page.
  • Product pages opened from a collection (/collections/sale/products/my-product) count as /products/my-product.
  • If a variant template is deleted while the test runs, shoppers are never left on an error page, and the QA checklist and launch check flag it.
  • Variants must be alternate templates: the default template can only be the control.

When it ends

To keep the winning layout, assign the variant template to your pages in Shopify (for a product: Theme template on the product page in the admin), or copy its sections into your default template in the theme editor.

Troubleshooting

What you seeWhat to do
My template isn't in the listIt's in another theme, or it's for another page type. Templates come from your live theme. Publish or create it there, then reopen the test.
"Same as the control. Pick a different template."Each variant needs its own template. Click Create in theme editor on the variant to make one from the control.
A page shows Uses and another template's nameThat page has its own template, so it can't be in the test. Assign it the control template in Shopify, pick that template as the control, or remove the page.
"Not in your live theme anymore."The template was deleted or renamed, or you published another theme. Pick a template from the live theme.

Was this page helpful?