PureStats documentation

Path exclusions

Exclude private, internal or noisy website paths from PureStats tracking. Learn matching rules, common exclusions and how to troubleshoot missing pageviews.

Path exclusions prevent PureStats from recording pageviews or events for matching paths even when the tracker is installed there.

Configure exclusions under Excluded paths in Site settings → Privacy settings. The tracker loads these rules automatically, so the default script tag still only needs data-domain.

Common exclusions

Examples:

/admin
/account
/preview
=/pricing/internal
/blog/*/drafts

Use exclusions when the tracker is included through a shared layout but some areas should not appear in analytics.

Matching behavior

Rules should be simple and predictable:

  • A plain path such as /admin matches that page and every page below it.
  • A path that starts with =, such as =/admin/login, matches only that exact path.
  • * is a wildcard, for example /blog/*/drafts.
  • Lines that start with # are ignored.
  • Query strings are ignored for path matching.

Keep rules narrow. Excluding /app may remove important product analytics if your app lives there.

Private and staff traffic

Exclusions remove specific URLs for everyone. PureStats has no IP-based staff filter: to keep your own visits out, use a browser profile with a blocker or exclude the internal paths.

Debugging exclusions

If a page does not show up:

  1. Check Excluded paths in Site settings → Privacy settings.
  2. Confirm the browser path matches the rule.
  3. Use tracking test mode to see the excluded-path decision for the page.
  4. Inspect the Network response from /api/event.

Privacy benefit

Excluding private areas reduces the chance that account URLs, billing paths or internal workflows appear in analytics reports.