Pinpoint the exact location where you want your campaign to appear or simply exclude specific pages where you never want to show them.
In this article, you’ll learn about:
- What the Current page / URL rule is
- Why use the Current page / URL rule in targeting
- How to set up the Current page / URL rule
- How to set up the Current page / URL rule for Shopify stores
- Understanding the different types of conditions you can set up in the Current page / URL rule
- Logical relations between multiple Current page / URL rules
If you only need a quick overview on the rule, watch Reka's walkthrough in 2 minutes:
1. What is the Current page / URL rule?
The success of your campaign does not only depend on good design and an enticing message. Choosing the right place 📍 for your visitors to meet your campaign also matters! The “Current Page / URL” rule will allow you to show or hide your campaigns on specific pages. For example, you will be able to set up your popup to only appear on the blog pages of your website or you can even hide it on the cart page of your store.
2. Why use the Current page / URL rule in targeting?
Let’s check a real-life example: suppose you have a jewellery 💎 store with endless product categories such as bracelets, pendants, rings, earrings, etc., and you want to set up different product recommendation campaigns for visitors based on what they are looking for.
In such cases, displaying a campaign about earrings to a visitor browsing rings on your site is probably not the best strategy. And this is where the Current page / URL rule comes in really handy: you can easily set that your earring recommendation campaign will only appear on earring product pages and the ring recommendation campaign only on ring product pages. 💍
In the above example, the campaign can only appear on pages where the URL contains the word “ring”:
3. How to set up the Current page / URL rule?
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 rule under Select who should see the popup.
6) Select the Current Page / URL from the list by clicking on the Add sign.
7) You will be able to customize the following settings on the next page: Condition and Variable.
8) Choose the Condition you would like to use from the drop-down menu.
9) After that, define the Variable you want to use. The Current Page / URL setting will check your website's pages for the Variable. The Variable can either be an entire URL of a page of your website or just a word/short part of the URL, depending on the Condition you have used in the previous step.
10) Finally, Save it and click on Next in the top right corner to save your settings.
4. How to set up the Current page / URL rule for Shopify stores?
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 rule under Select who should see the popup.
6) Select the Current Page / URL from the list by clicking on the Add sign.
7) You will be able to customize the following settings on the next page: Page type, Condition, and Variable.
8) Choose the page type you would like to use. If you click on the ''pages'' drop-down menu, you will see all the available options you can use. If you have a Shopify store, 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 and you will see 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 there.
9) Choose the condition you would like to use. If you click on the ''equals'' drop-down menu, you will see all the available options you can use.
10) Define the Variable you want to use. The Current Page / URL setting will check your website's pages for the Variable. The Variable can either be an entire URL of a page of your website or just a word/short part of an URL, depending on the Condition setting you have used.
11) Finally, Save it and click on Next in the top right corner to save your settings.
5. Understanding the different types of conditions you can set up in the Current page / URL rule:
“Equals”
If you only want to show the Campaign on one specific page, select the ''Equals'' option for the Condition. The domain name appears as default and you only need to insert the part after the domain name as Variable.
💡 In this example, the Campaign will only show up on the following page: ”www.optimonk.com/smartphones/type_452_black”:
💡 Similarly, you can set up the Campaign to show up only on the home page. Simply select the “equals” Condition and leave the Variable empty, as shown in the picture below:
“Doesn’t equal”
If you don’t want to show the Campaign on a specific page, select the ''Doesn’t equal'' option for the Condition. The domain name appears as default and you only need to insert the part after the domain name as Variable.
💡 If you want to make sure that the Campaign will not show up on your main page, change the Condition to ''doesn't equal'':
“Contains”
Using the ''Contains'' setting, 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.
💡 In the below example, we 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'':
“Doesn’t contain”
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'':
6. Logical relationship between multiple Current page / URL rules
For Shopify stores:
If you have a Shopify store, you will be able to select if you want to use an ”AND” or an ”OR” relationship between your Current page / URL rules:
💡 You can add another rule with an "AND" relation by clicking on the Add sign.
💡 You can also add another rule with an "OR" relation by clicking on the Add new button.
For other stores:
You can set up multiple Current Page / URL rules by clicking on the Add new button:
When you add a new Current Page / URL rule, you can choose from 2 types of conditions:
- Inclusive conditions (where to display the campaign): equals, contains, starts with, ends with
- Exclusive conditions (where NOT to display the campaign): doesn’t equal, doesn’t contain, doesn’t start with, doesn’t end with
Depending on which conditions you are using within your rules, there are 2 kinds of relation logic between them:
“OR” relation
If all of the added conditions are inclusive conditions, or on the contrary, all of them are exclusive conditions, then an “OR” relation is created between them. This means that at least one condition must be met for our campaign to be displayed.
💡 For example, if the given URL equals “optimonk.com/accessories” OR contains the word "smartphone", then the campaign will appear on every page where the URL path equals “optimonk.com/accessories” OR it contains the terms "smartphone".
💡 If we use negative rules, i.e., the URL doesn’t equal "optimonk.com/accesories" or doesn’t contain the word "smartphone", our campaign will appear on every page where the URL path does not equal the URL "optimonk.com/accesores" OR does not contain the term "smartphone".
“AND” relation
When we combine our rules, i.e. defining a page where to display the popups, and also one where NOT to display them, the default relationship between the rules will be an AND relation. So, both of 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:
- 1) one of the added rules that exclude a page,
- 2) and another one that includes a page,
then an AND relation between the rules will be created. So the campaign will ONLY appear if both rules, 1) AND 2) are true at the same time.
💡 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 does not contain the word "smartphone", since both conditions must be true at the same time.
✉️ If you need any further help or have any questions, please let us know at support@optimonk.com, and we would be happy to assist you :)
Comments