Current page / URL rule

Specify the exact URL where you want your campaign to appear or exclude specific pages where you do not want to show them with the Current page / URL targeting rule.

Current URL_1.png

In this article, you’ll learn about:

  1. What the Current page / URL rule is
  2. Example for the Current page / URL rule in practice
  3. Different page types you can target
  4. How to set up the Current page / URL rule
  5. How to use RegEx expressions with the Current Page/URL rule

1. What is the Current page / URL rule?

The 'Current Page / URL' rule allows you to show or hide your campaigns on specific pages, such as displaying a popup only on blog pages or hiding it on your store's cart page.

2. Why use the Current page / URL rule in targeting?

In our example, for a jewelry store with various product categories, it's important to display relevant product recommendation campaigns based on what visitors are browsing. The 'Current page/URL rule' is used for this. It allows you to ensure that, for instance, an earring recommendation campaign will only appear on earring product pages, and a ring recommendation campaign will only appear on ring product pages.

url1.pngurl2.png

3. Different page types you can target

You can easily target specific pages, including the homepage, collection pages (Shopify & Shoprenter only!) , and product pages (Shopify & Shoprenter only!), directly from a dropdown menu.

All stores can target the home page or any specific pages that exactly match, start with, end with, or contain specific expressions. This means your campaigns can appear on all pages where the URL includes a given term but excludes others.

URL_1.png

If you’re a Shopify store owner, you’ll have the option to choose a collection page based on the collection name or number of products in the collection or a product page based on name, collection, price, type, vendor, availability, or product tag.

URL_9.png

4. 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.

URL_2.png

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

URL_3.png

4) Scroll down to Settings summary and click on Edit settings on the right.

URL_4.png

5) Click on Add new rule under Select who should see the popup.

URL_5.png

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

URL_6.png

7) From the dropdown, select which page type you want to target.

URL_7.png

If you don’t have a Shopify store, you can select any page and specify the URL to start, end with, or contain a specific word, or select the home page to target. For instance, you may want to target all blog pages that have ‘blog’ in the URL the following way:

URL_10.png

If you’re a Shopify store owner, you’ll have the option to choose a collection page based on the collection name or number of products in the collection or a product page based on name, collection, price, type, vendor, availability, or product tag.

URL_8.png

8) Once you’re done adding your targeting rules, click on Save.

5. How to use RegEx expressions with the Current Page/URL rule

When selecting the generic pages from the dropdown, you have the option to use regular expressions in your targeting rules. Regular expressions allow you to create complex targeting rules, for example, targeting multiple UTM parameters simultaneously. In our example, we targeted the campaign at visitors who came from an email campaign and who have seen a campaign with a discount.

To test your regular expression string, we recommend the following site: https://regex101.com/

URL_12.png

url31.png


✉️ 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 :)

Have more questions? Submit a request

Comments