Targeting your Web Surveys in Zonka Feedback allows you to display surveys on specific pages, to specific user segments, and under certain conditions. With page-specific and behavior-based targeting, you can increase survey relevance and collect more focused feedback by displaying surveys only to visitors who are most likely to provide valuable insights.
In this article
Targeting Pages Containing a Specific Keyword
Targeting an Exact URL
Targeting with Regex for Advanced Page Targeting
How Regex Works in Zonka Feedback
Regex Syntax and Rules
Common Regex Patterns for Targeting Web Surveys
Overview of Web Survey Targeting
Zonka Feedback’s Web Survey Targeting provides several options to control where, when, and for whom a survey appears on your website. You can configure targeting settings to display surveys on all pages, specific pages, or pages that match complex URL patterns. For websites with multiple sections, dynamic pages, or large product catalogs, Zonka Feedback’s Regex (Regular Expressions) targeting option is a powerful way to reach audiences based on advanced page targeting rules.
Benefits of Web Survey Targeting
Improved Relevance: Displaying surveys only to specific user groups or on certain pages can lead to more relevant and insightful feedback.
Enhanced User Experience: Limiting surveys to certain pages or behaviors prevents over-surveying and improves the overall user experience.
Increased Response Rates: Targeted surveys are more likely to be completed, as they’re displayed to users based on their behavior or page content, improving response rates.
Advanced Flexibility: Regex targeting allows precise control over survey display on multiple pages without manually listing each URL.
Setting Up Targeting Options in Zonka Feedback
Access Web Survey Targeting Settings:
Log in to Zonka Feedback and select the web survey you’d like to target.
Navigate to Settings > Targeting to configure the survey’s targeting options.
Choose a Targeting Option:
Choose between displaying the survey on All Pages or Specific Pages.
All Pages will display the survey on every page where the Zonka Feedback code is embedded.
Specific Pages offers additional control, allowing you to specify conditions based on keywords, exact URLs, or Regex patterns.
Displaying Web Surveys on All Pages
This option will make the survey available on all website pages where the Zonka Feedback widget code is installed.
When to Use: Displaying surveys on all pages is ideal for gathering general feedback from site-wide visitors, such as overall satisfaction or navigation ease.
How to Set Up:
In the Targeting settings, select All Pages.
Save your changes to apply the settings.
Displaying Web Surveys on Specific Pages
To display surveys only on specific pages, choose the Specific Pages targeting option. Within this setting, Zonka Feedback offers three page targeting methods:
Targeting Pages Containing a Specific Keyword
Display the survey on any page URL that contains a designated word or phrase.
When to Use: Best for targeting groups of pages based on common topics or themes, like blog posts or support sections.
Example: To gather feedback from readers of your blog, you can target pages containing the word "blog" in the URL.
How to Set Up:
In Targeting settings, choose Specific Pages.
Select Has this word and enter the desired keyword (e.g.,
blog
).Save to apply the targeting.
Targeting an Exact URL
Show the survey only on one specific URL.
When to Use: Useful for targeting feedback on a single landing page, a product page, or any specific URL.
Example: Display a survey on
/pricing
to collect feedback on pricing information.How to Set Up:
In Targeting settings, select Specific Pages.
Choose Is the exact URL and enter the URL (e.g.,
https://yourwebsite.com/pricing
).Save to apply the targeting.
Targeting with Regex for Advanced Page Targeting
Use Regex (Regular Expressions) to create patterns for targeting specific groups of pages.
When to Use: Regex is ideal when you want to target multiple pages with shared elements in the URL, such as product pages or category listings.
Example: To target all product pages, use
/products/.+
to match all URLs that start with/products/
.How to Set Up:
In Targeting settings, select Specific Pages.
Choose Matches Regex and enter a Regex pattern to match the desired URLs (e.g.,
/products/.+
).Save to apply the targeting.
Setting Up Regex in Web Survey Targeting
Using Regex in Zonka Feedback allows you to configure complex URL patterns, enabling you to show surveys on multiple pages without listing each URL individually. Regex patterns are ideal for large sites with dynamic or similar page structures, such as eCommerce product pages or service directories.
How Regex Works in Zonka Feedback
Regex (Regular Expressions) is a pattern-matching language that helps you match URLs by defining rules.
Pattern Matching: Each Regex pattern you enter is matched against the page URL, and if the page matches the pattern, the survey will be displayed.
Flexibility: Regex gives you more control over survey targeting than simple keywords or exact URLs, as it can match multiple variations of a page path.
Regex Syntax and Rules for Zonka Feedback
. - Matches any single character except for line breaks.
* - Matches zero or more of the preceding character.
+ - Matches one or more of the preceding character.
? - Makes the preceding character optional (matches zero or one instance).
[abc] - Matches any single character within the brackets (
a
,b
, orc
).[0-9] - Matches any single digit between
0
and9
.^ - Indicates the start of a string.
$ - Indicates the end of a string.
(abc|def) - Matches any of the alternatives specified (
abc
ordef
).
Common Regex Patterns for Targeting Web Surveys
Here are some commonly used Regex patterns and examples to help you get started:
Target All Pages in a Specific Section:
Pattern:
/blog/.*
Description: Matches any page within the
/blog/
section.Usage: Target all blog pages, such as
/blog/article1
,/blog/article2
, etc.
Target Pages with Dynamic IDs:
Pattern:
/products/[0-9]+
Description: Matches URLs like
/products/123
, where the page path includes a numeric ID.Usage: Ideal for eCommerce sites where each product page has a unique ID.
Target Specific Query Parameters:
Pattern:
^/search\?query=.*
Description: Matches URLs with the query parameter, such as
/search?query=phone
.Usage: Display surveys on search result pages based on user searches.
Target Pages with Either of Multiple Options:
Pattern:
/support/(faq|help|contact)
Description: Matches any URL in the support section containing "faq", "help", or "contact".
Usage: Show surveys on frequently visited support pages, no matter which option the user selects.
Match Any Page with a URL Ending:
Pattern:
.*\.html$
Description: Matches any URL ending with
.html
, such as/about.html
or/contact.html
.Usage: Useful for sites using HTML file paths.
Target Subdomains:
Pattern:
^https://(blog|support)\.yourwebsite\.com/
Description: Matches any page under
blog.yourwebsite.com
orsupport.yourwebsite.com
.Usage: Show surveys on specific subdomains for different content types or sections.
Exclude Certain Pages:
Pattern:
(?!.*exclude-this).*
Description: Matches any page except those containing "exclude-this" in the URL.
Usage: Useful if you want to exclude certain pages or paths from your survey display.
Frequently Asked Questions (FAQs)
What are the benefits of targeting web surveys on specific pages?
Targeting surveys to specific pages allows you to collect more relevant feedback by engaging users who are visiting particular sections of your website. This can help gather insights tailored to individual pages or sections, leading to improved response quality and higher completion rates.Can I use more than one targeting option within the same survey?
No, each survey can only have one active targeting rule: either "All Pages" or "Specific Pages" (using keyword, exact URL, or Regex). However, you can create multiple surveys, each with different targeting rules, to achieve more varied targeting across your website.
If I use “All Pages” targeting, will the survey show up on every single page of my website?
Yes, selecting All Pages will display the survey on every page where the Zonka Feedback survey widget is embedded. This is useful for collecting general feedback across the website, but you can also use Specific Pages targeting to refine the survey display.
When should I use the “Has this word” option in targeting?
Use the Has this word option when you want to display surveys on pages containing a specific keyword in the URL. This is ideal for targeting a group of pages related by a theme, such as “blog” for all blog articles or “support” for help-related pages.
How does exact URL targeting work?
Exact URL targeting allows you to display the survey only on a specified URL. This is particularly useful for pages where you want to collect targeted feedback, such as landing pages, pricing pages, or a specific product page.
Can I enter more than one URL in the exact URL targeting option?
No, the exact URL targeting setting only allows one URL per survey. However, you can duplicate the survey and set different exact URLs for each version to target multiple pages with exact matches.
What is Regex targeting, and when should I use it?
Regex (Regular Expressions) targeting allows you to define complex patterns to match multiple pages with shared URL structures. Use Regex targeting for dynamic pages, product pages with IDs, or sections of your site that follow a similar URL pattern.
Do I need to know coding to use Regex targeting?
Regex targeting does require a basic understanding of Regular Expressions. If you’re unfamiliar with Regex, you can refer to common Regex patterns provided in Zonka Feedback or use an online Regex tester like regex101.com to help create and test patterns.
What are some common Regex patterns I can use for targeting?
Here are a few common Regex patterns:
/products/[0-9]+
: Targets pages in the “products” section with numerical IDs./blog/.*
: Targets all pages within the/blog/
section.^/search\?query=.*
: Targets search result pages with query parameters.
How do I test my Regex pattern before using it in Zonka Feedback?
You can test Regex patterns on websites like regex101.com. Enter the pattern and an example URL to verify that the pattern works as expected before implementing it in Zonka Feedback.
Can I combine multiple Regex patterns in one targeting rule?
Yes, each survey targeting rule accepts multiple Regex patterns.
Does Regex targeting affect website load speed?
Regex-based targeting in Zonka Feedback is optimized for performance, and the survey widget is loaded asynchronously. This means it won’t slow down your website’s main load time.
Can I change the targeting settings for a survey that’s already live?
Yes, you can modify targeting settings for a live survey at any time. Changes are applied immediately, so you don’t need to republish or re-embed the widget on your site.
What happens if the URL structure of my website changes?
If your website’s URL structure changes, update the targeting settings in Zonka Feedback to match the new structure. This is particularly important for Regex and exact URL targeting, as these options depend on URL patterns.
Can I preview how the survey targeting will work on my site?
While Zonka Feedback doesn’t currently provide a direct preview of targeting, you can test Regex patterns on external Regex testing websites. For exact URL targeting, simply visit the target URL on your website after setting up the survey to confirm it displays as expected.
Will the survey reappear if a user navigates to the same page multiple times?
This depends on the survey frequency settings in Zonka Feedback. You can configure settings for each survey to show only once per session, once per user, or on every visit, allowing you to control the display frequency based on your survey goals.
How does Zonka Feedback handle survey visibility on pages with different protocols, like http and https?
Targeting rules in Zonka Feedback are protocol-agnostic, meaning that as long as the URL pattern matches, the survey will display on both http and https versions of the page.
18. Can I set targeting conditions based on user behavior, such as time spent on the page or exit intent?
Yes, in addition to URL-based targeting, Zonka Feedback offers behavior-based targeting options. You can configure surveys to appear based on user behavior, such as scrolling down a page, after a certain time delay, or when a user shows intent to exit the page.