Why exclude IPs?

  1. Data accuracy: By excluding certain IP addresses, such as those of your company or employees, you avoid counting internal visits, which can skew your statistics. This gives a better representation of the true activity of external visitors to your site.
  2. Privacy: If, for reasons of confidentiality, you don’t want to track the activity of certain IP addresses (such as those of specific partners or important customers), you can exclude them to guarantee their privacy.
  3. Avoid spam: Sometimes, specific IP addresses can generate referral spam. By excluding them, you protect your data from false traffic increases.
  4. Test optimization: If you’re running tests on your website, excluding your own IP address ensures that your actions are not taken into account in analytics data.

IP address exclusion in Google Analytics helps you maintain the integrity and accuracy of your data, which is essential for making informed decisions about your website.

1. Sign in to your Google Analytics account:

Go to Google Analytics and log in to your account.

2. Select the right property:

Once logged in, be sure to select the V4 property to which you wish to add the filter.

3. Access property parameters:

On the left-hand panel, click on “Settings”. This will open a menu where you can view your property settings.

4. Create a filter at the data resource level:

  • In the “Data resource” section, click on “Data feed”.
  • Select the data stream for which you wish to add the filter.
  • Go to the “Filters” tab and click on “Add a filter”.

5. Configuring the filter:

  • Give your filter a name, for example “IP Exclusion”.
  • For filter type, choose “Predefined”.
  • Configure parameters as follows:
    • Select “Exclude” for action type.
    • In the “Source selector” section, choose “IP address” as source.
    • In the “Expression” section, enter the IP address you wish to exclude.

6. Save the filter:

Once you’ve finished configuring your filter, click the “Create” or “Save” button to save your changes.

7. Test the filter:

Visit your website from the IP address you’ve excluded and then check in Google Analytics to make sure the visit hasn’t been logged. Note that it may take some time before you see the effects of the filter.