|
This article covers the following: |
Overview
The Pages section tells Wingify which URLs to include in your campaign. You must configure at least one URL condition before proceeding to the next step in the campaign configuration process.
How you configure pages depends on your test type:
- A/B single-page and Multivariate tests: Configure URL conditions directly on the Pages screen.
- A/B multi-page tests: Configure one or more page groups, each with its own name, editor URL, and URL conditions.
Configure Page URLs (A/B Single-Page and Multivariate Tests)
- On the left pane of your campaign, click Pages.
- Under the Configure tab, set the URL conditions under Include pages where:
- URL matches: Enter the exact URL. Use this for a single, specific page.
- URL contains: Match any URL that includes a specified string.
- URL matches pattern: Use wildcards (*) for broad matching. For example, https://example.com/products/* matches all product pages.
- URL matches regex: Use regular expressions for complex matching rules. For more information, see Using URL patterns in Wingify.
- Optionally, click Exclude pages to define URLs that should be excluded from the campaign, even if they match your include rules.
-
To add another URL condition, click Include pages.
For example, to run a site-wide test on example.com but exclude the Contact Us page: set Include pages to URL matches pattern https://example.com/* and Exclude pages to URL matches https://example.com/contact-us/.
-
Click Selector Path to match a page based on a CSS selector on the page. To configure the condition that matches the page with the selector path:
- Select the comparison operator Is equal to to include pages where the element is present, or Is not equal to to include pages where it isn't. Enter the selector path in the adjacent field.
For example,
body > div.main_nav > p:nth-child(2)
targets the second <p> element inside the main_nav div. You can use this to include pages based on whether that specific element is present on the page.
-
Set Poll Until: Polling means Wingify repeatedly re-checks the page for the condition, rather than checking only once. Specify how long Wingify should keep checking before it stops:
- Polling disabled: Evaluates the condition once, without polling.
- DOM Ready: Polling ends once the HTML is fully loaded and parsed. This is the default.
- Condition is true: Polls continuously until the condition evaluates true.
- To add another condition, click Selector Path again.
- Choose And or Or to specify how the conditions should be evaluated together:
- Or (default): The page matches if at least one selector condition is met.
- And: The page matches only if all selector conditions are met.
-
Optionally, click JS Code to match a page using your own JavaScript logic. The script checks a condition on the page and returns whether the page matches.
To configure a JS Code condition:
-
Add your script inside the provided function without changing its syntax. The function must return a boolean value: true if the page matches the condition, or false if it does not match the condition.
For example, to run your campaign only when the URL path contains checkout, you can use:
function() { return window.location.pathname.includes('/checkout'); } - Set Poll Until to specify when Wingify should stop polling for the condition to be met. The same three options described under Selector Path apply here: Polling disabled, DOM Ready, and Condition is true.
Important: Selector Path and JS Code conditions are available only for accounts created on or after June 14, 2026. For accounts created before June 14, 2026, these condition types are not available. -
Configure Page Groups (A/B Multi-Page Tests)
In a multi-page A/B test, you define page groups to specify which pages are included in your campaign. Each page group has its own name, editor URL, and URL matching conditions.
Add a Page Group
- On the left pane of your campaign, click Pages.
- Click Add pages groups. The Add Page group panel opens.
- In the Name field, enter a name for this page group.
- In the Editor URL field, enter the full URL of the page you want to load in the Visual Editor.
- Under the Configure tab, set the URL conditions under Include pages where:
- Select a matching rule from the dropdown: URL matches, URL contains, URL matches pattern, or URL matches regex.
- Enter the corresponding URL or pattern in the field next to it.
- Optionally, click Exclude pages to define URLs that should be excluded, even if they match your include rules.
- To add another URL condition within the same group, click Include pages.
-
Optionally, click Selector Path or JS Code to further refine matching for this page group. See steps 5–6 under Configure Page URLs (A/B Single-Page and Multivariate Tests).
Important: Selector Path and JS Code conditions are available only for accounts created on or after June 14, 2026. For accounts created before June 14, 2026, these condition types are not available. - Click Add to save the page group.
- To target additional page types, click Add pages groups again and repeat the steps above for each group.
Note: Each page group loads its own editor URL in the Visual Editor, so you can make targeted changes to each page type independently in the Variations & Traffic section.
URL Configuration Settings
Click the More options ⋮ icon next to the URL field to access additional matching settings:
- Ignore query string: Ignores text after the ? in the URL
- Ignore fragment: Ignores text after the # in the URL
- Case insensitive: Disregards the capitalization of characters in the URL
All three settings are enabled by default.
Use Copilot to Configure Pages (Early Access)
The Copilot tab is an AI-powered option that helps you configure URL conditions based on a natural language description of your pages. This feature is in Early Access. For more information, see Fastrack Your Campaign Pages Configuration with Wingify Pages Copilot.
Validate Your Campaign URLs
After adding your pages, use the URL Validator at the bottom of the Pages screen to confirm that your URLs are correctly captured by the campaign.
- Enter a URL in the URL Validator field.
- Click Validate.
Wingify checks the URL against your include and exclude rules and confirms whether it is part of the campaign. Add as many URLs as you need to verify.
Click Save Now to save your page configuration at any time, or click Next at the bottom of the screen to move to the Variations & Traffic section. For more information, see Create and Configure Variations and Traffic.
Need more help?
For more information or further assistance, contact Wingify Support.