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 for a Shopify website:
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.) Page type setting
In case you have 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:
OptiMonk will automatically detect the structure of your website and distinguish Collection 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 "collection pages" setting, the Campaign will show up on every collection page of our website. If you want to narrow down the pages where the Campaign shows up, click on the Add conditions button:
These are the additional conditions you can set up:
You can modify the categories on the admin page of your Shopify website. OptiMonk will use the same settings you have set there.
- The "product pages" setting works similarly. If you click on the Add conditions button, will have further options to specify where you want the Campaign to show up based on product details:
Similar to the categories, you can edit the product details on the admin page of your Shopify website. OptiMonk will use the settings you have set up on the admin page of your Shopify site.
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:
You will find a couple of examples below to help you understand how the settings work.
III.) Define the Variable
In addition to the Page type and Condition, we can also define a 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:
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/collection. 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":
You can use the collection pages setting to a similar effect:
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":
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:
Here is an example for the "AND" relation:
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:
Here is an example of how the "OR" relation works:
In this example, the Campaign will show up on pages where the Product name contains the phrase "smartphone" or contains the phrase "smartwatch".
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:
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 :)