Displaying popup only on specific pages - Current page rule

The “Current Page / URL” Campaign rule is perfect if you want to show the campaign only to those visitors who are browsing (or not browsing) a specific page on your site currently.

You can set it up with the following steps:

1) Log in to your OptiMonk account at https://app.optimonk.com/login/en 

2) Select Campaigns on the left:

mceclip0.png

3) Select the Campaign you want to set up by clicking on its name:

mceclip1.png

4) Click on Edit settings on the right:

mceclip2.png

5) Click on Add new condition under Select who should see the popup:

mceclip3.png

6) Select Current Page / URL from the list by clicking on the Add sign:

mceclip4.png

You will be able to customize the settings on the next page:

mceclip1.png

I.) Page type setting

In case you have a ShopRenter or a Shopify website, you will have the option to click on the drop-down "Pages" to select what kind of pages you want to use for this Campaign rule. You have the following options:
mceclip6.png
OptiMonk will automatically detect the structure of your website and distinguish Category and Product pages.

  • If you set it to the "Pages" setting, it means that the Campaign rule will use every page of your website.
  • If you select the "Category pages" setting, you will have further options to customize which pages you want the Campaign to show up on:
    mceclip7.png
  • The "Product pages" setting works similarly, but you will have further options based on product details. If you have a ShopRenter website, the available settings are the following:
    mceclip22.png
    In case you have a Shopify website, you will have an additional setting for Product type:
    mceclip8.png

II.) Setting up a Condition

If you click on the drop-down menu "Equals", you will see the available options you can use for your Campaign rule:

mceclip0.png

You will find a couple of examples below to help you understand how the settings work.

III.) Define the Variable

The Current Page / URL setting will check your website's pages for the Variable, depending on the Condition and the Page type setting you have used.

Examples for setting the Condition and the Variable:

If you only want to show the Campaign on one specific page, choose "Pages" for the Page type, select the "Equals" option for the Condition, and then insert the URL of the page as Variable. In this example, the Campaign will only show up on the following page: optimonk.com/smartphones/type_452_black:

mceclip23.png

Similarly, you can set up the Campaign to only show up on your main page:

mceclip24.png

If you want to make sure that the Campaign will not show up on your main page, change the Condition to Doesn't equal:

mceclip25.png

You can also set up a rule so that the Campaign will only show up when the visitor is browsing in a specific product category. There are multiple ways to set this up. For example, you can use "Pages" with "Contains". In this example, I will define the Variable as "accessories", which means the Campaign will show up on all the pages of my website where the URL contains the phrase "accessories":

mceclip14.png

If you have a ShopRenter or a Shopify website, you can use the Category pages setting to a similar effect:

mceclip26.png

You can use the "Doesn't contain" setting to exclude certain pages from the Campaign. In this example, the Campaign will not show up on Product pages where the Product name contains the phrase "smartphone":

mceclip15.png

IV.) Add a new Campaign rule with "AND" relation

We can set up multiple rules for the Current Page / URL with "AND" or "OR" relationship. You can add another rule with "AND" relation by clicking on the Add sign:

mceclip16.png

Here is an example for the "AND" relation:

mceclip17.png

In this example, the Campaign will show up on pages where the Product name Contains the phrase "smartphone", and the Product price is less than 399. As you can see, the "AND" relation means that all rule conditions have to be met at the same time.

V.) Add a new Campaign rule with "OR" relation

You can also add another rule with "OR" relation. In this case, the Campaign will show up when at least one of the conditions is met. Click on Add new to add a new rule with "OR" relation:

mceclip18.png

Here is an example of how the "OR" relation works:

mceclip19.png

In this example, the Campaign will show up on pages where the Product name contains the phrase "smartphone" or contains the phrase "smartwatch".

Excluding pages from the Campaign

If you want to exclude certain pages from the Campaign, you could use the "Doesn't contain" setting. Here is an example:

mceclip20.png

Here I have set the Campaign to not show up on pages where the URL contains the phrase "blog". Using similar settings, you can exclude any page from your Campaign.

7) Click on Save then Next in the top right corner to save your settings:

mceclip21.png

That's it! If you have any further questions or need any help, just let us know at support@optimonk.com, and we would be happy to assist you :)

Have more questions? Submit a request

Comments