# How to create a Split URL test

Split URL testing is a method used to compare two versions of a web page or a website by splitting the traffic between them. For example,  you have two versions of pricing page, i.e., Version 1 with URL [www.customfit.ai/pricing](http://www.customfit.ai/pricing) and Version 2 with URL [www.customfit.ai/pricing-variaition](http://www.customfit.ai/pricing-variaition). You then split your webpage traffic between these two URLs, with half of the visitors seeing Version A and the other half seeing Version B.

### Steps to create a Split URL test

#### Create an experience

* Log in to the dashboard and navigate to the Experience page from the sidebar.
* Click on the '**Create Experience**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2Ffug42z6dVSa4cZpThjBV%2Fimage.png?alt=media&#x26;token=f739d689-8dd7-4f1a-b05a-c90fd9026f42" alt=""><figcaption></figcaption></figure>

* After giving your A/B test a name and a description, click the "**Create Experience**" button.

#### Add page paths

Add the URL's of two pages you want to test. One URL will be the original page (Version A) and the other URL will be the redirection URL (Version B).

* Click on the '**Add pages**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FYEgMrbDJqMhXHMmBkw7y%2Fimage.png?alt=media&#x26;token=9d44ac3e-b17d-4749-afa1-48ccd68395f4" alt=""><figcaption></figcaption></figure>

* From the drop-down, select the **Simple page path match** option and enter the page URL of the original page (Version A). Once the page URL is entered, click on the '**Add**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FAv09ySyovKKi44ynwpsg%2Fimage.png?alt=media&#x26;token=8ebbdee2-8687-4049-8a12-01b4bdf6c7fb" alt=""><figcaption></figcaption></figure>

* Again, click on the '**Add pages**' button.
* From the drop-down, select the **Simple page path match** option and enter the page URL of the redirection page (Version B). Once the page URL is entered, click on the '**Add**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FG5dP724SduxwQ9n93e4d%2Fimage.png?alt=media&#x26;token=2a3db193-5beb-4bf5-9690-0004499c367d" alt=""><figcaption></figcaption></figure>

#### Create behaviors

* Click on the '**Add Behavior'** button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FLjpLgQC2of55orvTjsTf%2Fimage.png?alt=media&#x26;token=bd2a77f6-9200-45eb-af3c-204d8241d6ac" alt=""><figcaption></figcaption></figure>

* Then give a proper **Name** and **Description** for your behavior.
* Click on the '**Add'** button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2F2KQnpRDhUyeVenqwFfX9%2Fimage.png?alt=media&#x26;token=744f435d-b183-42a2-9d3b-1983fc4d5d0f" alt=""><figcaption></figcaption></figure>

Configure Split URL

* Click on the '**open visual editor**' button present on the behavior.
* From the popup, choose the Version A page URL. Then the Version A page will open in a visually editable way.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FTL29KWgZ4a5FF7DHhbwI%2Fimage.png?alt=media&#x26;token=8b0fdb3b-1b46-4b86-92bb-e7ddac187030" alt=""><figcaption></figcaption></figure>

* Click on the \</> icon present in the toolbar.&#x20;

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FzDYj6KiB6xqfLpzogUDZ%2Fimage.png?alt=media&#x26;token=90b02bd2-7257-4e83-b8d6-0974ae78d88e" alt=""><figcaption></figcaption></figure>

* From the dropdown choose the '**Redirection/Split URL**' option.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FQAJ40aXpQglu2wni8foK%2Fimage.png?alt=media&#x26;token=e9d9c5ac-f453-4a9e-9d84-32a028197ff0" alt=""><figcaption></figcaption></figure>

* Enter the Version B page URL to which you want the visitor to be redirected and then click on the '**Save Changes**' button. If you want to redirect to Version B page along with query parameters then select the '**Redirect along with query parameters?**' checkbox.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FQfOlKUappvPwRz9fBSDN%2Fimage.png?alt=media&#x26;token=4f5e9596-5ff3-4c58-a622-00cb01de5c2c" alt=""><figcaption></figcaption></figure>

* Click on the '**Finalize & Exit**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FKzdD0EOjMb1C5DrQNO1t%2Fimage.png?alt=media&#x26;token=9c5c7126-97a3-4630-91eb-403771b0bbba" alt=""><figcaption></figcaption></figure>

With this configuration, anyone who lands on Version A of the pricing page will be redirected to Version B of the pricing page.

#### Targeting audience

You can target split URL tests to specific audience segments. For example, you can restrict the split URL test to visitors from the United States.

* Click on the '**Add Rules**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FdAqlMJZ94TnOpW33xBMR%2Fimage.png?alt=media&#x26;token=10a2e95a-f056-4e7c-9941-a4ce41ebfe1a" alt=""><figcaption></figcaption></figure>

* Choose the **audience category** you wish to target for the split URL test from the popup.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FhN8eHDjuEv7NDU2HqU72%2Fimage.png?alt=media&#x26;token=74049828-cb88-4a73-99c8-368b605da8de" alt=""><figcaption></figcaption></figure>

* Then, from the **attribute** dropdown, select one of the attributes. For the above example, the audience category will be geography, and the attribute will be country.
* Then, from the **operation** dropdown, select one of the operations, such as 'is one of' or 'is not one of' based on your requirement. For the above example, the operation type will be 'is one of'.
* Then, provide the **value** in the input field. For the above example, the value will be the United States. You can enter multiple values. In a few of the cases, you can see the drop-down option under the values section.
* Finally, under the **targeting behavior** dropdown, select the percentage rollout option. Then configure the value as 50% for the default and 50% for the newly created behavior.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FR4hhmiEvLcsRiMr889Wy%2Fimage.png?alt=media&#x26;token=bca668fd-5d4c-4e84-8e54-6fd5c313b0f7" alt=""><figcaption></figcaption></figure>

* Once the target audience is configured, make sure to click on the '**Save**' button.

#### Add goals

In the experience goals tab, perform the below steps to add a goal.

* Click on the '**Add goals**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FtQUrEScb9EnEeQxSo4Pp%2Fimage.png?alt=media&#x26;token=a8f14d3d-89cb-437b-be58-9ce26d7baba6" alt=""><figcaption></figcaption></figure>

* In the popup, select the type of goal event you want to add.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2Fxs82OTRCGfXJj3T4vK64%2Fimage.png?alt=media&#x26;token=a6ecee7f-2f48-4d01-a416-f04324608e2f" alt=""><figcaption></figcaption></figure>

* Then select the goal event that you want to add.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2F5UhfcElgidS2O0awxNoT%2Fimage.png?alt=media&#x26;token=20e8af8c-64bc-47cd-9461-83c257b5308d" alt=""><figcaption></figcaption></figure>

* Enter the access code and click on the '**Add**' button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FbIgL1gz5mSsPz0Qxam7c%2Fimage.png?alt=media&#x26;token=984a3f83-2040-4fa9-bc1f-c72ed55f024b" alt=""><figcaption></figcaption></figure>

* If you don't find your goal event, then you can create a new goal event by clicking on the '**Create a new goal**' option.

By default, the first goal event that you add will be considered the primary goal. If you have multiple goal events, then you can make any one of the goal events the primary goal event.

#### Preview of the split URL test

Once a split URL test is configured, make sure to preview it before taking it live.

* Click on the '**Preview**' icon present on the behavior.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FgS5eRU0SGHwfBn7TZzCM%2Fimage.png?alt=media&#x26;token=2e8fb6ed-13bd-483e-a449-ee362da84fc0" alt=""><figcaption></figcaption></figure>

* Then from the popup select the Version A page URL.&#x20;

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FMReMpZAefrcW8KCXfeFr%2Fimage.png?alt=media&#x26;token=b88dc3cf-23e0-4088-8a1a-97a7c8dde29b" alt=""><figcaption></figcaption></figure>

Instead of opening Version A page you will be redirected to Version B page. If you see this behavior then your split URL test has been configured properly.

{% hint style="info" %}
If you do not see the changes in the preview, then check if the CustomFit code snippet is installed on the website. If you have installed the code snippet, then check whether your browser is blocking the opening of new tabs.
{% endhint %}

#### Taking a split URL test live

To take the split URL test live click on the power switch toggle.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FCupO5w4FM9gkGUcToQdg%2Fimage.png?alt=media&#x26;token=0cd675b2-b3ce-4ab5-b4ba-a060cf444da7" alt=""><figcaption></figcaption></figure>
