e.g. 123.123.123.123|134.134.134.134<\/p><\/blockquote>\n\n\n\nExcluding multiple IPs with a single filter<\/figcaption><\/figure>\n\n\n\nC-Class filter<\/h2>\n\n\n\n Following the solution above, in some cases the offices might use a range of IP addresses and not only one single address. This is very common for larger offices and campuses.<\/p>\n\n\n\n
In this case, you can use the regular expression matching to exclude an entire range of IPs.<\/p>\n\n\n\n
The most common case is excluding an IP C-Class. This is the entire range of IPs indicated by the final digits in the IP address. For example, 234 in the address below.<\/p>\n\n\n\n
123.123.123.234<\/strong><\/em><\/p><\/blockquote>\n\n\n\nTo exclude the entire range, we can create a filter to match 123.123.123.*<\/em><\/p>\n\n\n\nFiltering out an IP C-Class range <\/figcaption><\/figure>\n\n\n\nThis will exclude all traffic that matches this pattern, e.g. 123.123.123.222<\/strong><\/p>\n\n\n\nPro tip: <\/strong> This is a simplified version of the regular expression syntax that could include edge cases. The “full” syntax should actually be 123\\.123\\.123\\..* <\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"Filtering an IP in Google Analytics is pretty simple (see post). But in many cases, a company will have multiple IPs to exclude, e.g. multiple office locations. In this post I’ll cover several ways to implement such filters. Multiple filters One way of applying such filters is by adding a single filter for each IP. […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-4393","post","type-post","status-publish","format-standard","hentry","category-google-analytics"],"_links":{"self":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/comments?post=4393"}],"version-history":[{"count":4,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4393\/revisions"}],"predecessor-version":[{"id":4827,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4393\/revisions\/4827"}],"wp:attachment":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/media?parent=4393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/categories?post=4393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/tags?post=4393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}