Instead of showing the same widget across your whole site, you can make it appear only where it’s most relevant.
Why use it
URL targeting helps you personalize the user experience. By narrowing the widget’s display to certain pages or categories, you can match your message to the visitor’s context.
Examples of URL targeting:
Show a popup with matching items only on specific product pages. For example, display a widget with new skirts when a visitor views blouse pages.
Display a ‘10% off your first order’ offer on the homepage.
Trigger an exit-intent discount only on the checkout page to reduce abandonment.
Examples of URL excluding:
Don’t show lead-generation popups on the ‘Thank You’ page (where the visitor has already converted).
Exclude the checkout page to avoid distracting visitors when they’re just one step away from completing a purchase.
Hide seasonal promos on blog articles, keeping them focused on content.
The targeting option is especially powerful in combination with other triggers, so you don’t waste widgets where they’re not relevant.
How to set it up
Go to Triggering → On pages → Add condition.
From the drop-down, select URL.
Choose how to match the page:
Equals — for a single page (such as homepage or cart).
Starts with / contains / ends with / regex — for groups of pages (for example, category URLs like /womens/ or /mens/).
Enter your value.
Save your changes.
You can also add conditions under Exclude pages to hide widgets on certain URLs.
URL matching conditions in Claspo
Each condition determines how Claspo checks the page URL before showing a widget — whether it needs to match exactly, partially, or follow a custom pattern.
Condition | What to enter | How it works | Examples |
equals | Full URL (exact match) | Widget triggers only on this specific page. Requires exact match — including slash, protocol. | |
starts with | Beginning part of a URL | Useful for matching whole sections of the site. All URLs that begin with this string will match. | https://site.com/blog/ → a widget will appear on:
|
ends with | Trailing part of a URL | Matches any URL that ends with this exact string. Useful for standard page endings. | /checkout → a widget will appear on:
|
contains one of | Keyword or parameter | A widget appears on any page whose URL includes the specified fragment. | /products/ → shown on:
|
regex | Regular expression string | Insert in regular expression format if complex logic is required.
| ^https:\/\/site\.com\/(catalog|blog)\/.*$ → a widget will appear on all pages of the /catalog/ and /blog/ sections.
|
Important note on trailing slashes, protocols, and www in URLs
When setting up a widget for a specific URL, be careful with slashes at the end (/). Some websites treat URLs with and without trailing slashes as different pages, while others don’t. Here’s how to check and avoid issues:
If your site opens both https://site.com/page and https://site.com/page/ without redirecting — we recommend using the version without the slash in Claspo to prevent confusion.
If your site redirects (for example, from https://site.com/page to https://site.com/page/), then you should use the version that the browser displays after the redirect.
How to check your site’s behavior:
Enter the URL without the trailing slash into your browser.
After the page loads, check the browser's address bar:
– If the slash was added automatically, use the version with the slash in Claspo.
– If the slash was not added, use the version without the slash.
Using the exact displayed URL will ensure Claspo targets the right page.
Protocols and www
Claspo matches the full URL, including the protocol and subdomain — so consistency matters:
Always include the full protocol: use https:// if your site uses it. http:// and https:// are not treated as the same.
Be consistent with www: https://www.site.com and https://site.com are different URLs. Make sure to use the exact format that appears in your browser’s address bar.
Using the precise URL — including protocol, subdomain, and trailing slash — ensures that your widget targets the right page without errors.
Tips & combinations
Time on page + URL targeting (use When all conditions are met) — show a widget only after a visitor has spent time on key pages.
Scroll depth + URL targeting (use When all conditions are met) — display a widget only when someone reads deeply into specific articles or long product pages.
These combinations ensure your widget appears where it matters most and at the right moment — making it more relevant and effective.
