This article covers the most common problems with URL restrictions and how to solve them. For how the feature works, see URL Restrictions.
How URL restrictions work, in brief
- URL restrictions are set for each domain, in Visitor capture settings on the Script page.
- Trigger on all pages, except the URLs listed below. collects everywhere except the pages on the URLs to ignore list.
- Only trigger on the URLs listed below. collects only on the pages on the URLs to trigger on list.
- Each entry is a path that starts with
/. An entry longer than 3 characters matches anywhere in the page's path; an entry of 3 characters or fewer must match the whole path. Case doesn't matter. - Only the path is compared, never the domain or the query string.
- Wildcards aren't supported.
Common issues
1. An entry is refused
When you select Add, the entry is checked before it's added to the list:
| Message | What to do |
|---|---|
| Enter a path that starts with "/" without spaces, "?" or "=", e.g. /contact-us | Enter only the path, such as /contact-us, not the full address https://example.com/contact-us. Remove any query string. Keep the entry to 81 characters or fewer. |
| That URL is already in the list. | The entry is already there. Nothing more to do. |
| You can add up to 100 URLs. | Remove entries you no longer need, or group pages under a shorter common path. |
2. A wildcard entry doesn't work
An entry such as /faq/* is looked for literally, so it matches nothing. Enter /faq instead: as it's longer than 3 characters, it matches every page whose path contains it.
3. A short entry doesn't match the pages under it
Entries of 3 characters or fewer, such as / or /en, must match the whole path. /en matches only the page /en, not /en/pricing. Use a longer entry, such as /en/, to match every page under it.
4. Visitors still appear from a page I excluded
- Check the option. Entries under URLs to ignore apply only with Trigger on all pages, except the URLs listed below.
- Check that you saved. Changes apply only after you select Save capture settings. If saving reports that the script could not be published, select Retry publishing next to the domain in the domain list.
- Check the domain. URL restrictions belong to one domain. If your account has several, make sure you changed the right one under Capture settings for.
- Check where else they went. URL restrictions stop collection on the pages you list, not identification across your site. A visitor who also viewed a page you didn't exclude can still be identified there.
5. Visitors appear from a subdomain
A domain collects only on https://<domain> and https://www.<domain>. If you see visitors from another subdomain, such as app.example.com, that subdomain was added as a domain of its own. Delete it from your domains on the Script page, or make it inactive, and remove the script from it if you don't want to collect there.
Adjusting URL restrictions
- Go to the Script page.
- In Visitor capture settings, choose the domain under Capture settings for.
- Under URL restrictions, check the option and review the entries.
- Add or remove entries so that each one is part of a real page path.
- Select Save capture settings.
Turning off URL restrictions
To collect on every page of a domain again:
- In Visitor capture settings, choose the domain.
- Select Trigger on all pages, except the URLs listed below.
- Remove every entry under URLs to ignore. The settings then show "No URLs ignored: the script runs on every page."
- Select Save capture settings.
Frequently asked questions
Why does my entry disappear or get refused?
The entry is probably a full address or contains a query string. Enter only the path, such as /contact. See An entry is refused.
Can I exclude a whole subdomain with URL restrictions?
No. URL restrictions compare paths only. A subdomain is collected on only if it's one of your domains, so delete or deactivate that domain instead.
Why isn't the exclusion for a specific page working?
Make sure the entry is part of the page's real path and has no wildcard, that it's on the list of the option you chose, and that you saved. Then check whether the visitor also viewed pages you didn't exclude.
How do I make sure Blue Tracely collects on every page?
Choose Trigger on all pages, except the URLs listed below., remove every entry, and select Save capture settings.