> For the complete documentation index, see [llms.txt](https://docs.intelligems.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intelligems.io/content-experiences/content-experiences-overview/how-to-set-up-a-redirect-experience.md).

# How to set up a Redirect Experience

A Page Redirect (or split URL) sends visitors to a completely different URL instead of changing content on the existing page. It's the best fit for bigger structural changes, comparing two fundamentally different page designs, layouts, or templates, rather than something achievable with targeted edits alone.

{% embed url="<https://www.loom.com/share/b6081d1fd54a444e8d534a4c0b50851e>" %}

### 1. Create the experience

From the Intelligems app, click **Create New Experience** and select **Redirects**.

### 2. Choose: Test or Personalization

* **Running it as a Test?**
  * Rename the Test and add a Description. This is optional and internal only, but tests can stay live for weeks, so the more detail here, the more your future self will thank you.
  * Click the **+** button to create a group for each variation (2–5 groups) and name them.
  * Use the slider to set the traffic split for each group.
  * Click **Next Step** when you're done.
  * Note: the more groups you add, the longer it'll take to reach [statistical significance](/analytics/overview/experiment-analytics/statistical-significance.md).
* **Running it as a Personalization?** Skip groups entirely. You're building one always-on version for your targeted audience.

<figure><img src="https://2052204893-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2SvefuMLsJyJPAcVXeWc%2Fuploads%2F4JAF6NMcZTzsCAjb3LPz%2FPersonalizations%20or%20Tests%20for%20helpcenter.gif?alt=media&amp;token=d7aa9322-6bdd-4566-96ae-d6380eed371b" alt=""><figcaption></figcaption></figure>

### 3. Set up your Redirect

Choose between two redirect types, depending on how many URLs you're targeting:

* **Simple Redirect** is best for a small number of specific URLs. Enter your **Origin URL**, then enter a destination URL for each test group. Create a separate Simple Redirect for each origin URL you want to redirect from.
* **Advanced Redirect** is best for many URLs that share a pattern. Choose a matching option (matches exactly, contains, ends with, matches regex) and enter a value to match against. All matching conditions are case-insensitive.
  * For most product redirects, use ends with rather than contains, so you don't accidentally catch similar product URLs (like matching both `/products/product-abc` and `/products/product-abc-plus`).
  * Then choose a redirect type: **Replace Full URL** (enter a full destination URL for each group) or **Replace Matching Text** (enter find and replace values).

<details>

<summary><strong>Advanced Redirect Matching Option Examples</strong></summary>

* **matches exactly**: `https://yourstore.com/en-us/collections/product-a`
* **contains**: `sofa`
* **ends with**: `/products/product-a` (evaluates the URL path only, ignoring query parameters, so `https://yourstore.com/products/product-a?utm_source=abc` still matches)
* **matches regex**: `^.*\/[a-zA-Z]{2}-[a-zA-Z]{2}\/pages\/abc$` (matches a pattern like `yourstore.com/en-US/pages/abc`)

</details>

Then, decide how often the Redirect should fire:

* **Redirect One Time** (default) sends a visitor to the destination once, then leaves them on the origin URL for future visits.
* **Redirect Every Time** sends a visitor to the destination on every visit to the origin URL.

Use the Redirect Checker to test how a URL will resolve for each test group before you go live.

<figure><img src="https://2052204893-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2SvefuMLsJyJPAcVXeWc%2Fuploads%2F4YEeAhSggZqjTvdCKYFX%2Fredirect%20gif.gif?alt=media&amp;token=70716abb-0160-4c13-af00-db3cfe570611" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: Redirect tests only work within the same domain (e.g., [`brand.com`](http://brand.com) → [`brand.com/new-page`](http://brand.com/new-page)). Redirecting between different domains (e.g., [`brand.com`](http://brand.com) → [`otherbrand.com`](http://otherbrand.com)) isn’t currently supported. If you run several domains, you can add each one under Settings → Domain Settings and run redirect tests within each domain. Subdomains are detected automatically and don’t need to be added.
{% endhint %}

{% hint style="warning" %}
Note: If your Origin URL is a page hosted outside of Shopify (for example, a headless page or one built with a tool like Builder.io), visitors will likely see that page flash on screen, sometimes for a few seconds, before being redirected. This happens because Intelligems can only fire the redirect after those pages have already started loading, instead of before they're displayed. For the smoothest experience, use a Shopify-hosted page as your Origin URL. This only affects the Origin URL: redirecting *to* a page hosted outside of Shopify works as expected.
{% endhint %}

### **4. Set targeting (optional)**

For a Test, a visitor's group is assigned on their first visit and stored via a first-party cookie, so they'll see the same variant on repeat visits during the test.

For a Personalization, everyone who matches your targeting sees it every time.

Either way, you can narrow who's included in several ways, all under the [Audience](/general-features/targeting/audience-targeting.md) option unless noted:

* UTM parameters
* JavaScript expressions
* Device type (mobile or desktop)
* New vs. returning visitors
* [Mutually Exclusive Tests](/general-features/targeting/mutually-exclusive-experiments.md) prevent visitors from being targeted by related experiments at the same time, to avoid interaction effects

### **5. Configure analytics**

Choose whether analytics should default to only orders containing specific products (helpful if your redirect targets a particular PDP), or orders containing any products in your shop. You can always change this later in your Analytics filters.

What you configure next depends on which path you chose in step 2:

* Personalization? Add any [Custom Metrics](/analytics/overview/custom-events.md) you want to track, beyond the built-in ones.
* Test? Choose your Key Metrics and Primary Metric to measure against your control group, plus any [Custom Metrics](/analytics/overview/custom-events.md).

### **6. Preview and activate**

Preview your changes on the live site, then activate. Run through the [QA Checklist](/content-experiences/content-test-qa-checklist.md) first if this is your first redirect.

If visitor counts come in lower than you expected once it's running, see [Troubleshooting Low Visitor Counts in a Redirect Test](/content-experiences/content-experiences-overview/how-to-set-up-a-redirect-experience/troubleshooting-low-visitor-counts-in-a-split-url-test.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.intelligems.io/content-experiences/content-experiences-overview/how-to-set-up-a-redirect-experience.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
