Skip to main content

Page Targeting (URL): Overview

Overview of Asklayer's URL-based page targeting for popup surveys, with examples for showing or excluding pages.

Asklayer's popup surveys (Site widget mode) can target specific pages, products, categories, and more using URL rules.


​

Common configuration examples

What you want to do

How to configure it

Show on every page

Leave all rules blank.

Show only on the homepage

"Show on these pages" → Match type: URL Equals → Match text: https://mysite.com/

Show everywhere except the cart and checkout pages

Add two rules under "Don't show on these pages": Match type: URL Contains → Match text: cart, and Match type: URL Contains → Match text: checkout. A page is excluded if it matches either rule.

Show on every page within a specific category

"Show on these pages" → Match type: URL starts with → Match text: https://mysite.com/my-category/

Target users coming from a specific advertising campaign

"Show on these pages" → Match type: URL contains → Match text: utm_campaign=mycampaign


​

Advanced information

  • If you set multiple exclusion rules, a page is excluded if it matches any one of them (OR logic, not AND).

  • Exclusion rules always take precedence over target rules.

  • Trailing slashes (slashes at the end of URLs) are ignored for targeting — it works whether or not the URL has one.

  • "URL Equals," "Starts with," and "Ends with" match the URL without the query string or hash. (Even if you include a query string or hash when setting these up, that portion is not saved.)

  • "URL Contains" matches the full URL, including the query string and hash.

  • A "query string" refers to the text following ? or &, such as ?search=mysearch or &search=mysearch. A "hash" refers to the text following #.


​

Advanced tip: Using the "Contains" match type, you can also target query strings — for example, on-site search terms or Google Analytics UTM parameters.

Did this answer your question?