Wildcard URL support¶
Website live-chat campaigns in ChannelX let you target pages with wildcard URL patterns. Instead of writing one campaign per page, a single pattern can cover an exact page, a whole section, or every subdomain of your site.
Every pattern must begin with http:// or https://.
Matching an exact page¶
If you enter a precise URL such as https://example.com/app, the match is strict. Trailing slashes, query parameters, and hash fragments are ignored differences in some directions but not others:
https://example.com/appwill matchhttps://example.com/app/andhttps://example.com/app?test_param=1.https://example.com/app?test_param=test_valuewill not matchhttps://example.com/apporhttps://example.com/app#test_hash_param.
Ignoring URL parameters¶
To match a page while ignoring query strings and hash fragments, add a trailing slash. For example, https://example.com/app/ matches all of these:
https://example.com/app/https://example.com/apphttps://example.com/app/?test=1https://example.com/app/#test
Matching every subdirectory¶
Use * to match everything beneath a path. For example, https://example.com/* matches:
https://example.com/https://example.com/apphttps://example.com/app/subdirectory
Matching every subdomain¶
To cover the root domain and all of its subdomains, use the {*.}? pattern. For example, https://{*.}?example.com/ matches:
https://example.comhttps://app.example.comhttps://www.example.com
Tip
Start narrow and widen only as needed. An exact URL is the safest choice when a campaign should appear on a single page; reach for * or {*.}? only when you genuinely want it across many pages or subdomains.