Opened 4 years ago

Closed 4 years ago

#1026 closed New feature (fixed)

AnonymousVisits - alternate plugin to exclude storing IP addresses

Reported by: maxx Owned by:
Priority: normal Milestone: Piwik 0.5.5
Component: Plugins Wishlist Keywords:
Cc: Sensitive: no

Description

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 (piwik.org)?

Thanks,
Markus

Attachments (1)

AnonymousVisits.zip (1.0 KB) - added by maxx 4 years ago.
this is the plugin code

Download all attachments as: .zip

Change History (13)

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Priority changed from major to normal

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.

comment:2 Changed 4 years ago by mic

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.

comment:3 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to invalid
  • Status changed from new to closed

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

Changed 4 years ago by maxx

this is the plugin code

comment:4 Changed 4 years ago by maxx

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!

comment:5 Changed 4 years ago by vipsoft (robocoder)

  • Keywords plugin ip address removed

comment:6 Changed 4 years ago by vipsoft (robocoder)

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

comment:7 Changed 4 years ago by maxx

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

comment:8 Changed 4 years ago by vipsoft (robocoder)

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:9 Changed 4 years ago by vipsoft (robocoder)

  • Summary changed from Plugin to exclude storing IP addresses to AnonymousVisits - alternate plugin to exclude storing IP addresses

comment:10 follow-up: Changed 4 years ago by matt (mattab)

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

comment:11 in reply to: ↑ 10 Changed 4 years ago by maxx

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).

comment:12 Changed 4 years ago by matt (mattab)

  • Milestone changed from Third Party Piwik Plugins to Piwik 0.5.5
  • Resolution set to fixed
  • Status changed from reopened to closed

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.

Note: See TracTickets for help on using tickets.