Filters


Managing filters

Filters can be used to exclude incoming events from contributing to your website statistics. For example, if you don't want your office IP to factor into gathered stats, you can filter out that IP.

Currently, the following filters are available:

  • IP filters
  • Page filters
  • Country filters
  • Hostname filters

Creating IP filters

To create a new filter, click the "Add IP Address" button. This will open a modal where you can define your filter.

Then enter the IP address or range to block.

{info} CIDR ranges are supported. For example 127.0.0.1/24 will match all ips from 127.0.0.1 to 127.0.0.255

Creating Page filters

To create a new filter, click the "Add Page" button. This will open a modal where you can define your filter.

Then enter the page path to block, wildcards are supported.

{info} Use of wildcards in page filters is supported. For example /mypage* will match all pages starting with /mypage

Creating Country filters

To create a new filter, click the "Add Country" button. This will open a modal where you can define your filter.

Then enter the country code to block, use the ISO 3166-1 alpha-2 standard.

Creating Hostname filters

To create a new filter, click the "Add Hostname" button. This will open a modal where you can define your filter.

Then enter the hostname to block. Wildcards are supported.

{info} Always enter the entire fqdn, for example www.example.com and not just www if you want to block www hostname.

Modifying filters

Click on the "pencil" button to edit existing filters. The interface is the same as when creating new filters.

Deleting filters

To delete a filter, click the "trashcan" icon.

Opt out of tracking events from a browser

If you want to opt out of tracking events from your browser, you can do so by setting a special flag in localstorage in your browser.

Go to the website where you want to opt out of tracking, open the developer console and run the following command:

localStorage.setItem('galytics:ignore', 'true');

This will prevent any events from being sent to the server from your browser. To opt back in, run the following command:

localStorage.removeItem('galytics:ignore');