matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.91k stars 2.65k forks source link

In Exclusions settings, add Exclude My IP checkbox as an option #21161

Open atom-box opened 1 year ago

atom-box commented 1 year ago

Problem:

  1. Excluding my IP address is difficult because I have a dynamic IP address
  2. Matomo dashboard can detect the IP address of the User who is signed in to the dashboard.
  3. Many (most?) users are on dynamic IP addresses

Solution: In the exclusions settings ( ⚙️ >> websites >> settings >> excluded IPs), Matomo could have a simple checkbox: "Exclude My IP", which would update based on the user's dashboard IP address.

In case I missed anything, here is the original email from the user who asked for this:

The method you propose on this page How do I exclude traffic from an IP or a range of IP addresses: https://matomo.org/faq/how-to/faq_80   poses a problem for dynamic addresses, because you have to adapt the Matomo configuration each time the IP address changes. However, your system is able to automatically identify the IP of the http client. Therefore, you should simply offer to check an "Ignore my IP address" box.

michalkleiner commented 1 year ago

Hi @atom-box, thank you for the suggestion. I guess in general we could consider adding a dynamic exclude based on $_SERVER['REMOTE_ADDR'] on top of the preconfigured list of IPs or ranges of IPs.

I'll pass this to PO for prioritisation and technical discussion on what's possible.

sgiehl commented 1 year ago

For excluding dynamic IP addresses the easiest way is to use a DDNS host and https://plugins.matomo.org/ExcludeByDDNS

heurteph-ei commented 1 year ago

Hi @atom-box It is also possible (and very simple to use), to exclude the tracking via cookie:

Set the ‘ignore cookie’: Login in Matomo, click “Administration (cog icon)” on the top menu, then in the ‘Personal > Settings’ page click the link below the section ‘Exclude your visits using a cookie’. (a matomo_ignore cookie without expiry date is created on the domain of your Matomo server).

https://matomo.org/faq/how-to/faq_126/