About IP anonymization (classic)

Analytics classic

In Analytics (classic), you can set IP anonymization that will apply both for Analytics (classic) and Analytics (new). IP anonymization lets you hide a part of the IP address of your visitors. There can be multiple reasons to do that but most often you may simply be required by your local laws not to gather the IP addresses.

To anonymize IP addresses, follow these steps:

  1. Go to Menu > Analytics settings.
  2. Navigate to Privacy.
  3. In Anonymize Visitors’ IP addresses, toggle this option.
  4. Anonymize visitor's IP address.
  5. Mark an option with the number of octets that you want to hide.
  6. Actual IP 123.30.111.255
    One octet: 123.30.111.0
    Two octets: 123.30.0.0
    Three octets: 123.0.0.0

    Note: This may be confusing sometimes so it’s good to remember that if all of your visitors IP addresses end in zeroes then the IP anonymization is in effect.

  7. Additional anonymization setting lets you decide if the anonymization should be done only for Piwik PRO human users (all users will see the anonymized address) or should it also be anonymized for the internal processes of Piwik PRO – meaning that most IP dependant services will report inaccurate data or will stop reporting data at all. Example of such processes are:

  • Geolocalisation – the accurate user location is based purely on his IP and because of that the report will be completely unreliable (just a single anonymized octet can cause the location to be placed in another country or even continent)
  • IP segmentation – all segmentation based on the IP will not be possible, even if you’ll use zeroes in the anonymized octets instead of the actual values Piwik will still not recognize the address and won’t be able to segment the data by it.

Excluding visitors based on their IP address works even when the anonymization is turned on. The visitor exclusion is done before anonymization, therefore all the settings in blacklisting will work correctly.

Was this article helpful?

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!