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:
To display your popup on specific URLs, click the "Display rules" tab in the Wisepops builder.
Navigate to the "Pages" tab
Click on "Select URLs"
You will see two sections: "Display my campaigns on these pages" and "Don't display my campaigns on these pages."
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.
Use the "Simple match" condition to target your URL address. This verifies that the domain and path match.
It ignores:
The protocol -
http://
vshttps://
The www subdomain -
www.example.com
vsexample.com
, subdomains other than www are consideredThe query string -
example.com?utm_medium=email
vsexample.com
The fragment -
example.com#section2
vsexample.com
The trailing
/
in the path -example.com/about-us/
vsexample.com/about-us
The case -
example.com/Winter-Sales
vsexample.com/winter-sales
If you need something more precise, use the "Is equal to" condition.
Copy and paste your URL address in the input field and apply changes.
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.