Data quality
Filter traffic with exclusion rules
Exclusion rules stop traffic you do not want in your reports. You set them per site under Site Settings, Exclusions. Loogika checks every incoming event against the rules before it stores anything.
Last updated . This guide belongs to Bot filtering.
Which exclusion rules are there?
| Rule | Matches on | Format | Limit |
|---|---|---|---|
| IP Exclusions | The visitor's IP address | Single address, CIDR range or IPv4 range | 100 |
| Country Exclusions | The visitor's country | Two-letter ISO code, such as DE | 250 |
| Path Exclusions | The page path | Pattern with *, not case-sensitive | 100 |
| Hostname Exclusions | The domain the page is on | Pattern with *, not case-sensitive | 100 |
| User Agent Exclusions | The browser's user agent | Any part of the text, not case-sensitive | 100 |
| ASN Exclusions | The network the visitor comes from | An AS number, written AS13335 or 13335. Up to 100 | |
| Query Param Exclusions | Parameters in the URL | Written name or name=value. The value can contain *. Up to 100 |
How do the patterns work?
In path and hostname rules, * stands for any run of characters.
| Rule | Pattern | Excludes |
|---|---|---|
| Path | /admin/* | /admin/users and every other page under /admin/ |
| Hostname | *.vercel.app | my-preview.vercel.app, but not vercel.app itself |
| User agent | HeadlessChrome | Every user agent that contains that word |
Path rules look at the path only. The query string is ignored.
A query param rule drops the whole event when the parameter is present. It does not remove the parameter and keep the rest.
What happens to excluded traffic?
The request gets a normal response, and the event is not stored. Excluded events never show in any report.
The rules cover every kind of event: pageviews, custom events, Web Vitals, errors, autocapture and session replay.
A new rule takes effect within about a minute. It applies to new traffic only.
How accurate is country filtering?
Loogika finds the country from the IP address. A visitor behind a VPN is placed in the country of the VPN server.
Private addresses, such as those on localhost or inside a company network, have no country. A country rule cannot match them.
What is the difference from skip patterns?
data-skip-patterns on the script tag stops the browser from sending a pageview. A path exclusion lets the browser send it and drops it on the server.
Use exclusions when you want to change the rule without a new deploy. See Tracking script for skip patterns.