Show the right survey on the right page
Survey URL Targeting
Configure your feedback tool to appear only on specific pages using flexible URL rules. Include, exclude, and use wildcard patterns to target exactly where you want to collect feedback.
Get Started FreeWhy URL Targeting Matters
Different pages need different feedback. Your pricing page has different questions than your checkout flow, and your docs shouldn't interrupt with the same survey as your homepage.
Relevant Questions
Ask "Was this article helpful?" on docs, "What stopped you?" on checkout, and "How did you hear about us?" on signup.
Better Response Rates
Contextual questions get higher completion rates because they feel relevant to what the user is doing.
Cleaner Data
Page-specific surveys give you feedback you can act on without guessing which page it applies to.
URL Matching Options
Four ways to match URLs. Use them individually or combine include + exclude rules.
Match a specific URL path exactly
The survey appears only when the page path matches your pattern character-for-character. Best for single pages.
Pattern:
/pricing✓ Matches:
example.com/pricing
✗ Does NOT match:
example.com/pricing/enterprise
example.com/pricing-page
Match URLs containing a string anywhere
The survey appears on any page whose URL contains your string at any position. Good for flexible matching.
Pattern:
/blog/✓ Matches:
/blog/post-1
/blog/category/tech
/en/blog/news
✗ Does NOT match:
/about
/blogging-tips
Match with * wildcard patterns
Use * to match any characters. Combine with path prefixes for powerful targeting.
Pattern (all docs pages):
/docs/*Matches: /docs/getting-started, /docs/api/auth, /docs/faq
Pattern (product pages with ID):
/products/*/detailsMatches: /products/123/details, /products/abc/details
Match URLs beginning with a path
Target all pages under a specific section. Equivalent to wildcard but simpler syntax.
Pattern:
/checkout✓ Matches:
/checkout
/checkout/cart
/checkout/payment
/checkout/confirm
✗ Does NOT match:
/my-checkout
/cart
Include & Exclude Rules
Combine rules for precise targeting. Include rules define where the survey CAN appear. Exclude rules override includes to hide it on specific pages.
Example: Blog posts only, not the blog index
Include (starts with):
/blog/*Exclude (exact):
/blogResult: Survey shows on /blog/post-1, /blog/category/tech—but NOT on /blog (the index page).
Example: All pages except admin
Include (wildcard):
/*(all pages)Exclude (starts with):
/adminResult: Survey shows everywhere except /admin, /admin/users, /admin/settings, etc.
Pro tip: Start broad with includes, then narrow with excludes. It's easier to exclude a few pages than to include many individually.
Targeting Recipes by Page Type
Copy-paste patterns for common targeting scenarios. Adjust paths to match your site structure.
Pricing Page Feedback
Understand pricing objections and confusion
URL Pattern:
/pricing (exact)Suggested Question:
“Is our pricing clear? What questions do you have?”
Best trigger: Exit intent or 30s delay
Checkout Flow Feedback
Reduce cart abandonment by understanding friction
URL Patterns:
/checkout/* (wildcard)/cart (exact)Suggested Question:
“What's stopping you from completing your purchase?”
Best trigger: Exit intent only (don't interrupt active checkout)
Documentation Feedback
Find confusing docs and missing information
URL Patterns:
/docs/* (wildcard)Exclude: /docs (exact)Suggested Question:
“Was this documentation helpful?” (Yes/No + follow-up)
Best trigger: 75% scroll depth (they've read most of it)
Signup Page Feedback
Understand what drives signups and what blocks them
URL Patterns:
/signup (exact)/register (exact)Suggested Questions:
Exit: “What's holding you back?”
Post-signup: “How did you hear about us?”
Best triggers: Exit intent (pre-signup), immediate (post-signup thank you page)
Product Page Feedback
Learn what information is missing from product pages
URL Patterns:
/products/* (wildcard)Exclude: /products (exact)Suggested Question:
“Do you have all the information you need to make a decision?”
Best trigger: 50% scroll or 20s delay
URL Targeting QA Checklist
Before going live, verify your targeting works as expected.
Test on target pages
Visit each page your survey should appear on. Verify it shows.
Test on excluded pages
Visit pages that should NOT show the survey. Verify it doesn't appear.
Check edge cases
Test with query strings (?ref=google), trailing slashes (/docs/), and fragments (#section).
Test on mobile
If using device targeting, test on actual mobile devices or emulators.
Verify trigger timing
Make sure the survey appears at the right moment (delay, scroll, exit).
Check frequency controls
Dismiss the survey, then revisit. It should respect your cooldown settings.
Test in incognito
Use incognito/private mode to test as a first-time visitor.
Verify analytics
After testing, check your dashboard to confirm test responses appear with correct page URLs.
Tip: Create a test survey with "always" frequency and 100% sampling during QA. This lets you test targeting without waiting for cooldowns. Switch to production settings before going live.
URL Targeting FAQ
Can I target pages with query parameters like /search?q=shoes?
Yes. Use the "contains" match type with "?q=" to match any search page. The URL matching includes query strings, so /search?q=shoes will match a pattern like "/search" (starts with) or "?q=" (contains).
How do I target all pages EXCEPT a few specific ones?
Add a broad include rule (like "/*" for all pages), then add exclude rules for the pages you want to skip. Excludes always override includes.
Does URL targeting work with single-page applications (SPAs)?
Yes. Valerie's script detects URL changes in SPAs using the History API. When users navigate between routes in React, Vue, or Angular apps, the script re-evaluates targeting rules.
Can I have different surveys on different pages?
Yes. Create multiple surveys, each with its own URL targeting rules and questions. Each survey operates independently, so /pricing can have one survey while /docs has another.
What happens if a URL matches multiple surveys?
If a page matches multiple surveys, frequency controls determine what shows. By default, only one survey displays per session. You can adjust this in frequency settings.
Can I target by domain or subdomain?
The script is installed per-domain, so targeting is primarily path-based. For subdomains, install the script separately on each subdomain you want to track.
Start Targeting Your Feedback
Set up your first targeted survey in minutes. Show the right question on the right page.