The Current Page URL rule lets you control when a Slot is shown or hidden based on the URL of the page a visitor is currently viewing.
This rule is commonly used for web personalization, where content should only appear on specific pages or sections of a site, such as product pages, category pages, or search results. By matching against parts of the page URL, you can ensure that SmartBlocks and experiences are only displayed where they are relevant to the visitor.
You can target different parts of the URL, including:
the protocol,
domain,
path,
query parameters,
or the full URL, depending on how precise your targeting needs to be.
URL breakdown
URLs can be broken down into several constituent parts, for example, take this full URL:
Component | Description |
https | protocol |
findyourperfectholiday.co.uk | domain |
/find | path |
?SearchText=searchterm¶m2=test | all query parameters (SearchText, param2) |
#!display=list | URI fragment (which we don't currently target explicitly) |
For example, to target visitors searching for ‘searchterm’, you can use the Query option in the URL rule:
Add multiple rules
Be as specific as possible and use multiple rules where needed, as this helps avoid false positives.
For example, checking the full URL for ‘find’ to target a search results page would match all pages, as the same text appears in the domain.
A better option is to use a path match instead:


