> For the complete documentation index, see [llms.txt](https://eraya.gitbook.io/eraya-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eraya.gitbook.io/eraya-docs/content-testing/create-a-template-test-in-eraya.md).

# Create a Template Test in Eraya

Template Tests let you compare **different Shopify templates** (for example, product templates) to see which layout performs better for conversion, revenue, or engagement.

{% embed url="<https://embed.app.guidde.com/playbooks/t4RiVNYRjyN9gVEjAQK7jw?mode=videoOnly>" %}

***

### Step 1: Name & Description

Give your test a clear name so it’s easy to identify later.

**What to do:**

* Enter a **Test Name** (required)\
  *Example: “Product Page Layout Test”*
* Optionally add a **Description** explaining what you’re testing and why

💡 Tip: A good description helps when reviewing results weeks later.

Click **Next** to continue.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FP3741okdkAjxbF5P7KER%2FScreenshot%202026-01-07%20at%204.54.00%E2%80%AFPM.png?alt=media&amp;token=35c3c0ef-5a2b-4d1c-9e72-740154712d34" alt=""><figcaption></figcaption></figure>

***

### Step 2: Test Variations

Set up your control and variation(s), and decide how traffic is split.

**By default:**

* **Control** → 50% traffic
* **Variation 1** → 50% traffic

You can:

* Rename variations (e.g. “Original Template”, “New Layout”)
* Adjust traffic allocation
* Use **Auto-Distribute** to evenly split traffic

⚠️ Adding more variations is coming soon.

Click **Next** when traffic allocation totals **100%**.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FiQEcDZIITVlkjiiJHU8S%2FScreenshot%202026-01-07%20at%204.54.29%E2%80%AFPM.png?alt=media&amp;token=4d7ccdb6-d7f2-4860-9cc4-9cb6898bfe86" alt=""><figcaption></figcaption></figure>

***

### Step 3: Template Configuration

This is where you choose **which Shopify template each variation uses**.

#### Control

* Click **Select Template**
* Choose the existing template you want to treat as the baseline\
  *Example: `product`*

#### Variation

* Select a **different template**, usually a duplicated version of the control\
  *Example: `product.4v888t`*

***

#### 📌 Important rules

* **The control template must be selected first**
* If you want to **change the control template after assigning a variant**, you must **remove the variant first**
* This safeguard exists because the control and variation must belong to the **same template type** (e.g. Products vs Collections)
* Templates are applied **only to the selected template type** (for example, Product templates will not affect Collection pages)

This prevents accidentally mixing incompatible templates and ensures your test runs correctly.

Once both templates are assigned, click **Next**.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FBLbUyKmb1c7A62HBWqW8%2FScreenshot%202026-01-07%20at%204.55.11%E2%80%AFPM.png?alt=media&amp;token=0d1671e5-9b3c-4a5b-b947-be9491aae463" alt=""><figcaption></figcaption></figure>

***

### Step 4: Audience Selection

Choose who should see this test.

**Default option:**

* **All Visitors**\
  Includes every visitor to your store

You can:

* Keep the default audience
* Or add a custom audience (location, device, traffic source, etc.)

💡 If you’re unsure, start with **All Visitors**.

Click **Next** to continue.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FyrFm8InQeXfI9FaNlZpq%2FScreenshot%202026-01-07%20at%204.23.19%E2%80%AFPM.png?alt=media&amp;token=276b18f4-9696-4b04-a9ce-cf3649ca8538" alt=""><figcaption></figcaption></figure>

***

### Step 5: Review & Launch

Before launching, review your test setup:

* Test name & description
* Control and variation templates
* Traffic split
* Selected audience

If everything looks correct:

* Click **Launch Test**

🚀 Your Template Test is now live and visitors will start seeing different templates automatically.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FrZiyshyZdA5pWFJS5Gji%2FScreenshot%202026-01-07%20at%204.55.51%E2%80%AFPM.png?alt=media&amp;token=fedfb946-d9fb-4750-b736-c9f6956008fb" alt=""><figcaption></figcaption></figure>

***

### What Happens Next?

* Visitors are randomly assigned to Control or Variation
* Eraya tracks key metrics like:
  * Conversion rate
  * Orders
  * Revenue
* You can monitor results from the **Test Details** page and stop the test anytime
