Skip to content

Site settings

Exclusions

Keep your own visits and unwanted traffic out of your stats with the Exclusions tab, by browser, IP address, path, hostname or country.

View as Markdown

The Exclusions tab, at /settings/exclusions, stops some traffic from being counted: your own visits, your office network, admin pages, a staging site or whole countries. Open it from Site settings › Exclusions.

Excluded events are dropped before they are stored. Nothing about them is saved, so they can't be brought back later. Exclusions only affect new traffic; visits already recorded stay in your stats.

New rules apply within a minute. Owners and members can add and remove exclusions; viewers see the tab read-only.

Exclude your own visits

The first section, Exclude your own visits, is the easiest way to stop counting yourself.

  1. Click Exclude this browser. It opens your site with ?ax_ignore=true added to the address, for example https://example.com/?ax_ignore=true.
  2. That's it. The tracking script remembers the setting in this browser, and from then on sends nothing from it.

Things to know:

  • Do it in each browser you use, and on each device. It is a setting in the browser, not in your account.
  • The setting is saved per site address. If your site lives on several addresses (for example example.com and app.example.com), open each one once with ?ax_ignore=true added.
  • Private or incognito windows forget it when they close. Clearing your browser's site data removes it too.
  • You can add ?ax_ignore=true to any page of your site, not only the home page.
  • To start counting this browser again, open any page of your site with ?ax_ignore=false.

To test your setup (for example a goal), use a browser you haven't excluded.

Exclude IP addresses

Visits from these addresses are never recorded. IPv4 ranges like 10.0.0.0/8 work too.

Enter an IP address and click Add. Accepted forms:

  • A single IPv4 address, like 203.0.113.7.
  • A single IPv6 address, like 2001:db8::1.
  • An IPv4 range in CIDR form, like 10.0.0.0/8 or 203.0.113.0/24. Ranges work for IPv4 only.

The address checked is the visitor's public IP address as it reaches AnalyticsX. Many home and mobile connections change their address from time to time, and many use IPv6; if your visits still show up, check the address your browser uses now, or use Exclude this browser instead.

Exclude paths

Use * as a wildcard to match many paths.

Enter a Path starting with / and click Add, for example /admin or /admin/*.

  • Without *, the path must match exactly: /admin excludes /admin only.
  • * matches anything, including further slashes: /admin/* excludes /admin/users and /admin/users/42.
  • /admin/* excludes sub-paths but not /admin itself. Add both if needed.
  • A trailing slash is removed when you save, and query strings are never part of the path.
  • Paths can't contain spaces.

Exclude hostnames

Exact match. example.com does not cover its subdomains.

Enter a Hostname and click Add, for example staging.example.com. Any https://, path or port you type is removed. This is useful when a staging or preview copy of your site uses the same tracking snippet. To exclude several subdomains, add each one.

Exclude countries

Stops tracking new visits from these countries. Visits already recorded stay.

Pick a Country from the list and click Add. The country is the one AnalyticsX detects for the visitor's connection, the same one shown on your dashboard. Visitors using a VPN appear to be in the VPN's country.

Removing a rule

Every rule is listed under its section. Click Remove next to it. Traffic matching it is counted again within a minute; visits dropped while the rule was active are not recovered.

Limits

  • Up to 100 exclusion rules per website, across all four kinds.
  • Each value can be up to 200 characters.
  • Adding a rule that already exists shows "That is already excluded."

What exclusions don't cover

  • Payments from Stripe are always recorded, even if the buyer's visits were excluded. See Connect Stripe.
  • Bots and AI crawlers are handled separately. See Bots and AI crawlers.
  • To delete data you have already collected about one person, see Security settings.