Skip to main content
All CollectionsCampaignsDisplay rules & TargetingPage targeting
Target or Exclude a Specific URL, Domain or Group of URLs
Target or Exclude a Specific URL, Domain or Group of URLs
Updated over 3 months ago

Targeting a specific URL or a group of URLs can help you personalize your popups to the user's interests and needs. Wisepops provides easy options for targeting specific URLs and domains. Here's a step-by-step guide:

  1. To display your popup on specific URLs, click the "Display rules" tab in the Wisepops builder.

  2. Navigate to the "Pages" tab

  3. Click on "Select URLs"

  1. You will see two sections: "Display my campaigns on these pages" and "Don't display my campaigns on these pages."

  2. Click the "Specify where (NOT) to display" button to define your page targeting (and/or exclusion) rules.

Target a specific URL

Here's an example to demonstrate how to set a campaign to display exclusively on the Wisepops homepage.

  1. Use the "Simple match" condition to target your URL address. This verifies that the domain and path match.

It ignores:

  • The protocol - http:// vs https://

  • The www subdomain - www.example.com vs example.com, subdomains other than www are considered

  • The query string - example.com?utm_medium=email vs example.com

  • The fragment - example.com#section2 vs example.com

  • The trailing / in the path - example.com/about-us/ vs example.com/about-us

  • The case - example.com/Winter-Sales vs example.com/winter-sales

If you need something more precise, use the "Is equal to" condition.

  1. Copy and paste your URL address in the input field and apply changes.

  2. After applying changes, you will see your URL address added in the section.

Target a group of pages

  • If you have a group of URLs to target and you don't want to input them all, target a keyword by choosing the "URL Contains" condition. The campaign will appear on all URLs that contain your keyword.

  • You can also target multiple keywords by clicking "Add rule."

Exclude a group of pages

  • Exclusion works the same way- you can exclude URLs that contain a specific keyword.

  • You can also exclude multiple keywords.

If you want to limit the impact of your campaigns inside Shopify editor, exclude a particular campaign with the following rule:
"URL contains oseid=" in "Don't display on these pages" section

Target a sub-domain or a sub-folder

  • Use the "Starts with" operator to target a sub-domain or sub-folder.

  • For example, if you want to target your blog readers, you can target all the URLs that start with "blog."

The same works for sub-domains:

Advanced targeting

For more specific cases where the display/don't display rules are not enough, use the Advanced Targeting mode by clicking "Switch to Advanced Targeting." Advanced Targeting allows you to fine-tune logic for more specific scenarios.

Using RegEx

The condition "URL matches the RegEx" allows you to target URLs with a pattern.

RegEx matching is a powerful tool, but it isn't easy to learn. If you're unfamiliar with Regular Expressions, we recommend that you take interactive online courses, such as https://regexone.com/.

For example, with a single condition, you can match any URL starting with https://example.com/countryCode/product/productId, where:

  • countryCode is one of: en, fr, it

  • productId is a number

Back-references aren't supported.

If you have any questions, please get in touch.

Did this answer your question?