# Testing URLs

### How to Create a URL Test

#### Step 1: Select Test a URL or a single page

Enter the test draft page and select the option to “Test a URL or single page.” While theme and template tests allow you to test changes across multiple pages on your site, URL tests allow you to test changes to individual pages. This test option is best for testing things like specific product pages, collection image order, site quizzes, and more. For more information, see [URL Testing](https://docs.shoplift.ai/test/url-testing/overview) or click on “Help me decide” in the app.

#### Step 2: Enter your original URL

Think of your original URL as the starting place of your test. It is the URL on which visitors will be assigned to your test. Those assigned to the original will proceed onto the original URL, while those assigned to the variant will be redirected to the variant URL. To input your original URL, you can paste or type in the full URL or the relative URL. Explore valid and invalid inputs below.

{% tabs %}
{% tab title="Valid Input" %} <mark style="color:green;">Valid</mark>: Full URLs

* `https://my-store.com`
* `https://my-store.com/products/product-a`

<mark style="color:green;">Valid</mark>: Relative URLs or Paths:&#x20;

* `/`&#x20;
* `/products/product-a`
* `/pages/pf-12345`
  {% endtab %}

{% tab title="Invalid Input" %} <mark style="color:red;">Invalid</mark>: Incomplete Paths

* `/product-a`&#x20;
* Be sure to add the page type to complete the path (i.e. `/products/product-a` is <mark style="color:green;">Valid</mark>)

<mark style="color:red;">Invalid</mark>: Specific Markets

* `https://us.my-store.com`
* To target a specific country for your test, use our [audiences feature](https://docs.shoplift.ai/test/targeting/custom-audiences-utms-referring-domains-and-geo-targeting) on the test reports page

<mark style="color:red;">Invalid</mark>: UTMs

* `https://my-store.com/?utm_source=facebook`
* To target specific UTMs for your test, use our [audiences feature](https://docs.shoplift.ai/test/targeting/custom-audiences-utms-referring-domains-and-geo-targeting) on the test reports page
* Keep in mind, visitor UTMs will still be tracked for the test
  {% endtab %}
  {% endtabs %}

#### Step 3: Enter your variant URL

In URL tests, site visitors will be redirected from the original URL to the variant URL. Following the same validation criteria outlined above, enter the variant URL when prompted.

{% hint style="success" %}
**Tip:** Click "View in Browser" next to the Original and Variant URL to make sure you've selected the right page.
{% endhint %}

#### Step 4: Review your changes&#x20;

Before you launch your test, follow these steps to make sure everything looks right:

* [ ] Preview the original and variant URLs in your browser to make sure the URLs are correct and visitors will be sent to the right pages
* [ ] Confirm you do not have [Shopify Redirects](https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect) or any 301 redirects set up on the original or variant URLs

{% hint style="info" %}
If you need help conducting tests with Shoplift, our [support team](https://docs.shoplift.ai/learn/guides/broken-reference) is always available to assist. Reach out from within the app using the live chat widget in the bottom right of the screen, or email [help@shoplift.ai ](mailto:help@shoplift.ai)to get in touch.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shoplift.ai/learn/guides/guide-testing-urls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
