# Previous Page criterion

Previous page is a triggering criterion that enables defining a [segment](/assets-library/creating-and-managing-segments.md).

To learn how to create a segment, please refer to this [article](/web-experimentation-and-personalization/targeting-step/how-to-create-a-segment-who-section.md).

## 📖 Definition <a href="#h_01hhpygwdzt9fhcmk07n3wtz6n" id="h_01hhpygwdzt9fhcmk07n3wtz6n"></a>

The previous page criteria allow you to trigger your campaign based on a specific “previous page” URL. That will allow you to capture your visitor in specific and determine the navigation context.

## ⚙️ Configuration <a href="#h_01hhpygwdz33kbshnj8m6kc4rn" id="h_01hhpygwdz33kbshnj8m6kc4rn"></a>

First, you will have to choose which operator you want to use to identify the page or a set of pages.

Once you do, you can proceed and enter the specific URL or piece of URL that will identify the page(s) to target, depending on the chosen operator.

## 💡 Use case <a href="#h_01hggw9c499zn0r01b5zca5xhp" id="h_01hggw9c499zn0r01b5zca5xhp"></a>

Through the previous page criteria, you can trigger the campaign for the visitors that just left your cart process. To do that, you can go through the following steps:

1. Declare your cart URL as the previous page
2. Exclude the cart page and the following page (checkout, shipping, payment, confirmation) from the targeting, to avoid displaying your campaign to user that proceed with the normal checkout procedure

<figure><img src="/files/QOaffKaPXXvbp3xrR6tE" alt="" width="563"><figcaption></figcaption></figure>

## 🔎 How does it work? <a href="#h_01hhpyw4abkqmjd1yk9a78xfk5" id="h_01hhpyw4abkqmjd1yk9a78xfk5"></a>

The ABTasty reads that information directly from the browser current page’ `document.referrer`. If there is no value in that object, the ABTasty tag gets the value from one of its specific resources (`window.ABTasty.urlHistory.previous`).

{% hint style="warning" %}
Be careful, the Back Button function of the browser does not change the `document.referrer` so the Previous Page criterion will not work if the visitors use this function.
{% endhint %}

**Need additional information?**

Submit your request at <product.feedback@abtasty.com>

Always happy to help!

<img src="/files/xTKQxMc1VfSOAE11b70N" alt="" width="146">


---

# 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.abtasty.com/assets-library/creating-and-managing-triggers/list-of-trigger-criteria/previous-page-criterion.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.
