How to Target a Subdomain
In Qualaroo editor, you can fine-tune your survey targeting by activating/deactivating your Nudges™ on specific subdomains.
You can target any subdomain using both simple URL and advanced URL fields.
Here's what a survey specifically active on a subdomain will look like:
Benefits of targeting a subdomain:
Collect valuable feedback from visitors on a specific part of your website
Easily target or exclude visitors interacting with a particular page
In this article, you’ll learn:
Step 1: Select “Use a simple URL” in the targeting section.
Step 2: Enter the subdomain you wish to target in the field.
To target only one subdomain (i.e., help.qualaroo.com, shop.awesome.com), enter it in the Simple URL field:
Based on our input, the survey will be active only on the homepage of https://quiz.proprofs.com and no other pages.
You can use the same patterns mentioned in the Simple URL article to target other subsections on the subdomain:
This survey will show up on all pages in the /blog subsection of proprofschat.com (ex: https://www.proprofschat.com/blog/what-is-live-chat-software/)
If you have many subdomains and you’d like the survey to appear on all of them, simply enter the URL without any subdomain, and the survey will be active on every subdomain:
Your survey will show up on each of the following pages:
and all other subdomains that have /dashboard/settings in their URL.
Regular expressions in and of themselves are a little more complicated, but targeting a subdomain is not. You also have the opportunity to target multiple specific subdomains by using regular expressions, not just one, or excluding a particular subdomain.
Step 1: Select “Use an advanced URL” in the targeting section.
Step 2: Enter the URL field’s subdomain you wish to target.
Using the “or” character, here is how you target all pages on the la and nyc subdomains on shopping.com:
This survey will show up on every page of la.shopping.com and nyc.shopping.com but won’t show up on www.shopping.com or paris.shopping.com.
Using a negative lookahead, you can also exclude a specific subdomain from being targeted. This tells the system to target all subdomains EXCEPT the one you’ve specified. Here is how you exclude the dogs subdomain from pets.com/shop/*:
This will target all pages on cats.pets.com/shop/*, small_animals.pets.com/shop/*, fish.pets.com/shop/*, and any other subdomains, but it will not show the survey on dogs.pets.com/shop/*.
If you only want to target your top-level domain and none of your subdomains, simply leave the subdomain area blank.
This will target every page on qualaroo.com, but nothing on help.qualaroo.com or app.qualaroo.com.
Don’t forget to click Save to finalize your changes.
That is all about targeting a subdomain.