Template test
A template test sends a random share of shoppers to an alternate Shopify page template and compares their orders and revenue with the current template.
A template test is an A/B test between two templates of the same page type in a Shopify theme: a random share of shoppers sees the alternate template, the rest see the current one. It suits layout changes, such as moving reviews above the description, that are easier to build as a template than as edits on the page.
Shopify renders an alternate template on any page of its type when the URL carries ?view= and the template's name, which is also the quickest way to preview one (Shopify's docs).
Half of the visitors to product pages see a new template with the reviews above the description.
How do you preview a Shopify template?
Open any page of that type with ?view= and the template's name, for example /products/linen-shirt?view=reviews-first, or open the template in Shopify's theme editor. Assigning it to a product in your admin is not a preview: every shopper on that product then sees it.
The ways to preview a template table compares the options, with Shopify's docs as sources.
How do you A/B test a template on Shopify?
Build the alternate template in Shopify's theme editor, then let a testing app send a random share of shoppers to it while the rest keep the current template. Judge it on orders and revenue per visitor, not on clicks.
Benchmyrk runs a template test on Shopify without writing to your theme, and stops the test on your store if the template disappears from the live theme.
Related terms
- A/B testAn experiment that shows two versions of a page to randomly split visitors and compares which one performs better on a chosen goal.
- Split URL testA test that sends part of the traffic to a different URL, such as a redesigned landing page, and compares the outcomes.
- FlickerWhen a visitor briefly sees the original page before a test's change replaces it.