Exclude pages, domains and bots from your stats
FastAnalytics measures every page that has the script. If some of them should not count, add a rule in your website settings: matching visits are simply not stored.
Where to find it
- Open My websites in the dashboard.
- Go to the measurement settings tab and pick the website.
- Fill in the Don't count section (pages, domains, browsers, countries), one rule per line.
- Save. The rules apply from that moment on.
Rules are applied on our servers, so you do not need to change the script or wait for your site's cache. Visits measured before you saved stay as they are.
How patterns work
In pages, * matches one part of the path and ** matches everything below it. The whole path must match, case does not matter and anything after ? is ignored. In domains, * matches one part of the name (between dots).
| Rule | What it leaves out |
|---|---|
/admin/** | Everything inside /admin/. Add /admin too if you also want to exclude that exact page. |
/preview/* | Each page one level below /preview/, such as /preview/123. |
/print | Only that page. |
staging.mysite.com (Domains) | Visits from your staging site. |
*.vercel.app (Domains) | Vercel preview deployments. |
HeadlessChrome (Browsers) | Bots whose browser name contains that text. |
RU, CN (Countries) | Visits from those countries (2-letter codes). |
Typical cases
Online shop: exclude your staging store and, if you only care about shopping, the customer area (/my-account/). Careful: on excluded pages nothing is stored, not even events or sales, so never exclude your thank-you page. SaaS with an app on the same domain: exclude /app/ if you only want to measure the public website, or put the script only in your app if that is all you want to measure. Agencies: exclude the client's preview and staging domains so tests do not mix with real visits.
Exclude or hide the data?
If you want to measure a page but its address contains personal data, such as a user name or an order number, do not exclude it: use Store these paths without the data in the same settings. A rule like /users/*/profile stores that pattern instead of the real address.
To leave out your own visits, you do not need rules: use Don't count my visits in My websites. More in Check your installation.
FAQ
Does excluding a page delete its old data?
No. Rules only affect visits that arrive after you save them.
Do excluded visits use my plan's page views?
No. They are discarded before being stored, so they do not count towards your plan.
Can I measure only one part of my website?
Yes. The simplest way is to add the script only to those pages. If the script is on every page, exclude the rest with page rules.