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.89k stars 2.65k forks source link

Segments: Option to ignore visits completely if any action is affected #11994

Open Jorilx opened 7 years ago

Jorilx commented 7 years ago

I’d like to create a segment that filters out visits that contain a specific URL among their actions. For example, if I have a visit with these 3 actions:

Homepage (http://mysite)
Section 1 (http://mysite/section1)
Section 2 (http://mysite/section2)

and I want to ignore visitors that went to Section 1, the segment should ignore the visit completely.

I tried to create such a segment (using “page URL does not contain section1” as filter) but I can still see visits that contain Section 1, if the visit contains other actions. I think this is due to the fact that I'm using a negative filter ("doesn't contain") instead of a positive one ("contains"), so maybe there could be an option to tell Piwik "remove a visit entirely if any of its actions are affected by the filter"?

(I’m using Piwik 3.0.4)

Findus23 commented 7 years ago

See also https://forum.piwik.org/t/creating-a-segment-that-ignores-visits-by-url-completely/25415

mattab commented 7 years ago

Thanks for the suggestion!