Filtering IP addresses on Google Analytics is an important step in ensuring that your website's analytics data is accurate and relevant. By excluding internal traffic, you can get a better understanding of how external users are interacting with your website. Here are the steps to filter IP addresses on Google Analytics:
Head to your Google Analytics account, click "Admin" (1), and then click "Filters" (2).
Click on "Add Filter" to add a filter.
Enter a name of your choice (1). Click "Custom" (2). Normally, "Exclude" should come as pre-selected. If not, select "Exclude" (3). Click the "Select Field" dropdown and type "IP" in the search bar (4). Select "IP Address" (5).
Add the IP address you want to filter under the "Filter Pattern".
You can also use regular expressions (regex) in the Filter Pattern. If you type a star sign at the end of the IP number (111.222.33.*, ), it will create a regex that will exclude all the IP's that begin with "111.222.33." (For example, 111.222.33.44, 111.222.33.89, 111.222.33.12 etc.) Most basic usage of regex is to exclude your own IP with this "192\.168\.0.*".
After you are done, don't forget to save.
You can also use the "Predefined Filter" feature by clicking it under the "Filter Type" headline. Select "Exclude", "traffic from the IP addresses" and "that are equal to". Then enter the IP address you would like to exclude.
Again don't forget to save.