The Current Page URL rule for Slots allows you to target SmartBlocks at, or exclude them from, pages based on the URL.
There are several ways to target the URL:
Protocol
Domain
Path
Query
Full URL
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) |
So, if you want to target for people searching for 'searchterm', for example, you could use the Query option in the URL rule:
We recommend being as specific as you can be, and adding multiple rules if necessary, because this helps avoid false positives.
For example, if we checked the full URL for 'find', in order to display something on the search results page, it would match all pages, because the the same four characters appear in the domain (findyourperfectholiday.co.uk).
So, a better option is to use a path match instead: