> 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/theme-test/theme-tests-how-to-set-up.md).

# Theme Tests – How to Set Up

This guide walks you through setting up a Theme Test in **Eraya**, from creating your test to launching it live on your store.

***

### Step 1: Name and Description

In this step, you define the identity and purpose of your test.

**Fields:**

* **Test Name:**\
  Choose a clear, descriptive name for your Theme Test (e.g., *Homepage Layout Experiment*).
* **Description (Optional):**\
  Write your hypothesis or goals. Example:

  > “We believe that updating the homepage banner layout will increase add-to-cart rate by 10%.”

Click **Next** once completed.<br>

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2F4Rv6LtSSXNnsCRujgy74%2FScreenshot%202025-10-16%20at%201.23.31%E2%80%AFAM.png?alt=media&amp;token=3b5604e2-375b-42a7-9520-5cd0efdb88bc" alt=""><figcaption></figcaption></figure>

***

### Step 2: Configure Test Variations

Set up the test variations and control traffic allocation.

**Fields:**

* **Control:** The live version of your store (baseline).
* **Variation 1:** The modified version of your theme.
* **Traffic Allocation:** Divide visitor traffic (default 50/50).

> 💡 You can use **Auto-Distribute** to balance traffic between all variations.\
> Currently, up to one variation can be tested at a time.

Click **Next** to continue.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FOSbiKSXPi5iGuDbeKila%2FScreenshot%202025-10-16%20at%201.24.49%E2%80%AFAM.png?alt=media&amp;token=ea67f9e4-c0e7-4db7-b2bb-77a916edeff1" alt=""><figcaption></figcaption></figure>

***

### Step 3: Configure Theme Test

Select which themes to associate with each variation.

* **Control Theme:** Automatically set to your published Shopify theme.
* **Variation Theme:** Select your edited or alternate theme version for testing.\
  Make sure this theme includes all required features, apps, and code snippets (including the **Eraya Script**).

Click **Next** to proceed.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FmTV2ySxPDbyXdTgqdbsF%2FScreenshot%202025-10-16%20at%201.25.29%E2%80%AFAM.png?alt=media&amp;token=597bbb5b-fe28-45be-96c6-cce0803d4ce4" alt=""><figcaption></figcaption></figure>

***

### Step 4: Targeting

Define who should see each version of the theme.

#### **Device Targeting**

Choose the devices included in the test:

* ✅ Mobile
* ✅ Desktop
* ✅ Tablet
* Or select **All Devices**

#### **Visitor Type**

* **All Visitors** – Default option (recommended)
* **New Visitors Only** – Ideal for first-impression tests
* **Returning Visitors Only** – For evaluating changes on existing customers

Click **Next** to continue.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FKlKe2cZFUzInOW8j3cYa%2FScreenshot%202025-10-16%20at%201.26.12%E2%80%AFAM.png?alt=media&amp;token=5501c197-74d4-4eac-a11c-fd61d3972ece" alt=""><figcaption></figcaption></figure>

***

### Step 5: Review & Launch

Review all your configuration details before starting the test.

**Review Sections:**

* **Test Details** – Confirms name and description
* **Theme Configuration** – Displays selected themes and their traffic percentages
* **Targeting** – Lists selected devices and visitor filters

When everything looks correct, click **Launch Test** to start.

<figure><img src="https://3379894712-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhDnKyu2IgPFb1bLnge5%2Fuploads%2FdJw3JnL4iD3xceUEoUnG%2Fscreencapture-app-eraya-ai-tests-theme-create-2025-10-16-01_19_48.png?alt=media&amp;token=f1c8ec5f-2965-463f-bd0a-8ae254599a00" alt=""><figcaption></figcaption></figure>

***

### After Launch

Once launched:

* Eraya automatically splits traffic according to your allocation.
* Analytics begin tracking immediately — including conversion, engagement, and revenue.
* You can monitor performance from the **Analytics Dashboard**.

***

### Tips for Successful Theme Tests

* Ensure both the **control** and **variation** themes have **Eraya Script** enabled.
* Keep only one active Theme Test at a time.
* Run each test for a statistically valid duration (at least 2–3 weeks of traffic).
* Apply winning changes to your live theme once results are conclusive.
