How to Target by Advanced URL with Regular Expressions
Qualaroo lets you use advanced targeting using the Regular Expressions(REGEX).
With Regular Expressions, you can target a diverse range of URLs that dynamically adapt based on their content. This dynamic targeting feature empowers you to exclude specific sections of your website, concentrate on traffic originating from a specific ad campaign, and achieve other granular targeting goals.
Here's a preview of advanced URL targeting in Qualaroo:
The above regex will help you target https://qualaroo.com/features and https://www.qualaroo.com/features.
Benefits of advanced URL with REGEX:
Let you target a range of URLs based on the content
Easy to exclude unwanted sections of your website from targeting
Step 1: Select “Use an advanced URL” in the targeting section.
Step 2: Fill in the three fields to specify your target page.
To do so, let us walk through the steps in more detail.
A Regular Expression is a concise and straightforward “phrase” that is used to match a specific subset of things. You can use them in Qualaroo to add surveys to a particular group of pages without listing them all individually.
Technical definition: From the Wikipedia Article --
In computing, a regular expression (abbreviated regex) is a sequence of characters that forms a search pattern, mainly for pattern matching with strings or string matching, i.e., “find and replace”-like operations.
Each character can be a metacharacter with a special meaning or a regular one having a literal meaning in a regular expression.
Together, they can identify the textual material of a given pattern or process in several instances that vary from precise equality to general similarity.
Everyday use cases include targeting visitors using a promo code & dynamic pages and excluding areas of your site from being targeted.
Below are a few examples:
Subdomain: This field is anything that comes before your primary domain, like blog.yoursite.com or shop.yoursite.com. We do consider “www” a subdomain. You can enter regular expression patterns here. You can also leave it blank as it is an optional field.
Top-Level Domain: This is the main URL of your site, and it is required.
Path: This part is where most of the regular expressions are added.
We do! Please see How to Write Regular Expressions for URL targeting. This guide is available on our Help Center and is broken up into sections and PDFs for download and later reference.
Simply select this option.
Paste your URL directly from the intended page, and click the 'Validate this regular expression' tab to check if your RegEx will target that page!
Ensuring that your nudge will target visitors on certain pages is helpful. It also confirms that you won’t be targeting any unwanted pages.
What kind of regular expressions are supported?
That is all about targeting via advanced URLs with regular expressions.