# Exclude page visitors

Canonical URL: https://support.optimonk.com/en/articles/exclude-page-visitors

Hide a campaign from visitors who have already visited a certain page of your site — for example your thank-you page after a purchase, or the page that confirms a signup. You decide how long the campaign stays hidden for them: for a while, or forever.

In the app the rule is called **Exclude page visitors** — Hide from visitors who already viewed a page.

## Set it up

1. Open **Campaigns** in the left menu and click the campaign you want to edit.
2. Open the **Settings** tab of the campaign.
3. Scroll to **Who should see the popup** and click **Add new rule**.
4. Under **Page & browsing**, pick **Exclude page visitors**.
5. Fill in the row:

- **URL of the site** — choose an operator (**equals**, **not equals**, **contains**, **not contains**) and type the page's address. Only enter the part after your domain name, for example `/checkout/success`. If you paste a full address, only the part after the domain is kept.
- **Blocking time** — how long the campaign stays hidden after the visit: **forever**, or a number of **days**, **hours**, **minutes** or **seconds**.
6. To exclude more pages, click **Add page** and fill in the new row. Each row works on its own: visiting any of the pages starts its own block.
7. Click **Save** in the rule window, then **Save changes** in the bar at the bottom of the page.

On a campaign that is already published, the saved rule is pushed to the live campaign, so you don't have to publish again.

## Example: hide a discount popup from buyers

Set **URL of the site** to **equals** `/index.php?route=checkout/success` (use your own thank-you page's address) and **Blocking time** to **forever** — or, for example, **1** **days** if the offer may come back the next day.

## Good to know

- The block is stored in the visitor's browser. While it lasts, the campaign stays hidden even if every other rule matches.
- Because the block lives in the browser, it does not follow the visitor to another device or browser, and it ends if they clear their cookies.
- A row with an empty address can't be saved: Each URL rule needs a value.
- Most of the time **equals** or **contains** is what you need. **not equals** and **not contains** start the block on every *other* page, which hides the campaign almost immediately.
- The rule card sums the setting up, for example: Hidden after visiting a page whose URL equals /checkout/success (forever). With several rows: Hidden after visiting any of 3 excluded pages.
- Each rule type can be added once. To exclude more pages, add rows inside the existing card.
