Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Tracking API to allow users to set anonymization level #4184

Open
halfdan opened this issue Sep 26, 2013 · 0 comments
Open

Extend Tracking API to allow users to set anonymization level #4184

halfdan opened this issue Sep 26, 2013 · 0 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@halfdan
Copy link
Member

halfdan commented Sep 26, 2013

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:

_paq.push(['anonymizeIp']);
_paq.push(['anonymizeIp'], level);

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:

  • Shared Piwik instance with disabled AnonymizeIP and a user is bound by law to anonymize IPs.
  • Subdomains where you want to anonymize IPs for a certain section of your website (e.g. on a shop)
@halfdan halfdan added this to the Future releases milestone Jul 8, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants