Documentation menuData quality: Filter traffic

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?

RuleMatches onFormatLimit
IP ExclusionsThe visitor's IP addressSingle address, CIDR range or IPv4 range100
Country ExclusionsThe visitor's countryTwo-letter ISO code, such as DE250
Path ExclusionsThe page pathPattern with *, not case-sensitive100
Hostname ExclusionsThe domain the page is onPattern with *, not case-sensitive100
User Agent ExclusionsThe browser's user agentAny part of the text, not case-sensitive100
ASN ExclusionsThe network the visitor comes fromAn AS number, written AS13335 or 13335. Up to 100
Query Param ExclusionsParameters in the URLWritten 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.

RulePatternExcludes
Path/admin/*/admin/users and every other page under /admin/
Hostname*.vercel.appmy-preview.vercel.app, but not vercel.app itself
User agentHeadlessChromeEvery 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.