# Popup Targeting Rules

## Targeting rules

You can control the pop-up form that your visitors see when they visit your site using targeting rules, which are based on the website URL, query parameters, and the visitor's information and behaviour. Combine the various targeting options to personalize the  or pop-up form for each visitor.

<figure><img src="/files/zqej3KRim6LCanw74ubM" alt=""><figcaption></figcaption></figure>

#### If you choose any - any of the conditions that is matched will display

#### If you choose all - All the conditions that you have chosen will display

### URL Browsing Targeting

A popup can be used to target users who are visiting a specific web page of yours. If you don't want a popup to appear on the entire website, simply enter the URLs of the pages you want to include or exclude.

Follow the steps below to set up URL Browsing targeting for your Optinly Campaigns.

Step 1: **Select "URL"** and then specify the conditions under which you want your popup to appear.

#### Conditions

**Homepage:** The pop-up will be displayed on the specific homepage url Contains: the pop-up form  will display on any page where the URL contains the value specified in the targeting rule, including any query parameters. For example, if the targeting rule is Website URL | contains |

&#x20;**Does not contain:** The pop-up form will not display on any of the pages where the URL contains the value specified.

&#x20;**Exactly on:** The pop-up will display exactly on the URL value that is specified in the targeting rule&#x20;

**Query Contains**: target your pop-up form based on the query parameters included in the URL, the pop-up form will display on pages where the URL has a query parameter that exactly matches the name and the value specified.&#x20;

**Query Does Not Contain** : The pop will not display on the query parameter that is included in the URL.&#x20;

**Don't Show on Homepage** : Except for the homepage, the pop-up will appear on all pages.

### Page Views Based Targeting

if the visitor has previously visited a particular page URL You can also specify the rime in order to target visitors.

<figure><img src="/files/kB750hwHygdwgdPopEbJ" alt=""><figcaption></figcaption></figure>

### Country based Targeting&#x20;

Country based targeting the popup will be displayed based on the specific country you can select from the list of countries

<figure><img src="/files/uMVHajFWKAZ77Y2v3ji7" alt=""><figcaption></figcaption></figure>

### Timezone based Targeting&#x20;

Time based targeting is the popup that will be displayed based on the specific timezone

<figure><img src="/files/xMRsb1fs8NZTqXtRo5Le" alt=""><figcaption></figcaption></figure>

### Referral URL Targeting&#x20;

&#x20;if the visitor arrived at your site via a link from a specific page URL.

<figure><img src="/files/KPNDnMYmfVlVxUcIjOXj" alt=""><figcaption></figcaption></figure>


---

# 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://help.optinly.com/popups-and-campaigns/popup-targeting-rules.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.
