Extend Tracking API to allow users to set anonymization level #4184
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
The tracking API will be extended and allow users to force Piwik to mask IP addresses. This is an addition to the AnonymizeIP setting we currently have.
The server side setting will be the minimum level of masking that is applied to IP addresses by AnonymizeIP. A user can overwrite (only increase) the value using the JavaScript Tracking API:
If no level is given the level defaults to 1 (meaning last octet / last 80 bits will be masked) otherwise level will be set to $level.
The Tracking API will accept a new parameter "aip=[0,1,2,3,4]" which, if set, will force the anonymization of IPs (and load AnonymizeIP is necessary).
Use cases:
The text was updated successfully, but these errors were encountered: