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:
3) Select the Campaign you want to set up by clicking on its name:
4) Click on Edit settings on the right:
5) Click on Add new condition under Select who should see the popup:
6) Select Current Page / URL from the list by clicking on the Add sign:
You will be able to customize the settings on the next page:
I) 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:
You will find a couple of examples below to help you understand how the settings work.
II.) Define the Variable
The Current Page / URL setting will check your website's pages for the Variable, depending on the Condition setting you have used.
Examples for setting the Condition and the Variable:
If you only want to show the Campaign on one specific page, 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:
Similarly, you can set up the Campaign to only show up on your main page:
If you want to make sure that the Campaign will not show up on your main page, change the Condition to ''doesn't equal'':
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. You can use the ''Contains'' setting to set this up. 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'':
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 pages where the URL contains the phrase ''smartphone'':
III.) Add a new Campaign rule
We can set up multiple rules for the Current Page / URL by clicking on the Add new button:
Rule out pages from the Campaign
If you want to rule out certain pages from the Campaign, you could use the ''doesn't contain'' setting. Here is an example:
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:
IV) Combining rules, logical relations
8) OR relation
The default relation between display rules for campaigns is the OR relation. So, at least one condition must be met for our campaign to be displayed.
In practice, this means that if all of our added rules exclude a page, or on the contrary, all of them are set to display the campaign only if the added expression is equal to or contained in the given URL, then an OR relation is created between the conditions. So it will be displayed if our rule 1) OR 2) applies to it.
For example, if the given URL contains the words "accessories" OR "smartphone", then the campaign will appear on every page where the URL path contains one OR the other of these terms.
If we use negative rules, i.e., the page does not contain the terms "accessories" or "smartphone", our campaign will appear on every page where the URL path does not contain the terms "accessories" or "smartphone".
9) AND relation
When we combine our rules, i.e. defining certain pages where to display the popups, and also excluding some pages, the default relation between the display rules will be an AND relation. So, all the rules we add must be fulfilled at the same time for our campaign to be displayed.
What this means in practice is that if we have at least one of our added rules that excludes a page AND another one that is set to only display the campaign if the added expression is equal to or contained in the given URL, then an AND relation between the conditions will be created. So it will appear if both rules 1) AND 2) are true.
For example, if the given URL contains the term "accessories" but does not contain the word "smartphone", the campaign will only appear if the visitor is browsing a page where the URL contains the word "accessories", but if it does not contain the word "smartphone", since both conditions must be true at the same time.
That's it! If you have any further questions or need any help, just let us know at email@example.com, and we would be happy to assist you :)