Configure URL targeting for an A/B test

Configure URL targeting for an A/B test


URL targeting lets you specify the webpages on which you want to run your A/B test. You can target a specific webpage, multiple webpages, or pages that follow a particular URL structure.
For example, if you want to test all product pages on your website, you can use URL targeting to include only URLs that match your product-page structure.

Setup URL targeting  

1. Go to Optimize > A/B Testing and create a new A/B test or open an existing draft.



2. Enter the URL of the webpage you want to test in the
URL field.Select the appropriate URL match type and specify the URL condition based on the pages you want to target. Add additional URL conditions or exclusions if you want to include  specific webpages.
1


3. You can exclude specific pages using advanced URL-matching options, giving you precise control over which pages are included in your experiment.
You can combine inclusion and exclusion conditions to control exactly where your experiment runs.

Requirement
Configuration
Run the test only on product pages
Include /products/
Run the test on all product pages except one
Include /products/ + exclude the specific URL
Run the test across a section of your website
Include the relevant URL path
Prevent specific pages from participating
Add an exclusion condition

For example:
Include: example.com/products/
Exclude: example.com/products/internal/
This allows the experiment to run on the product section while excluding the internal product pages.


4. Preview to verify that your targeting conditions select the intended webpage. Review your URL targeting configuration and click create to apply the changes and move to the next step. After configuring your conditions, preview the URL to verify that the intended webpage is targeted.
Always check your targeting when using:
  • Multiple conditions
  • URL patterns
  • Regular expressions
  • Include and exclude rules
  • Dynamic URLs
If unintended pages are included, refine your targeting conditions before launching the experiment.


URL match types  

PageSense provides different URL match types to help you target the right webpages.

Match type
What it does
Example
When to use
Domain
Targets webpages within a specific domain
example.com
When you want to target pages across a domain
Simple URL Match
Matches the URL based on the standard URL structure
example.com/pricing
For common URL targeting requirements
Exact Match
Matches only the specified URL
example.com/pricing
When you want to test one specific webpage
URL Pattern Matches With
Matches URLs that follow a specific pattern
example.com/products/*
When multiple pages follow a similar URL structure
URL Regex Matches With
Matches URLs using a regular expression
example.com/products/.*
For complex URL structures
URL Contains
Matches URLs containing a specific value
/products/
When the URL contains a common path or term
URL Starts With
Matches URLs beginning with a specified value
example.com/products/
When you want to target a section or group of pages
URL Ends With
Matches URLs ending with a specified value
.html
When pages share a common URL end

Best practices  

Do
Avoid
Use Exact Match for a single webpage
Using broad conditions for a single page
Use Starts With for predictable URL paths
Creating individual rules unnecessarily
Use patterns for groups of similar pages
Using complex regex when a simpler match works
Add exclusions for pages that shouldn't participate
Assuming a broad rule will exclude unwanted pages
Preview your targeting before launch
Launching without verifying the targeted URLs
 

InfoTip: Choose the simplest URL match type that accurately targets the webpages you want to test. 





We’ve designed this documentation to guide you every step of the way. If you need further assistance or have any questions, don’t hesitate to contact us at support@zohopagesense.com - we’re always here to help!