Skip to content


Subversion checkout URL

You can clone with
Download ZIP


AnonymousVisits - alternate plugin to exclude storing IP addresses #1026

anonymous-piwik-user opened this Issue · 10 comments

3 participants


I have wrote a plugin to exclude IP addresses from statistic. It works in piwik normaly but does'nt store the ip in the database. This is a feature often needed in Germany to respect the privacy of visitors.

How can I publish the plugin here (



Attach a zip file to the ticket and provide a plugin description with instructions for installation/configuration/support.

You should also mention how you anonymize ips. Google just sets the last octet to 0.

Your plugin sounds a lot like #692, so you might want to look at that to see if there any bases to cover.


Hello Markus,

i am also very intersted in this plugin.
Could you provide a download (link or file) as vipsoft mentioned?

Thanks in advance!

@vipsoft: yes, it sounds like the #692 but here - as far as i understand - this plugn does NOT store the ip, rather than masking it.


Closing this ticket until there's some code attached. ;)


Attachment: this is the plugin code


Sorry for the long answer period...

Here is the code. I've seen Piwik 0.5.5 contains a similar plugin now. The difference is my plugin restores the IP after saving a anonymous value in the database to work with the data in the current session.

Thanks for the good job with Piwik!


The difference is subtle. Do you want me to re-open this ticket so you can support/maintain this?


Yes, please. You can re-open it. I'll do my best. ;-)


what is the difference between this plugin and the one bundled in core?


Replying to matt:

what is the difference between this plugin and the one bundled in core?

Here is a short summary:

The plugin prevent to save any IP address in the database (same as the original bundled plugin "AnonymizeIP" in Piwik 0.5.5).

The difference to the plugin "AnonymizeIP" bundled with Piwik is the preserving of the IP address in the current session. The core or other plugins can use the IP address for further processes if the session datas are used (i.e. a "live" plugin can show a list of IP addresses in his own widget).


Closing the ticket for now, as changing the IP in all processes might pose some problems in Piwik algorithms. Let us know if there is privacy issues with it in current Piwik implementation, and we can work to ensure we never store or display an IP.

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 0.5.5 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.