About IP anonymization (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:
- Go to Menu > Analytics settings.
- Navigate to Privacy.
- In Anonymize Visitors’ IP addresses, toggle this option.
- Mark an option with the number of octets that you want to hide.
- 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:
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.
- 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.