Filters and actions
Filters
Filters are applied to the raw data gathered by the tag in the order specified. Entries from reports are either kept or removed in accordance with the specified conditions.
Changes made by filters cannot be undone. If you don’t set up any filters, Yandex Metrica reports will contain all the data for all user sessions. The checkbox to the left of each filter lets you disable the filter without permanently deleting it.
Filters can be applied to the following types of data:
equals
For example, if you select the filter type “Only record traffic from” and the “IP address” field, then set the condition to “equals” with the value 192.168.0.2, the report will only display information about traffic from this address.
in the range
Example of setting ranges of IP addresses: 192.168.0.0/24; 192.168.*; 192.168.0.0–192.168.255.255.
- contains
- begins with
- equals
- only website and additional domains — to only include pageviews for pages on the website and additional domains specified on the tag edit page (the General tab) in the report.
- contains
- begins with
- equals
The filter type can be refined with the following conditions:
The filter type can be refined with the following conditions:
The filter type can be refined with the following conditions:
To prevent Yandex Metrica from counting your own sessions, select the Don't count my sessions option. When this setting is enabled, the service stores the cookies of users who have viewed reports or Settings for this tag, and does not count these users when calculating statistics.
Operations
Operations are performed on the raw data. They modify reporting or referring site page addresses that are shown in reports.
The following operations are available in the settings:
- Remove parameter — Removes a given parameter from a URL. For example, if you select the action Remove parameter and the name sort, reports will combine the URLs http://example.com/?sort=by_price and http://example.com/ into a single URL, http://example.com/.
- Remove all parameters — Removes all parameters from a URL.
- Remove anchor — Removes the anchor from the URL (#anchor).
- Change from https to http — All webpages in reports shown as accessible over the HTTP protocol.
- Replace domain — This replaces the domain of all webpages in a report.
- Change to lowercase — All URLs will be shown in lowercase in reports.
Operations are applied to the webpage address of the reporting site, as well as to referrer. For example, the operation Remove parameter specifying sort will exclude http://source-example.com/?sort=by_price option sort=by_price from referrer.
Robots
By default, Yandex Metrica shows statistics without robots that have explicitly presented themselves. The data on such robots is shown in the Robots report. Statistics on robots detected by their behavior are available in reports in Data: with robots/without robots mode.
Using the Filter robots by behavior option, you can delete robotic sessions identified by behavior from the source data, but after that, you won't be able to change the statistics display mode. Sessions of such robots won't show up in statistics after you enable the option.
If you use Yandex Metrica Logs API, and you need data without robots, enable this option. In other cases, we don't recommend using it. This action cannot be undone.