The Display & Restriction Filters allow you to control on which page(s) dynamic placements should or should not be displayed.

URL Filters

URL Filters allows you to set on which page URL a placement should or should not be displayed.

Strict matching

Exactly matches and Does not match allows you to strictly define if a placement should be shown or not on a given URL. Note that some browsers sometimes hides the last ”/” in the url field. You can double check an exact URL by typing location.href in the console. 

Example

With the filters above set, the placement will only be displayed when users visit the following URL http://www.store.com/collections/product123.

It will not be displayed when users visit URLs such as http://www.store.com/collections/product123?utm_source=source1 or https://www.store.com/collections/product123.

Partial matching

Contains and Does not contain allows you to define substrings of URLs to define if a placement should or should not be shown.

With the filters above set, the placement will only be displayed when users visit a page that contains /collections/product1 as a string. 

The placement will be displayed is users visit pages like http://www.store.com/collections/product123?utm_source=source1 or http://www.store.com/collections/product1568973?utm_source=source1 for example. 

It will not be displayed when users visit URLs such as http://www.store.com/collections/product6123?utm_source=source1 or https://www.store.com/collections/product25643.

Matches pattern

This allows you to take advantage of regular expressions to target complicated URL structures. 

While this is not possible to document all of the different possibilities that regular expressions allows, here is an example:

If you want to display a placement on URLs that contains /products/shoes, /products/hats, and /products/shirts but no other URL. The following regular expression would look like this: 

/products/(shoes|hats|shirts).*

Note that it is possible to set multiple URL filters for a single placement. 

Example

Page Type Filters 

Page Type Filters allows you to define on which page type a placement should or should not be displayed.

Page Types are tagged by Nosto as part of the regular Nosto Tagging. You can learn more on how to tag your page types here.

It is possible to set multiple Page Type Filters for a single placement. 

Example

Note that both URL Filters and Page Type Filters can be combined. 

Example

In this example, the placement is displayed only on category pages and that contains /collections/air-jordan or /collections/nike as part of the URLs.

Did this answer your question?